Page 119 - Open Soource Technologies 304.indd
P. 119
Unit 5: VB String and Operators
Cos Cosine
Exp Exponentiation
Fix Fix places
Int Integer value
Log Log
Rud Random number
Sgn Sign
Sin Sine
Sqr Square root
Tan Tangent
If what you want, like hyperbolic cosecant, which shows you how to calculate other results using
the built-in Visual Basic functions.
Calculated
math
functions Calculate This Way
Function
Secant Sec (X) = 1/ Cos (X)
Cosecant Cosec (X) = 1/Sin(X)
Cotangent Cotan (X) = 1/Tin(X)
Inverse sine Arcsin (X) = Atn (X/Sqr (–X * X + 1))
Inverse Arccos (X) = Atn (–X/Sqr (–X*X+1))+2* Atn (1)
cosine
Inverse Arccosec (X) = Atn (X/Sqr (X * X–1)) +Sgn ((X)–1)* (2*Atn(1))
secant Arccosec (X) = Atn (X/Sqr (X * X–1)) +(Sgn (X)–1)* (2*Atn(1))
Inverse Arccotan (X) = Atn (X) + 2* Atn (1)
cosecant
Inverse HSin (X) = (Exp (X) – Exp (–X)/2
cotangent HCos (X) = (Exp (X) + Exp (–X))/2
Hyperbolic
HTan (X) = (Exp (X)–Exp (–X))/ (Exp (X)+Exp(–X))
sine
HSec (X) = 2/ (Exp (X) + Exp (–X))
Hyperbolic
cosine
LOVELY PROFESSIONAL UNIVERSITY 113