Help Center
Help CenterFreeBASICMathematical Functions

Mathematical Functions

Documentation

Procedures that work with numbers mathematically.

Description

This set of procedures provide basic algebraic and trigonometric function. Random numbers can also be retrieved, using a variety of random number generators.

Algebraic Procedures
Absolute values, logarithms, square roots and more.
Trigonometry Procedures
Sine, Cosine and other trigonometry-related procedures.
Miscellaneous Procedures
Miscellaneous procedures.

Algebraic Procedures
Abs
Returns the absolute value of a number.
Exp
Returns e raised to some power.
Log
Returns the natural logarithm of a number.
Sqr
Returns the square root of a number.
Fix
Returns the integer part of a number.
Frac
Returns the fractional part of a number.
Int
Returns the largest integer less than or equal to a number.
Sgn
Returns the sign of a number.
Trigonometric Procedures
Sin
Returns the sine of an angle.
Asin
Returns the arcsine of a number.
Cos
Returns the cosine of an angle.
Acos
Returns the arccosine of a number.
Tan
Returns the tangent of an angle.
Atn
Returns the arctangent of a number.
Atan2
Returns the arctangent of the ratio between two numbers.

Miscellaneous Procedures
Randomize
Seeds the random number generator used by Rnd.
Rnd
Returns a random Double in the range [0, 1).