Ask Your Question
1

Derivative of a function

asked 2015-01-12 12:52:24 +0100

Silvia gravatar image

updated 2015-01-23 22:07:59 +0100

FrédéricC gravatar image

Hi, I've got this two functions:

psi=function('psi',t)
psi_d=function('psi_d',t)
psi=(sin(delta(t))*v(t))/(l*cos(delta(t)))
psi_d=diff(psi)

but it says No differentiation variable specified how can I derivate psi? Please someone help me it's driving me crazy since yesterday!

Thank you very much

edit retag flag offensive close merge delete

Comments

1

By the way, in general the first thing you should do when you encounter an error like that is to make sure you didn't accidentally make a mistake in the syntax. This help can be gotten by typing diff? and it should tell you then that you need the variable of differentiation, as pointed out below.

kcrisman gravatar imagekcrisman ( 2015-01-12 18:15:30 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2015-01-12 13:47:37 +0100

FrédéricC gravatar image

You have to specify the derivation variable t:

sage: diff(psi,t)
v(t)*D[0](delta)(t)/l + sin(delta(t))^2*v(t)*D[0](delta)(t)/(l*cos(delta(t))^2) + sin(delta(t))*D[0](v)(t)/(l*cos(delta(t)))
edit flag offensive delete link more

Comments

Thank you so much!!

Silvia gravatar imageSilvia ( 2015-01-12 13:57:17 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-01-12 12:52:24 +0100

Seen: 1,107 times

Last updated: Jan 12 '15