Functions > Basic Calculations


01. fact 02. gcd 03. IEEERem 04. lcm
05. prod 06. rem 07. sqrt 08. sum

fact

Calculates factorial of the given value(s).

gcd

Calculates the Greatest Common Divisor of two or more values.

IEEERem

Expects two arguments. Calculates IEEE Remainder after dividing the first argument by the second argument. The returned values are calculated differently from the '%' operator. Consider the following examples:

>> IEEERem (3, 1.6)
>> -0.2000
>> 3%1.6
>> 1.4

The absolute value of IEEERem can be obtained using the rem function

lcm

Calculates the Least Common Multiple of two or more values.

prod

Calculates product of the arguments. Expects one or more arguments. If any one of the arguments is an array, all are taken as array. In that case the result is an array of products of each individual array. The behavior is different from the multiplication operator '*', where an array can be multiplied by a single number.

rem

Returns absolute value of IEEE Remainder (refer to IEEERem function). The returned values are calculated differently from the '%' operator. Consider the following example:

>> rem (3, 1.6)
>> 0.2000
>> 3%1.6
>> 1.4

sqrt

Calculates square root of the given value(s).

sum

Calculates sum of the arguments. Expects one or more arguments. If any one of the arguments is an array, all are taken as array. In that case the result is an array of sums of each individual array.

 

Donate Bitcoin

1AvM287k9ocUbqp6SPhGLzyGqFx3JZFcSA

 

Your donations will help keep this free service running.

 

Navigation