horner:使用霍纳法则评估多项式

时间:2021-05-24 05:49:10
【文件属性】:
文件名称:horner:使用霍纳法则评估多项式
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-24 05:49:10
JavaScript 霍纳 使用评估多项式。 例子 实多项式 评估1 + 2 * x^2 at x = 2的多项式1 + 2 * x^2 at x = 2 : var horner = require ( "horner" ) console . log ( horner ( [ 1 , 0 , 2 ] , 2.0 ) ) 输出 9 复多项式 在x = 1+2i处评估多项式2 - 3i * x + (4 + 5i)*x^2 : var horner = require ( "horner" ) console . log ( horner ( [ [ 2 , 0 , 4 ] //Real coefficients , [ 0 , - 3 , 5 ] ] //Imaginary coefficients , [ 1 ,
【文件预览】:
horner-master
----.travis.yml(94B)
----package.json(716B)
----test()
--------test.js(320B)
----LICENSE(1KB)
----.gitignore(98B)
----README.md(1KB)
----horner.js(1KB)

网友评论