On Tuesday, February 8, 2011 11:03:27 AM UTC-8, Ryan Krauss wrote:
>
> I am a Python user who has made minor use of Maxima on occasion.  I am
> trying to make the switch to Sage.  I have a piece of Maxima
> functionality that I am struggling to make work in Sage.  I need to
> declare that two variables x1 and x2 depend on t.  I don't yet know
> their expressions.  For now, I just need to be able to take their
> derivatives with respect to t and get \dot{x1} and \dot{x2}.  Maxima
> allows this through the depends function.  I think I have this more or
> less working in Sage:
>
> Maxima code:
> depends(x1,t);
> diff(x1,t);
>
> result: $$\frac{d}{d\,t}\,x1$$ (x1 dot, basically)
>

How about this:

sage: t = var('t')
sage: x1 = function('x1', t)
sage: x1.diff(t)

-- 
John

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to