# 函數

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.

下面是預先定義的函數。

abs | Absolute Value
ceil | Ceiling
cos | Cosine
cosh | Hyperbolic Cosine
floor | Floor
frac | 小數部分
int | 整數部分
ln | Natural Logarithm
log | Logarithm
not | Boolean NOT
ones | 1 的補數
round | Round
sgn | Signum
sin | Sine
sinh | Hyperbolic Sine
sqrt | Square Root
tan | Tangent
tanh | Hyperbolic Tangent
twos | 2 的補數