Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Math Source Code
 previous   up   next 

Constant Summary
float
PI
Mathematical constant π.
float
E
Euler's number.

Function Summary
float
sin (in float: x)
Compute the sine of x, where x is given in radians.
float
cos (in float: x)
Compute the cosine of x, where x is given in radians.
float
tan (in float: x)
Compute the tangent of x, where x is given in radians.
float
asin (in float: x)
Compute the arc sine of x; that is the value whose sine is x.
float
acos (in float: x)
Compute the arc cosine of x; that is the value whose cosine is x.
float
atan (in float: x)
Compute the arc tangent of x; that is the value whose tangent is x.
float
atan2 (in float: y, in float: x)
Compute the arc tangent of y/x.
float
sinh (in float: x)
Compute the hyperbolic sine of x.
float
cosh (in float: x)
Compute the hyperbolic cosine of x.
float
tanh (in float: x)
Compute the hyperbolic tangent of x.
float
exp (in float: x)
Compute Euler's number e raised to the power of x.
float
log (in float: x)
Return the natural logarithm (base e) of x.
float
log10 (in float: x)
Returns the base 10 logarithm of x.
float
log2 (in float: x)
Returns the base 2 logarithm of x.
float
sqrt (in float: x)
Returns the non-negative square root of x.
float
ceil (in float: x)
Round up towards positive infinity.
float
floor (in float: x)
Round down towards negative infinity.

Constant Detail

PI

const float: PI

Mathematical constant π. PI is the ratio of any circle's circumference to its diameter.


E

const float: E

Euler's number. E is defined as exp(1.0)


Function Detail

sin

const func float: sin (in float: x)

Compute the sine of x, where x is given in radians.

Returns:
the trigonometric sine of an angle.

cos

const func float: cos (in float: x)

Compute the cosine of x, where x is given in radians.

Returns:
the trigonometric cosine of an angle.

tan

const func float: tan (in float: x)

Compute the tangent of x, where x is given in radians.

Returns:
the trigonometric tangent of an angle.

asin

const func float: asin (in float: x)

Compute the arc sine of x; that is the value whose sine is x.

Returns:
the arc sine of x in radians. The return angle is in the range [-PI/2, PI/2].

acos

const func float: acos (in float: x)

Compute the arc cosine of x; that is the value whose cosine is x.

Returns:
the arc cosine of x in radians. The returned angle is in the range [0.0, PI].

atan

const func float: atan (in float: x)

Compute the arc tangent of x; that is the value whose tangent is x.

Returns:
the arc tangent of x in radians. The returned angle is in the range [-PI/2, PI/2].

atan2

const func float: atan2 (in float: y, in float: x)

Compute the arc tangent of y/x. The signs of x and y are used to determine the quadrant of the result. It determines the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).

Returns:
the arc tangent of y/x in radians. The returned angle is in the range [-PI, PI].

sinh

const func float: sinh (in float: x)

Compute the hyperbolic sine of x. sinh(x) is mathematically defined as: (exp(x) - exp(-x)) / 2.0

Returns:
the hyperbolic sine.

cosh

const func float: cosh (in float: x)

Compute the hyperbolic cosine of x. cosh(x) is mathematically defined as: (exp(x) + exp(-x)) / 2.0

Returns:
the hyperbolic cosine.

tanh

const func float: tanh (in float: x)

Compute the hyperbolic tangent of x. tanh(x) is mathematically defined as: sinh(x) / cosh(x)

Returns:
the hyperbolic tangent.

exp

const func float: exp (in float: x)

Compute Euler's number e raised to the power of x.

Returns:
e raised to the power of x.

log

const func float: log (in float: x)

Return the natural logarithm (base e) of x.

Returns:
the natural logarithm of x.

log10

const func float: log10 (in float: x)

Returns the base 10 logarithm of x.

Returns:
the base 10 logarithm of x.

log2

const func float: log2 (in float: x)

Returns the base 2 logarithm of x.

Returns:
the base 2 logarithm of x.

sqrt

const func float: sqrt (in float: x)

Returns the non-negative square root of x.

Returns:
the square root of x.

ceil

const func float: ceil (in float: x)

Round up towards positive infinity. Determine the smallest value that is greater than or equal to the argument and is equal to a mathematical integer.

Returns:
the rounded value.

floor

const func float: floor (in float: x)

Round down towards negative infinity. Returns the largest value that is less than or equal to the argument and is equal to a mathematical integer.

Returns:
the rounded value.


 previous   up   next