MCPcopy Create free account
hub / github.com/TheAlgorithms/JavaScript /

Class

Maths/Polynomial.js:11–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 * The members of array are coefficients and their indexes as exponents.
10 */
11class Polynomial {
12 constructor(array) {
13 this.coefficientArray = array // array of coefficients
14 this.polynomial = '' // in terms of x e.g., (2x) + (1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected