User Defined Functions

Parent Previous Next

User Defined Function


Beside of the intrinsic functions, user can also define their own functions by


FUN_NAME(Para1, Para2, ...,ParaN) => Expression of Para1, Para2, ..., ParaN


Here are some example


Input

Output

f(x) => sin(x)^2 - log(x)

Function f is defined.

f(1.2)

exp(f(PI) - sqrt(f(2.5)))

g(x,y) => sec(x) / asech(y)

Function g is defined.

g(60*pi/180, 2.1)

Created with the Personal Edition of HelpNDoc: Easily create PDF Help documents