41 |
import java.awt.Shape; |
import java.awt.Shape; |
42 |
import java.util.NoSuchElementException; |
import java.util.NoSuchElementException; |
43 |
|
|
|
|
|
44 |
/** |
/** |
45 |
* A two-dimensional curve that is parameterized with a quadratic |
* A two-dimensional curve that is parameterized with a quadratic |
46 |
* function. |
* function. |
562 |
* result of -1 indicates that the equation is constant (i.e., |
* result of -1 indicates that the equation is constant (i.e., |
563 |
* always or never zero). |
* always or never zero). |
564 |
* |
* |
565 |
* @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> |
* @author Brain Gouph (bjg@network-theory.com) |
566 |
* (original C implementation in the <a href= |
* (original C implementation in the <a href= |
567 |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
568 |
* |
* |
569 |
* @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> |
* @author Sascha Brawer (brawer@dandelis.ch) |
570 |
* (adaptation to Java) |
* (adaptation to Java) |
571 |
*/ |
*/ |
572 |
public static int solveQuadratic(double[] eqn) |
public static int solveQuadratic(double[] eqn) |
607 |
* result of -1 indicates that the equation is constant (i.e., |
* result of -1 indicates that the equation is constant (i.e., |
608 |
* always or never zero). |
* always or never zero). |
609 |
* |
* |
610 |
* @author <a href="mailto:bjg@network-theory.com">Brian Gough</a> |
* @author Brian Gouph (bjg@network-theory.com) |
611 |
* (original C implementation in the <a href= |
* (original C implementation in the <a href= |
612 |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
* "http://www.gnu.org/software/gsl/">GNU Scientific Library</a>) |
613 |
* |
* |
614 |
* @author <a href="mailto:brawer@dandelis.ch">Sascha Brawer</a> |
* @author Sascha Brawer (brawer@dandelis.ch) |
615 |
* (adaptation to Java) |
* (adaptation to Java) |
616 |
*/ |
*/ |
617 |
public static int solveQuadratic(double[] eqn, double[] res) |
public static int solveQuadratic(double[] eqn, double[] res) |