non mi pare molto estesol3on4rdo ha scritto: state scherzando vero ?
ovviamente ci sono anche le radici quadrate e gli esponenziali... ma ve li lascio come esercizio !Codice: Seleziona tutto
echo 'l(4)' | bc -l
ciao
Codice: Seleziona tutto
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.



