3

使用Calc做微积分

 3 years ago
source link: https://www.lujun9972.win/blog/2019/08/31/%E4%BD%BF%E7%94%A8calc%E5%81%9A%E5%BE%AE%E7%A7%AF%E5%88%86/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

使用Calc做微积分

Calc居然还能计算微积分!不亏为穷人的matlab啊。

  1. 输入方程式,比如 1/x+x^2+1
  2. 根据minibuffer中的提示,输入微分变量,比如 x
  3. 得到结果 2x-x^-2

calc-deriv-1.png

  1. 输入方程式,比如 sin(x)+x
  2. 根据minibuffer中的提示,输入积分变量,比如 x
  3. 得到结果 x^2 / 2 - 180 cos(x) / pi

    calc-integ-1.png

在Org-babel中使用Calc进行微积分

deriv(1/x+x^2+1,x)
2 x - x^-2

计算在某一点上的微分值

deriv(1/x+x^2+1,x,1)
integ(sin(x)+x,x)
x^2 / 2 - 180 cos(x) / pi

计算某一点上的积分值

integ(sin(x)+x,x,90)
4050


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK