function collation (mathematical function)

Source: Internet
Author: User
Tags abs cos cos cos log log mathematical functions natural logarithm numeric value sin
Mathematical functions simplify programming for mathematical and geometric processes. When you use these functions, remember that some functions can be obtained from other functions.
radians = degrees * pi/180
degrees = radians * 180/PI
PI = 3.1415926535897932
Natural logarithm: E = 2.718322
Sin (a) = A/C
Cos (a) = b/c
Tan (a) = A/b
Sec (a) = 1/cos (a)
Cosec (a) = 1/sin (a)
Cotan (a) = 1/tan (a)
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))
Hsex (x) = 2/(exp (x) + exp (-X)
Hcosec (x) = 2/(exp (x)-exp (-X)
Hcotan (x) = (exp (x) + exp (-X))/(exp (x)-exp (-X))
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
Logn (x) = Log (x)/log (n)
ABS function returns the absolute value of a number.
Usage is: result = Abs (number)
Where result is the absolute value of the number parameter.

The Atn Atn function returns the tangent value of a number.
Usage is: result = Atn (number)
Where result is the radian with a tangent value of number.

The Cos Cos function returns the cosine of a corner.
Usage is: result = Cos (number)
Where result is the ratio of the adjacent edge to the hypotenuse, number is the radian value of the angle.

THE EXP exp function returns the power with the natural logarithm as the base.
Usage is: result = EXP (number)
Where result is the number of arguments against.

The Fix fix function returns the integer portion of a number.
Usage is: result = Fix (number)
Where result is the integer part of the parameter number.

the int int function returns the integer portion of a number.
Usage is: result = Int (number)
Where result is the integer part of the parameter number.

The log log function returns the natural logarithm of a number.
Usage is: result = Log (number)
Where result is the numeric value of number.

The Rnd Rnd function returns a random number.
Usage is: result = rnd[(switch)]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.