manpagez: man pages & more
info bc
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1 Math Library Functions

If bc is invoked with the -l option, a math library is preloaded and the default scale is set to 20. The math functions will calculate their results to the scale set at the time of their call. The math library defines the following functions:

s (x)

The sine of x, x is in radians.

c (x)

The cosine of x, x is in radians.

a (x)

The arctangent of x, arctangent returns radians.

l (x)

The natural logarithm of x.

e (x)

The exponential function of raising e to the value x.

j (n,x)

The bessel function of integer order n of x.


© manpagez.com 2000-2017
Individual documents may contain additional copyright information.