Quartic.realEquation constructor

Quartic.realEquation({
  1. double a = 1,
  2. double b = 0,
  3. double c = 0,
  4. double d = 0,
  5. double e = 0,
})

This is an example of a quartic equations, where the coefficient with the highest degree goes first:

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

If the coefficients of your polynomial contain complex numbers, consider using the Quartic.new constructor instead.

Implementation

Quartic.realEquation({
  double a = 1,
  double b = 0,
  double c = 0,
  double d = 0,
  double e = 0,
}) : super.realEquation([a, b, c, d, e]);