Sie sind auf Seite 1von 3

Description

Cach Basic supplies four trigonometric functions: Sin (sine), Cos (cosine), Tan (tangent), and Atn (arctangent); two logarithmic functions: Log (natural e logarithm) and Exp (e exponential); the Sqr (square root) function and the Sgn (sign) function. From these many other functions and constants can be derived.
Function Secant Cosecant Cotangent Inverse Sine Inverse Cosine Inverse Secant Derived Equivalents Sec(X) = 1 / Cos(X) Cosec(X) = 1 / Sin(X) Cotan(X) = 1 / Tan(X) Arcsin(X) = Atn(X / Sqr(-X * X + 1)) Arccos(X) = Atn(-X / Sqr(-X * X + 1)) + 2 * Atn(1) Arcsec(X) = Atn(X / Sqr(X * X - 1)) + Sgn((X) -1) * (2 * Atn(1)) Arccosec(X) = Atn(X / Sqr(X * X - 1)) + (Sgn(X) - 1) * (2 * Atn(1)) Arccotan(X) = Atn(X) + 2 * Atn(1) HSin(X) = (Exp(X) - Exp(-X)) / 2 HCos(X) = (Exp(X) + Exp(-X)) / 2 HTan(X) = (Exp(X) - Exp(-X)) / (Exp(X) + Exp(-X)) HSec(X) = 2 / (Exp(X) + Exp(-X)) HCosec(X) = 2 / (Exp(X) - Exp(-X)) HCotan(X) = (Exp(X) + Exp(-X)) / (Exp(X) - Exp(-X))

Inverse Cosecant Inverse Cotangent Hyperbolic Sine Hyperbolic Cosine Hyperbolic Tangent Hyperbolic Secant Hyperbolic Cosecant Hyperbolic Cotangent

Inverse Hyperbolic Sine Inverse Hyperbolic Cosine Inverse Hyperbolic Tangent Inverse Hyperbolic Secant Inverse Hyperbolic Cosecant Inverse Hyperbolic Cotangent Base-10 Logarithm Logarithm to base N

HArcsin(X) = Log(X + Sqr(X * X + 1)) HArccos(X) = Log(X + Sqr(X * X - 1)) HArctan(X) = Log((1 + X) / (1 - X)) / 2 HArcsec(X) = Log((Sqr(-X * X + 1) + 1) / X) HArccosec(X) = Log((Sgn(X) * Sqr(X * X + 1) +1) / X)

HArccotan(X) = Log((X + 1) / (X - 1)) / 2 Log10(X) = Log(X) / Log(10) LogN(X) = Log(X) / Log(N)

Cach ObjectScript Equivalents


Cach ObjectScript supplies the following nine trigonometric functions: $ZSIN sine function; $ZCOS cosine function; $ZARCSIN inverse (arc) sine function; $ZARCCOS inverse (arc) cosine function; $ZTAN tangent function; $ZARCTAN inverse (arc) tangent function; $ZCOT cotangent function; $ZSEC secant function; and $ZCSC cosecant function. Cach ObjectScript supplies the following three logarithmic functions: $ZEXP e exponential function; $ZLN natural logarithm function; and $ZLOG base-10 logarithm function. Cach ObjectScript supplies the following two exponential functions: $ZPOWER exponent function; and $ZSQR square root function.

See Also

Atn function Cos function Exp function Log function Sgn function Sin function Sqr function Tan function

Description
The Atn function takes the ratio of two sides of a right triangle (number) and returns the corresponding angle in radians. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle. The range of the result is -pi/2 to pi/2 radians. To convert degrees to radians, multiply degrees by pi/180. To convert radians to degrees, multiply radians by 180/pi.

Examples
The following example returns the arctangents of the integers from -4 through 4:
For x = -4 TO 4 Println "Arctangent of ",x," is: ",Atn(x) Next

The following example uses Atn to calculate the value of pi:


Dim pi pi = 4 * Atn(1) ' Calculate the value of pi.

Println "pi is: ",pi

Das könnte Ihnen auch gefallen