Quartic constructor

Quartic({
  1. Complex a = const Complex.fromReal(1),
  2. Complex b = const Complex.zero(),
  3. Complex c = const Complex.zero(),
  4. Complex d = const Complex.zero(),
  5. Complex e = const Complex.zero(),
})

These are examples of quartic equations, where the coefficient with the highest degree goes first:

// f(x) = -x^4 - 8x^3 - 1
final eq = Quartic(
  a: Complex.fromReal(-1),
  b: Complex.fromReal(-8),
  e: Complex.fromReal(-1),
);

// f(x) = ix^4 - ix^2 + 6
final eq = Quartic(
  a: Complex.fromImaginary(1),
  c: Complex.fromImaginary(-1),
  e: Complex.fromReal(6),
);

Use this constructor if you have complex coefficients. If no Complex values are required, then consider using Quartic.realEquation for a less verbose syntax.

Implementation

Quartic({
  Complex a = const Complex.fromReal(1),
  Complex b = const Complex.zero(),
  Complex c = const Complex.zero(),
  Complex d = const Complex.zero(),
  Complex e = const Complex.zero(),
}) : super([a, b, c, d, e]);