Arithmetic

In this group you can find all standard math functions, e.g. Sinus, Cosinus, etc.

abs

Returns the absolute value of a number. The absolute value of a number is the number without its sign.

Object abs(Object x)

acos

Returns the arcus cosine of a number. The returned angle is given in radians in the range 0 to π.

Object acos(Object x)

acosh

Returns the inverse hyperbolic cosine (area hyperbolic cosine) of a number. The area hyperbolic cosine is the number x whose hyperbolic cosine equals to x: acosh(cosh(x))=x.

Object acosh(Object x)

acot

Returns the invers cotangens of a number.

Object acot(Object x)

acoth

Returns the invers hyperbolic cotangens of a number.

Object acoth(Object x)

arccos

Returns the arcus cosine of a number. The returned angle is given in radians in the range 0 to π.

Object arccos(Object x)

arccot

Returns the invers cotangens of a number.

Object arccot(Object x)

arccothyp

Returns the invers hyperbolic cotangens of a number.

Object arccothyp(Object x)

arcsin

Returns the arcus sine or inverse sine of a number x. The arcus sine is the angle whose sine evaluates to x. The result lies within a range of -π/2 to π/2.

Object arcsin(Object x)

arcsinhyp

Returns the inverse hyperbolic sine of a number x. The inverse hyperbolic sine of x is the value whose hyperbolic sine evaluates to x.

Object arcsinhyp(Object x)

arctan

Returns the arctangent of a number. The arctangent is the angle whose tangent is the argument. The returned angle is given in radians in the range -π/2 to π/2.

Object arctan(Object x)

arctanhyp

Returns the inverse hyperbolic tangent of x. The inverse hyperbolic tangent of x is the value whose hyperbolic tangent is x.

Object arctanhyp(Object x)

asin

Returns the arcus sine or inverse sine of a number x. The arcus sine is the angle whose sine evaluates to x. The result lies within a range of -π/2 to π/2.

Object asin(Object x)

asinh

Returns the inverse hyperbolic sine of a number x. The inverse hyperbolic sine of x is the value whose hyperbolic sine evaluates to x.

Object asinh(Object x)

atan

Returns the arctangent of a number. The arctangent is the angle whose tangent is the argument. The returned angle is given in radians in the range -π/2 to π/2.

Object atan(Object x)

atanh

Returns the inverse hyperbolic tangent of x. The inverse hyperbolic tangent of x is the value whose hyperbolic tangent is x.

Object atanh(Object x)

cos

Returns the cosine of the given angle.

Object cos(Object x)

cosh

Returns the hyperbolic cosine of a number.

Object cosh(Object x)

coshyp

Returns the hyperbolic cosine of a number.

Object coshyp(Object x)

cot

Return the cotangent of an angle specified in radians.

Object cot(Object x)

coth

Return the hyperbolic cotangent of a hyperbolic angle.

Object coth(Object x)

cothyp

Return the hyperbolic cotangent of a hyperbolic angle.

Object cothyp(Object x)

e

Returns Euler's number (2.71....)

float e()

exp

Returns e raised to the power of number. The constant e equals 2.71828.... , the base of the natural logarithm.

Object exp(Object x)

ln

Returns the natural logarithm of a number. Natural logarithms are based on the constant e = 2.71828... . Ln() is the inverse of the exp() function.

Object ln(Object x)

log10

Returns the base-10 logarithm of a number.

Object log10(Object x)

pi

Returns pi (3.14...)

float pi()

pow

Returns the result of a number raised to a power.

float pow(float x, float y)

rand

Returns a pseudorandom integer number.

int rand()

randSeed

The rand function sets the starting point for generating a series of pseudorandom integers. To reinitialize the generator, use 1 as the seed argument. Any other value for seed sets the generator to a random starting point. rand retrieves the pseudorandom numbers that are generated. Calling rand with no seed before any call to rand with a seed generates the same sequence as calling rand with seed 1.

int randSeed(int seed)

round

rounds floating point numbers to a specified number of digits

Object round(Collection x, int digits=0)

sgn

Determines the sign of a number. Returns 1 if the number is positive, zero (0) if the number is 0, and -1 if the number is negative.

Object sgn(Object x)

sin

Returns the sine of the given angle.

Object sin(Object x)

sinh

Returns the hyperbolic sine of a number.

Object sinh(Object x)

sinhyp

Returns the hyperbolic sine of a number.

Object sinhyp(Object x)

sqr

Returns a positive square root.

Object sqr(Object x)

tan

Returns the tangent of the given angle.

Object tan(Object x)

tanh

Returns the hyperbolic tangent of a number.

Object tanh(Object x)

tanhyp

Returns the hyperbolic tangent of a number.

Object tanhyp(Object x)

Feedback

Did you find what you needed?

If you have any further questions or suggestions to improve this page, please let us know:

=