bc: Math Library Functions

1 
1 5.1 Math Library Functions
1 ==========================
1 
1 If 'bc' is invoked with the '-l' option, a math library is preloaded and
1 the default SCALE is set to 20.  The math functions will calculate their
1 results to the scale set at the time of their call.  The math library
1 defines the following functions:
1 
1 's (X)'
1      The sine of X, X is in radians.
1 
1 'c (X)'
1      The cosine of X, X is in radians.
1 
1 'a (X)'
1      The arctangent of X, arctangent returns radians.
1 
1 'l (X)'
1      The natural logarithm of X.
1 
1 'e (X)'
1      The exponential function of raising E to the value X.
1 
1 'j (N, X)'
1      The Bessel function of integer order N of X.
1