Visual Basic .NET -  Mathematical Functions


Visual Basic is a powerful programming language from Microsoft. For details help, please refer to the website of Microsoft. The following sections describes only mathematical functions of Visual Basic.

The *, /, \, ^, Mod, +, and operators are the arithmetic operators. The comparison operators are =, <>, <, >, <=, and >=. The And, Not, Or, and Xor are the logical operators.

The Math-class provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions:

Math.Abs

Overloaded. Returns the absolute value of a specified number.

Math.Acos

Returns the angle whose cosine is the specified number.

Math.Asin

Returns the angle whose sine is the specified number.

Math.Atan

Returns the angle whose tangent is the specified number.

Math.Atan2

Returns the angle whose tangent is the quotient of two specified numbers.

Math.BigMul

Produces the full product of two 32-bit numbers.

Math.Ceiling

Returns the smallest whole number greater than or equal to the specified number.

Math.Cos

Returns the cosine of the specified angle.

Math.Cosh

Returns the hyperbolic cosine of the specified angle.

Math.DivRem

Overloaded. Returns the quotient of two numbers, also passing the remainder as an output parameter.

Math.Exp

Returns e raised to the specified power.

Math.Floor

Returns the largest whole number less than or equal to the specified number.

Math.IEEERemainder

Returns the remainder resulting from the division of a specified number by another specified number.

Math.Log

Overloaded. Returns the logarithm of a specified number.

Math.Log10

Returns the base 10 logarithm of a specified number.

Math.Max

Overloaded. Returns the larger of two specified numbers.

Math.Min

Overloaded. Returns the smaller of two numbers.

Math.Pow

Returns a specified number raised to the specified power.

Math.Round

Overloaded. Returns the number nearest the specified value.

Math.Sign

Overloaded. Returns a value indicating the sign of a number.

Math.Sin

Returns the sine of the specified angle.

Math.Sinh

Returns the hyperbolic sine of the specified angle.

Math.Sqrt

Returns the square root of a specified number.

Math.Tan

Returns the tangent of the specified angle.

Math.Tanh

Returns the hyperbolic tangent of the specified angle.