SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.function.polynomial.root
Interface Quartic.QuarticSolver

All Known Implementing Classes:
QuarticByFerrari, QuarticByFormula
Enclosing class:
Quartic

public static interface Quartic.QuarticSolver

This defines a quartic equation solver.


Method Summary
 NumberList solve(double a, double b, double c, double d, double e)
          Solve ax4 + bx3 + cx2 + dx + e = 0
 

Method Detail

solve

NumberList solve(double a,
                 double b,
                 double c,
                 double d,
                 double e)
Solve
ax4 + bx3 + cx2 + dx + e = 0

Parameters:
a - a
b - b
c - c
d - d
e - e
Returns:
the list of roots

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.