Joan Duran
jodufi@gmail.com 2008
Sergi Morraja
sergi256@gmail.com 2011, 2012
Gil Forcada
gilforcada@guifi.net 2013

# Funcions

Functions can be used by inserting the name of the function followed by function arguments. Calculator 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.

sin 30

abs (5−9)

fun (9;10)

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.

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

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

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 Enter.

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

Les funcions següents estan definides.

abs | Valor absolut
ceil | Ceiling
cos | Cosinus
cosh | Cosinus hiperbòlic
floor | Floor
frac | Component fraccionari
int | Component enter
ln | Logaritme natural
log | Logaritme
not | NOT Booleà
ones | Complement a 1
round | Round
sgn | Signum
sin | Sinus
sinh | Sinus hiperbòlic
sqrt | Arrel quadrada
tan | Tangent
tanh | Tangent hiperbòlica
twos | Complement a 2