Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在问我是否需要导入某种库来执行类似的操作
echo "cos(1)" | bc
并通常使用 BLAS 和三角函数。
加载数学库bc -l;余弦函数c在此库中命名:
bc -l
c
echo "c(1)" | bc -l
该库仅支持正弦、余弦、反正切、自然对数、指数函数和(奇怪的是)n 阶贝塞尔函数。