709 |
// The Java implementation is very similar to the GSL code, but |
// The Java implementation is very similar to the GSL code, but |
710 |
// not a strict one-to-one copy. For example, GSL would sort the |
// not a strict one-to-one copy. For example, GSL would sort the |
711 |
// result. |
// result. |
712 |
|
|
713 |
double a; |
double a; |
|
|
|
|
// Adapted from poly/solve_cubic.c in the GNU Scientific Library |
|
|
// (GSL), revision 1.7 of 2003-07-26. For the original source, see |
|
|
// http://www.gnu.org/software/gsl/ |
|
|
// |
|
|
// Brian Gough, the author of that code, has granted the |
|
|
// permission to use it in GNU Classpath under the GNU Classpath |
|
|
// license, and has assigned the copyright to the Free Software |
|
|
// Foundation. |
|
|
// |
|
|
// The Java implementation is very similar to the GSL code, but |
|
|
// not a strict one-to-one copy. For example, GSL would sort the |
|
|
// result. |
|
714 |
double b; |
double b; |
|
|
|
|
// Adapted from poly/solve_cubic.c in the GNU Scientific Library |
|
|
// (GSL), revision 1.7 of 2003-07-26. For the original source, see |
|
|
// http://www.gnu.org/software/gsl/ |
|
|
// |
|
|
// Brian Gough, the author of that code, has granted the |
|
|
// permission to use it in GNU Classpath under the GNU Classpath |
|
|
// license, and has assigned the copyright to the Free Software |
|
|
// Foundation. |
|
|
// |
|
|
// The Java implementation is very similar to the GSL code, but |
|
|
// not a strict one-to-one copy. For example, GSL would sort the |
|
|
// result. |
|
715 |
double c; |
double c; |
|
|
|
|
// Adapted from poly/solve_cubic.c in the GNU Scientific Library |
|
|
// (GSL), revision 1.7 of 2003-07-26. For the original source, see |
|
|
// http://www.gnu.org/software/gsl/ |
|
|
// |
|
|
// Brian Gough, the author of that code, has granted the |
|
|
// permission to use it in GNU Classpath under the GNU Classpath |
|
|
// license, and has assigned the copyright to the Free Software |
|
|
// Foundation. |
|
|
// |
|
|
// The Java implementation is very similar to the GSL code, but |
|
|
// not a strict one-to-one copy. For example, GSL would sort the |
|
|
// result. |
|
716 |
double q; |
double q; |
|
|
|
|
// Adapted from poly/solve_cubic.c in the GNU Scientific Library |
|
|
// (GSL), revision 1.7 of 2003-07-26. For the original source, see |
|
|
// http://www.gnu.org/software/gsl/ |
|
|
// |
|
|
// Brian Gough, the author of that code, has granted the |
|
|
// permission to use it in GNU Classpath under the GNU Classpath |
|
|
// license, and has assigned the copyright to the Free Software |
|
|
// Foundation. |
|
|
// |
|
|
// The Java implementation is very similar to the GSL code, but |
|
|
// not a strict one-to-one copy. For example, GSL would sort the |
|
|
// result. |
|
717 |
double r; |
double r; |
|
|
|
|
// Adapted from poly/solve_cubic.c in the GNU Scientific Library |
|
|
// (GSL), revision 1.7 of 2003-07-26. For the original source, see |
|
|
// http://www.gnu.org/software/gsl/ |
|
|
// |
|
|
// Brian Gough, the author of that code, has granted the |
|
|
// permission to use it in GNU Classpath under the GNU Classpath |
|
|
// license, and has assigned the copyright to the Free Software |
|
|
// Foundation. |
|
|
// |
|
|
// The Java implementation is very similar to the GSL code, but |
|
|
// not a strict one-to-one copy. For example, GSL would sort the |
|
|
// result. |
|
718 |
double Q; |
double Q; |
|
|
|
|
// Adapted from poly/solve_cubic.c in the GNU Scientific Library |
|
|
// (GSL), revision 1.7 of 2003-07-26. For the original source, see |
|
|
// http://www.gnu.org/software/gsl/ |
|
|
// |
|
|
// Brian Gough, the author of that code, has granted the |
|
|
// permission to use it in GNU Classpath under the GNU Classpath |
|
|
// license, and has assigned the copyright to the Free Software |
|
|
// Foundation. |
|
|
// |
|
|
// The Java implementation is very similar to the GSL code, but |
|
|
// not a strict one-to-one copy. For example, GSL would sort the |
|
|
// result. |
|
719 |
double R; |
double R; |
720 |
double c3; |
double c3; |
721 |
double Q3; |
double Q3; |