Summary: | java.awt.geom.QuadCurve2D.solveQuadratic sometimes gives wrong result | ||
---|---|---|---|
Product: | classpath | Reporter: | from-classpath |
Component: | classpath | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug-classpath |
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
from-classpath
2003-10-21 14:27:36 UTC
This would be fixed by a revised version of solveQuadratic that is derived from the GNU Scientific Library (GSL). Since GSL is licensed under the GPL, but not (c) FSF, we'll have to ask the GSL authors for permission. I've sent an e-mail to the author today, with cc to Mark Wielaard. If the GSL author agrees, I'll check in my patch. A revised version of the test case is now in Mauve cvs. Fixed by revision 1.10 of java/awt/geom/QuadCurve2D.java, checked in today. Also, revision 1.6 of java/awt/CubicCurve2D.java now has a numerically stable implementation of cubic equation solving. The author of the relevant code in the GNU Scientific Library has assigned copyright to the FSF. |