GNU Info

Info Node: (elisp)Math Functions

(elisp)Math Functions


Next: Random Numbers Prev: Bitwise Operations Up: Numbers
Enter node , (file) or (file)node

Standard Mathematical Functions
===============================

   These mathematical functions allow integers as well as floating point
numbers as arguments.

 - Function: sin arg
 - Function: cos arg
 - Function: tan arg
     These are the ordinary trigonometric functions, with argument
     measured in radians.

 - Function: asin arg
     The value of `(asin ARG)' is a number between -pi/2 and pi/2
     (inclusive) whose sine is ARG; if, however, ARG is out of range
     (outside [-1, 1]), then the result is a NaN.

 - Function: acos arg
     The value of `(acos ARG)' is a number between 0 and pi (inclusive)
     whose cosine is ARG; if, however, ARG is out of range (outside
     [-1, 1]), then the result is a NaN.

 - Function: atan arg
     The value of `(atan ARG)' is a number between -pi/2 and pi/2
     (exclusive) whose tangent is ARG.

 - Function: exp arg
     This is the exponential function; it returns e to the power ARG.  e
     is a fundamental mathematical constant also called the base of
     natural logarithms.

 - Function: log arg &optional base
     This function returns the logarithm of ARG, with base BASE.  If
     you don't specify BASE, the base e is used.  If ARG is negative,
     the result is a NaN.

 - Function: log10 arg
     This function returns the logarithm of ARG, with base 10.  If ARG
     is negative, the result is a NaN.  `(log10 X)' == `(log X 10)', at
     least approximately.

 - Function: expt x y
     This function returns X raised to power Y.  If both arguments are
     integers and Y is positive, the result is an integer; in this
     case, it is truncated to fit the range of possible integer values.

 - Function: sqrt arg
     This returns the square root of ARG.  If ARG is negative, the
     value is a NaN.


automatically generated by info2www version 1.2.2.9