Current location - Training Enrollment Network - Mathematics courses - Vb function problem
Vb function problem
Arctg (x) * pai/ 180 is expressed as (ATN (x)+2 * ATN (1)) * pi/180 in VB.

Cos(x) is a function of VB, which can be used directly.

Lg(x) is expressed as log(x)/log( 10) in VB.

About "mathematical function":

Absolute value of Abs function

Arctangent of Atn function

Cosine function cosine

Exp function is the power of natural logarithm e.

The Fix function is the first integer greater than or equal to number.

The first integer whose absolute value is greater than or equal to number and whose positive and negative are the same as number.

Logarithmic function for finding natural logarithm (base e)

The Rnd function gets a random number.

The Sgn function represents the symbol of the parameter.

sine function

Square root of Sqr function

Tangent function

The trigonometric functions in the above functions are all in radian, radian = angle *pi/ 180, and all other trigonometric, exponential and logarithmic functions can be derived from the above functions.

Function formula derived from basic function

Secant Sec(X) = 1/Cos(X)

Cotangent cotangent (X) = 1/Sin(X)

Cotangent Cotan(X) = 1/Tan(X)

Arcsine (x) = ATN (x/sqr (-x * x+ 1))

Arccosine arccos (x) = ATN (-x/sqr (-x * x+1))+2 * ATN (1).

Secant arc sec (x) = ATN (x/sqr (x * x-1))+SGN ((x)-1) * (2 * ATN (1)).

Inverse cotangent arccos EC (x) = ATN (x/sqr (x * x-1))+(SGN (x)-1) * (2 * ATN (1))

Inverse cotangent (x) = ATN (x)+2 * ATN (1)

Hyperbolic sine HSin(X) = (Exp(X)-Exp(-X))/2

Hyperbolic cosine HCos(X) = (Exp(X)+Exp(-X))/2

Hyperbolic tangent htan (x) = (exp (x)-exp (-x))/(exp (x)+exp (-x))

Hyperbolic secant HSec(X) = 2/(Exp(X)+Exp(-X))

Hyperbolic cotangent HCosec(X) = 2/(Exp(X)-Exp(-X))

Hyperbolic cotangent h cotan (x) = (exp (x)+exp (-x))/(exp (x)-exp (-x))

Inverse hyperbolic sine harcsin (x) = log (x+sqr (x * x+1))

Inverse hyperbolic cosine (arccos (x) = log (x+sqr (x * x-1))

Inverse hyperbolic tangent harctan (x) = log ((1+x)/(1-x))/2.

Inverse hyperbolic secant harcsec (x) = log ((sqr (-x * x+1)+1)/x).

Inverse hyperbolic cotangent harccosec (x) = log ((SGN (x) * sqr (x * x+1)+1)/x)

Inverse hyperbolic cotangent harccotan (x) = log ((x+1)/(x-1))/2.

LogN(X) = Log(X)/Log(N)

References:

Microsoft MSDN company