Polynomial class

A single-variable polynomial with real-valued coefficients and non-negative exponents.

Constructors

Polynomial()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

evaluate(double z, List<double> coefficients) double
Evaluate a polynomial at point x. Coefficients are ordered ascending by power with power k at index k. Example: coefficients 3,-1,2 represent y=2x^2-x+3.