# 函數

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

下面是預先定義的函數。

三角函數
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
軟體開發
ones | Ones’ Complement
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)