Paolo Stivanin
paolostivanin@yahoo.it 2010
Luca Ferretti
lferrett@gnome.org 2012

# Funzioni

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.

Sono definite le seguenti funzioni.

abs | Valore assoluto
ceil | Ceiling
cos | Coseno
cosh | Coseno iperbolico
floor | Floor
frac | Parte frazionaria
int | Parte intera
ln | Logaritmo naturale
log | Logaritmo
not | NOT booleano
ones | Complemento a uno
round | Round
sgn | Signum
sin | Seno
sinh | Seno iperbolico
sqrt | Radice quadrata
tan | Tangente
tanh | Tangente iperbolica
twos | Complemento a due