<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, or underscores. 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.

Trigonometry
sin | Sine
cos | Cosine
tan | Tangent
sin⁻¹ / asin | Inverse Sine
cos⁻¹ / acos | Inverse Cosine
tan⁻¹ / atan | Inverse Tangent
sinh | Hyperbolic Sine
cosh | Hyperbolic Cosine
tanh | Hyperbolic Tangent
sinh⁻¹ / asinh | Inverse Hyperbolic Sine
cosh⁻¹ / acosh | Inverse Hyperbolic Cosine
tanh⁻¹ / atanh | Inverse Hyperbolic Tangent
Complex
conj | Complex Conjugate
arg | Complex Argument
re | Real Component
im | Imaginary Component
Programming
twos | Two’s Complement
bswap | Swap Endianness
mod | Modulus Divide
modexp | Modular Exponentiation
Rounding
round | Round
floor | Floor
ceil | Ceiling
int | Integer Component
frac | Fractional Component
Statistics
sum | Sum
sumsq | Sum of Squares
average | Average
median | Median
min | Minimum Value
max | Maximum Value
stdev | Sample Standard Deviation
stdevp | Population Standard Deviation
var | Sample Variance
varp | Population Variance
Sundry
log | Logarithm
ln | Natural Logarithm
sqrt | Square Root
abs | Absolute Value
sgn | Signum
ncr | Combination
npr | Permutation
gcd | Greatest Common Divisor
lcm | Least Common Multiple
cmp | Comparison (Kronecker Delta)