Skip to content

zhujin917/interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

拉格朗日插值法的 JavaScript 实现

输入

一组点

[ [x1, y1], [x2, y2], [x3, y3] ... ]

意思是最终的函数应该经过点:

$$ (x1, y1), (x2, y2), (x3, y3) ... $$

输出

一个分式

[ [ c0, c1, c2 ... ], d ]

意思是最终的函数解析式为:

$$ f(x)=\frac{c_0+c_1\cdot x+c_2\cdot x^2+\cdots}{d} $$

About

拉格朗日插值法的 JavaScript 实现。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published