Classic ASP Framework
org.classicasp.util.MathUtilEx

[STATIC] Math utilities.

Summary

Computes and returns an absolute value for the number specified by the parameter.
Computes and returns the arc cosine of the number specified in the parameter.
Computes and returns the arc cotangent of the number specified in the parameter.
Computes and returns the arc cosecant of the number specified in the parameter.
Computes and returns the arc secant of the number specified in the parameter.
Computes and returns the arc sine for the number specified in the parameter.
Computes and returns the value, of the angle whose tangent is specified in the parameter.
Returns the ceiling of the specified number.
Computes and returns the cosine of the specified angle.
Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter.
Returns the floor of the number or expression specified in the parameter.
Returns the natural logarithm of the parameter.
Returns the largest number in the array.
Returns the smallest number in the array.
Computes and returns base to the power of pow.
Returns a pseudo-random number n.
Rounds the value of the parameter val up or down to the nearest integer and returns the value.
Computes and returns the sine of the specified angle.
Computes and returns the square root of the specified number.
Computes and returns the tangent of the specified angle.
A mathematical constant for the base of natural logarithms, expressed as e.
A mathematical constant for the natural logarithm of 10, expressed as loge10, with an approximate value of 2.
A mathematical constant for the natural logarithm of 2, expressed as loge2, with an approximate value of 0.
A mathematical constant for the base-10 logarithm of the constant e (Math.
A mathematical constant for the base-2 logarithm of the constant e, expressed as log2e, with an approximate value of 1.
A mathematical constant for the ratio of the circumference of a circle to its diameter, expressed as pi, with a value of 3.
A mathematical constant for the square root of one-half, with an approximate value of 0.
A mathematical constant for the square root of 2, with an approximate value of 1.

absEx

Public Function absEx(ByVal nValue)
Computes and returns an absolute value for the number specified by the parameter.

Returns

NumberEx

acosEx

Public Function acosEx(ByVal nValue)
Computes and returns the arc cosine of the number specified in the parameter.

Returns

NumberEx

acotEx

Public Function acotEx(ByVal nValue)
Computes and returns the arc cotangent of the number specified in the parameter.

Returns

NumberEx

acscEx

Public Function acscEx(ByVal nValue)
Computes and returns the arc cosecant of the number specified in the parameter.

Returns

NumberEx

asecEx

Public Function asecEx(ByVal nValue)
Computes and returns the arc secant of the number specified in the parameter.

Returns

NumberEx

asinEx

Public Function asinEx(ByVal nValue)
Computes and returns the arc sine for the number specified in the parameter.

Returns

NumberEx

atanEx

Public Function atanEx(ByVal nValue)
Computes and returns the value, of the angle whose tangent is specified in the parameter.

Returns

NumberEx

ceilEx

Public Function ceilEx(ByVal nValue)
Returns the ceiling of the specified number.

Returns

NumberEx

cosEx

Public Function cosEx(ByVal nValue)
Computes and returns the cosine of the specified angle.

Returns

NumberEx

expEx

Public Function expEx(ByVal nValue)
Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter.

Returns

NumberEx

floorEx

Public Function floorEx(ByVal nValue)
Returns the floor of the number or expression specified in the parameter.

Returns

NumberEx

logEx

Public Function logEx(ByVal nValue)
Returns the natural logarithm of the parameter.

Returns

NumberEx

maxEx

Public Function maxEx(ByVal aValue)
Returns the largest number in the array.

Returns

NumberEx

minEx

Public Function minEx(ByVal aValue)
Returns the smallest number in the array.

Returns

NumberEx

powEx

Public Function powEx(
ByVal nBase,
ByVal nPow)
Computes and returns base to the power of pow.

Returns

NumberEx

randomEx

Public Function randomEx()
Returns a pseudo-random number n.

Returns

NumberEx

roundEx

Public Function roundEx(ByVal nValue)
Rounds the value of the parameter val up or down to the nearest integer and returns the value.

Returns

NumberEx

sinEx

Public Function sinEx(ByVal nValue)
Computes and returns the sine of the specified angle.

Returns

NumberEx

sqrtEx

Public Function sqrtEx(ByVal nValue)
Computes and returns the square root of the specified number.

Returns

NumberEx

tanEx

Public Function tanEx(ByVal nValue)
Computes and returns the tangent of the specified angle.

Returns

NumberEx

[CONST] MathUtilEx.E

A mathematical constant for the base of natural logarithms, expressed as e.

Returns

NumberEx

[CONST] MathUtilEx.LN10

A mathematical constant for the natural logarithm of 10, expressed as loge10, with an approximate value of 2.302585092994046.

Returns

NumberEx

[CONST] MathUtilEx.LN2

A mathematical constant for the natural logarithm of 2, expressed as loge2, with an approximate value of 0.6931471805599453.

Returns

NumberEx

[CONST] MathUtilEx.LOG10E

A mathematical constant for the base-10 logarithm of the constant e (Math.E), expressed as log10e, with an approximate value of 0.4342944819032518.

Returns

NumberEx

[CONST] MathUtilEx.LOG2E

A mathematical constant for the base-2 logarithm of the constant e, expressed as log2e, with an approximate value of 1.442695040888963387.

Returns

NumberEx

[CONST] MathUtilEx.PI

A mathematical constant for the ratio of the circumference of a circle to its diameter, expressed as pi, with a value of 3.141592653589793.

Returns

NumberEx

[CONST] MathUtilEx.SQRT1_2

A mathematical constant for the square root of one-half, with an approximate value of 0.7071067811865476.

Returns

NumberEx

[CONST] MathUtilEx.SQRT2

A mathematical constant for the square root of 2, with an approximate value of 1.4142135623730951.

Returns

NumberEx

'***ClassicASP.org
'Copyright 2010 ClassicASP.org

'This file is part of ClassicASP Framework.

'ClassicASP-Framework is free software: you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation, version 3 of the License.

'ClassicASP-Framework is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with ClassicASP-Framework. If not, see .

'For additional information please visit .