defining symbolic function

39 views
Skip to first unread message

Rama Kunapuli

unread,
Feb 22, 2020, 6:59:38 PM2/22/20
to sage-support
Need to define a generic function - say A(t) such that when I evaluate differential with respect to t, I should get A'(t) or dA/dt.

Is it possible to do this in Sage?

Nils Bruin

unread,
Feb 22, 2020, 9:41:40 PM2/22/20
to sage-support

Rama Kunapuli

unread,
Feb 23, 2020, 11:15:48 AM2/23/20
to sage-support
Thank you both for the directions Nils Bruin, Symbolic variables link really helped. The following code works;
t,A =var('t','A')
A=function('A',nargs=1)(t);A
A.derivative(t,1)
 Is it possible, to display A.derivative(t,1) with a dot notation \dot{A}  instead of \frac{\partial A}{\partial t}?

On Sat, Feb 22, 2020 at 6:41 PM Nils Bruin <nbr...@sfu.ca> wrote:

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6a21883f-c12d-49b1-9d56-5aaf697d32db%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages