help-octave
[Top][All Lists]
Advanced

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

Re: symbolic basic calculus help


From: Anton Dereventsov
Subject: Re: symbolic basic calculus help
Date: Thu, 6 Sep 2018 13:45:13 -0500 (CDT)

Octave does not like doing symbolic arithmetic with non-integer numbers. To
bypass that, use 'vpa' command (type 'help vpa' in octave command window for
more info). Basically, you should define v as follows:
v = (vpa(1/(60^2)) + vpa(0.8)*t) ^ vpa(-0.5);

Note also that I wrote 1/(60^2) and not 1\(60^2) since \ is the left
division so that's probably not what you wanted.

Additionally, if you want to evaluate acceleration a at a point, say, T1 you
should use 'subs' command and not 'eval':
subs(a,T1);

Hope that helps,
Anton



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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