For simple expressions, we use the usual keyboard characters:
2*x meansOr instead of the usual division /, we can use ``left division'',
(x^3-1)/6 means.
pi/3 means![]()
3pi also means
.
exp(x) exponential,![]()
log(x) natural logarithm,![]()
log10(x) base 10 logarithm,![]()
abs(x) absolute value,![]()
sqrt(x) square root,![]()
sign(x) signum function, which equals![]()
sin(x) sinh(x)
cos(x) trigonometric cosh(x) hyperbolic
tan(x) functions tanh(x) trigonometric
cot(x) (in radians) coth(x) functions
sec(x) sech(x)
csc(x) csch(x)
asin(x) asinh(x)
acos(x) inverse acosh(x) inverse
atan(x) trigonometric atanh(x) hyperbolic
acot(x) functions acoth(x) trigonometric
asec(x) asech(x) functions
acsc(x) acsch(x)
besselj(nu,z) Bessel function ofthe first kind
bessely(nu,z) Bessel function of the second kind
besseli(nu,z) Modified Bessel function of the first kind
besselk(nu,z) Modified Bessel function of the second kind
sin(exp(y))^4 means,
acos(exp(1)^(-1)) means.
No matter whether you're using Octave or Matlab, you can always find more information on a function by typing help function.
The installation of Iode includes the following functions, useful for
studying Fourier series and for creating initial values for partial
differential equations.
hat(x,a,b): equals 0 for
and
, and equals
for
. To make sense, hat requires
.
triangle(x,a,b,m): a triangular-shaped function, equalling
0 for
, then rising linearly to height
at
and falling back linearly to zero at
, then equalling zero for
. To make sense, triangle
requires
. The parameter
is optional and defaults to
the midpoint
.
bump(x,a,b,m): is a continuously differentiable function that
equals 0 for
and
, is positive for
, has
a maximum of
at
, and is strictly increasing between
and
and strictly decreasing between
and
. To make sense, bump requires
. The parameter
is optional and defaults to
.
Expressions like x>=2 are treated as logical functions,
and return a value of either
(true) or 0 (false). So
x>=2 is the ``step'' function that equals
.
(t^2)*(t<4) meansbecause (t<4) equals,
b blueNote that yellow plots are usually hard to see due to lack of contrast.
g green
r red
c cyan
m magenta
y yellow
k black
euler Euler method for (systems of) first orderequations
rk Runge-Kutta for (systems of) first order equations
In addition to the pre-installed solvers listed above, you can also create
your own. For example, if you devise a new method for solving differential
equations, then you could program it in a new file called
my_algorithm.m, in your Iode directory. The structure of
my_algorithm.m should follow that of euler.m. You will
simply need to change the ``update'' steps, which in euler.m are:
Then after creating the file my_algorithm.m, you can input my_algorithm when Iode prompts you for a numerical method.