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)

  • x: is the real number of which you want the absolute value.

acos

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

Object acos(Object x)

  • x: is the cosine of an angle, a number between -1 and 1.

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)

  • x: A number greater or equal to 1.

acot

Returns the invers cotangens of a number.

Object acot(Object x)

  • x: is a number

acoth

Returns the invers hyperbolic cotangens of a number.

Object acoth(Object x)

  • x: is a number greater than 1.

arccos

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

Object arccos(Object x)

  • x: is the cosine of an angle, a number between -1 and 1.

arccot

Returns the invers cotangens of a number.

Object arccot(Object x)

  • x: is a number

arccothyp

Returns the invers hyperbolic cotangens of a number.

Object arccothyp(Object x)

  • x: is a number greater than 1.

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)

  • x: is the sine of an angle, valid range from -1 to 1.

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)

  • x: any real number.

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)

  • x: is the tangent of the angle you are looking for.

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)

  • x: is a number in the range -1 to 1 not including -1 and 1.

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)

  • x: is the sine of an angle, valid range from -1 to 1.

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)

  • x: any real number.

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)

  • x: is the tangent of the angle you are looking for.

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)

  • x: is a number in the range -1 to 1 not including -1 and 1.

cos

Returns the cosine of the given angle.

Object cos(Object x)

  • x: is the angle in radians for which you want the cosine. If the angle is in degrees, multiply it by PI()/180 to convert it to radians.

cosh

Returns the hyperbolic cosine of a number.

Object cosh(Object x)

  • x: is the angle in radians.

coshyp

Returns the hyperbolic cosine of a number.

Object coshyp(Object x)

  • x: is the angle in radians.

cot

Return the cotangent of an angle specified in radians.

Object cot(Object x)

  • x: is the angle in radians for which you want the cotangent.

coth

Return the hyperbolic cotangent of a hyperbolic angle.

Object coth(Object x)

  • x: any number.

cothyp

Return the hyperbolic cotangent of a hyperbolic angle.

Object cothyp(Object x)

  • x: any number.

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)

  • x: is the exponent applied to the base e.

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)

  • x: is the positive real number for which you want the natural logarithm.

log10

Returns the base-10 logarithm of a number.

Object log10(Object x)

  • x: is the positive real number for which you want the base-10 logarithm.

pi

Returns pi (3.14...)

float pi()

pow

Returns the result of a number raised to a power.

float pow(float x, float y)

  • x: is the base number. It can be any real number.
  • y: is the exponent to which the base number is raised.

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)

  • seed: is the seed for the random-number generation.

round

rounds floating point numbers to a specified number of digits

Object round(Collection x, int digits=0)

  • x: is the floating point number
  • digits: is the number of digits

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)

  • x: is any real number.

sin

Returns the sine of the given angle.

Object sin(Object x)

  • x: is the angle in radians for which you want the sine. If your argument is in degrees, multiply it by PI()/180 to convert it to radians.

sinh

Returns the hyperbolic sine of a number.

Object sinh(Object x)

  • x: is the angle in radians.

sinhyp

Returns the hyperbolic sine of a number.

Object sinhyp(Object x)

  • x: is the angle in radians.

sqr

Returns a positive square root.

Object sqr(Object x)

  • x: is the number for which you want the square root. If number is negative, the function will return an error value.

tan

Returns the tangent of the given angle.

Object tan(Object x)

  • x: is the angle in radians for which you want the tangent. If your argument is in degrees, multiply it by PI()/180 to convert it to radians.

tanh

Returns the hyperbolic tangent of a number.

Object tanh(Object x)

  • x: is the angle in radians.

tanhyp

Returns the hyperbolic tangent of a number.

Object tanhyp(Object x)

  • x: is the angle in radians.

Feedback

Did you find what you needed?

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

=