- 论坛徽章:
- 0
|
谁能讲讲 bc 的用法吗
原帖由 "guoliangbo" 发表:
请问:
除了+-*/之外,bc 有没有三角函数,对数函数,指数函数,幂函数等?
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. log函数(以2为底)
e (x) The exponential function of raising e to the value x. e的指数函数
j (n,x)
The bessel function of integer order n of x. 贝塞尔函数
兄弟要中文man页,令吾汗颜啊。
都是老外朋友写的东西。 |
|