Next: baselib math ops exponentiation, Previous: baselib math ops part, Up: baselib math ops [Index]
These procedures compute the usual transcendental functions.
The exp
procedure computes the base–e exponential of
z.
The log
procedure with a single argument computes the natural
logarithm of z (not the base–10 logarithm); (log
z1 z2)
computes the base–z2 logarithm of z1.
The asin
, acos
, and atan
procedures compute
arcsine, arccosine, and arctangent, respectively. The two–argument
variant of atan
computes:
(angle (make-rectangular x2 x1))
These procedures may return inexact results even when given exact arguments.
(exp +inf.0) ⇒ +inf.0 (exp -inf.0) ⇒ 0.0 (log +inf.0) ⇒ +inf.0 (log 0.0) ⇒ -inf.0 (log 0) ⇒ exception &assertion (log -inf.0) ⇒ +inf.0+3.141592653589793i ; approximately (atan -inf.0) ⇒ -1.5707963267948965 ; approximately (atan +inf.0) ⇒ 1.5707963267948965 ; approximately (log -1.0+0.0i) ⇒ 0.0+3.141592653589793i ; approximately (log -1.0-0.0i) ⇒ 0.0-3.141592653589793i ; approximately if -0.0 is distinguished