642 |
* @see #solveCubic(double[], double[]) |
* @see #solveCubic(double[], double[]) |
643 |
* @see QuadCurve2D#solveQuadratic(double[],double[]) |
* @see QuadCurve2D#solveQuadratic(double[],double[]) |
644 |
* |
* |
645 |
* @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> |
* @author Brian Gough (bjg@network-theory.com) |
646 |
* (original C implementation in the <a href= |
* (original C implementation in the <a href= |
647 |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
648 |
* |
* |
649 |
* @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> |
* @author Sascha Brawer (brawer@dandelis.ch) |
650 |
* (adaptation to Java) |
* (adaptation to Java) |
651 |
*/ |
*/ |
652 |
public static int solveCubic(double[] eqn) |
public static int solveCubic(double[] eqn) |
689 |
* result of -1 indicates that the equation is constant (i.e., |
* result of -1 indicates that the equation is constant (i.e., |
690 |
* always or never zero). |
* always or never zero). |
691 |
* |
* |
692 |
* @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> |
* @author Brain Gouph (bjg@network-theory.com) |
693 |
* (original C implementation in the <a href= |
* (original C implementation in the <a href= |
694 |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
695 |
* |
* |
696 |
* @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> |
* @author Sascha Brawer (brawer@dandelis.ch) |
697 |
* (adaptation to Java) |
* (adaptation to Java) |
698 |
*/ |
*/ |
699 |
public static int solveCubic(double[] eqn, double[] res) |
public static int solveCubic(double[] eqn, double[] res) |