Linear.realEquation constructor
These are examples of linear equations, where the coefficient with the highest degree goes first:
// f(x) = 2x + 5
final eq = Linear.realEquation(
a: 2,
b: 5,
);
// f(x) = 3 - x
final eq = Linear.realEquation(
a: -1,
b: 3,
);
If the coefficients of your polynomial contain complex numbers, consider using the Linear.new constructor instead.
Implementation
Linear.realEquation({
double a = 1,
double b = 0,
}) : super.realEquation([a, b]);