<info> </info>

Functions can be used by inserting the name of the function followed by function arguments. <app>Calculator</app> also support user-defined functions. If the argument is not a number or a single variable then write each argument separated by semicolon and use parenthesis around the argument list.

<example>

sin 30

abs (5−9)

fun (9;10)

</example>

To add a new function type the function in the format as given below. A function name and arguments must only contain upper or lower case characters. The part after @ is the function description which is optional.

<example>

SimpleInterest (principal; rate; time) = principal * rate * time @ Simple Interest formula

</example>

Functions can also be added and inserted using the f(x) button.

<example>

Click on f(x). Type the function name in the box, choose the number of arguments and click on the plus sign button next to it. On the calculator screen type the function expression and press <key>Enter</key>.

</example> <example>

Click on f(x). Choose the function and click on it.

</example>

The following functions are defined.

abs | Absolute Value
cos | Cosine
cosh | Hyperbolic Cosine
frac | Fractional Component
int | Integer Component
ln | Natural Logarithm
log | Logarithm
not | Boolean NOT
ones | Ones complement
sin | Sine
sinh | Hyperbolic Sine
sqrt | Square Root
tan | Tangent
tanh | Hyperbolic Tangent
twos | Twos complement