• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] bc option -l

Gimpel

Guru
bc -l genügt. Damit läd es die math library, welche folgende Eigenschaften mit sich bringt:
man bc schrieb:
MATH LIBRARY
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.
Du kannst scale dann selber noch angeben, siehe EXAMPLES
 
Oben