next up previous

12.5.2.1 Trigonometric Functions

The following trigonometric functions take one numeric argument and return a floatingpoint number. The argument is expected to be in radians.


        FUNCTION                     RETURNS

           acos                     arccosine

          acosh                hyperbolic arccosine

           acot                    arccotangent

          acoth              hyperbolic arccotangent

           acsc                    arccosecant

          acsch               hyperbolic arccosecant

           asec                     arcsecant

          asech                hyperbolic arcsecant

           asin                      arcsine

          asinh                 hyperbolic arcsine

           atan                     arctangent

          atanh               hyperbolic arctangent

            cos                       cosine

           cosh                 hyperbolic cosine

            cot                     cotangent

           coth                 hyperbolic tangent

            csc                      cosecant

           csch                hyperbolic cosecant

            sec                       secant

           sech                 hyperbolic secant

            sin                        sine

           sinh                  hyperbolic sine

            tan                      tangent

           tanh                 hyperbolic tangent



Example

CLIPS> (cos 0)
1.0
CLIPS> (acos 1.0)
0.0
CLIPS>


next up previous