@jeff-tian/math
v3.0.0
Published
Math extended,一个 js 数学扩展包。
Downloads
21
Readme
@jeff-tian/math
一个 js 数学包。
功能
- 计算导数(微分)
- $$\frac{dc}{dx} =0 当c是一个常量,或者一个与x不同的变量$$
- $$\frac{dx}{dx}=1$$
- $$\frac{d(u+v)}{dx}=\frac{du}{dx}+\frac{dv}{dx}$$
- $$\frac{d(uv)}{dx}=u(\frac{dv}{dx})+v(\frac{du}{dx})$$
- $$\frac{d(u^n)}{dx}=nu^{n-1}(\frac{du}{dx})$$
使用方法
var math = require("@jeff-tian/math")
console.log(Math.deriv(['x'], 'x'))
console.log(Math.deriv(['3', '*', 'x', '**', '2'], 'x'))
在线尝试: https://npm.runkit.com/%40jeff-tian%2Fmath
谁在使用
开发过程(局部)
https://www.zhihu.com/zvideo/1515080556539256832