Linear constructor
These are examples of linear equations, where the coefficient with the highest degree goes first:
// f(x) = 2x + 5
final eq = Linear(
a: Complex.fromReal(2),
b: Complex.fromReal(5),
);
// f(x) = (3 + i)x + 6
final eq = Linear(
a: Complex(3, 1),
b: Complex.fromReal(6),
);
Use this constructor if you have complex coefficients. If no Complex values are required, then consider using Linear.realEquation for a less verbose syntax.
Implementation
Linear({
Complex a = const Complex.fromReal(1),
Complex b = const Complex.zero(),
}) : super([a, b]);