[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie questions about Ocatave

From: octavenoob
Subject: Newbie questions about Ocatave
Date: Wed, 20 Feb 2008 14:15:47 -0800 (PST)

Hello all, 

How do I make a symbolic expression and take partial derivatives of that
function. For example, in Matlab I would do this: 

syms  b c d e f % Alerts matlab that these variables have no set value to

a = b*2+ (d^e+f*e/f^2) %my expression

da=diff(a,'e') %takes the derivative of a with respect to e

b=1 %values for the variables 

z=eval(da) % this will plug in the values above and evaluate the expression
da, which is the derivative of function a with respect to e. 

So far octave does not seem to be recognizing  'syms'. How do I make a
program like this Octave compatible?
View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]