polynomial:计算多项式

时间:2021-06-07 22:27:22
【文件属性】:
文件名称:polynomial:计算多项式
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-07 22:27:22
JavaScript 多项式 计算多项式。 安装 $ npm install compute-polynomial 要在浏览器中使用,请使用 。 用法 var polyval = require ( 'compute-polynomial' ) ; polyval( coef, x[, options] ) 计算系数由coef定义的多项式。 x可以是单个numeric或要计算多项式的值的array 。 系数应按降序排列。 例如,对于多项式 a_nx^n + a_(n-1)x^(n-1) + ... + a_1x^1 + a_0x^0 系数将是 [a_n, a_(n-1),..., a_1, a_0] 考虑多项式4x^3 + 2x^2 + 6x - 17 。 要以单个值计算多项式, var val = polyval ( [ 4 , 2 , 6 , - 17 ] , 10 ) ; // retu
【文件预览】:
polynomial-master
----.jshintrc(1KB)
----.gitattributes(12B)
----.jshintignore(118B)
----lib()
--------index.js(3KB)
----.npmignore(498B)
----examples()
--------index.js(421B)
----TODO.md(12B)
----.travis.yml(156B)
----LICENSE(1KB)
----test()
--------test.js(5KB)
----README.md(4KB)
----Makefile(2KB)
----.editorconfig(169B)
----.gitignore(711B)
----package.json(2KB)

网友评论