赤星　柔充
yasumichi@vinelinux.org 2012

# 関数

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 | 絶対値
ceil | Ceiling
cos | 余弦
cosh | 双曲線余弦
floor | Floor
frac | 小数部分
int | 整数部分
ln | 自然対数
log | 対数
not | ブール演算 NOT
ones | 1 の補数
round | Round
sgn | Signum
sin | 正弦
sinh | 双曲線正弦
sqrt | 平方根
tan | 正接
tanh | 双曲線正接
twos | 2 の補数