commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #6095] java.awt.geom.QuadCurve2D.solveQuadratic sometimes gives wro


From: nobody
Subject: [bug #6095] java.awt.geom.QuadCurve2D.solveQuadratic sometimes gives wrong result
Date: Fri, 24 Oct 2003 10:06:58 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1a) Gecko/20020610

=================== BUG #6095: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6095&group_id=85

Changes by: Sascha Brawer <address@hidden>
Date: Fri 10/24/2003 at 14:06 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Later
         Assigned to | None                      | brawer


------------------ Additional Follow-up Comments ----------------------------
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.



=================== BUG #6095: FULL BUG SNAPSHOT ===================


Submitted by: brawer                  Project: classpath                    
Submitted on: Tue 10/21/2003 at 14:27
Severity:  5 - Major                  Resolution:  Later                    
Assigned to:  brawer                  Status:  Open                         
Platform Version:  None               

Summary:  java.awt.geom.QuadCurve2D.solveQuadratic sometimes gives wrong result

Original Submission:  The solveQuadratic method in java.awt.geom.QuadCurve2D 
gives the wrong result for the equation 4 * (x^2) = 0. This equation has 
exactly one solution, namely x = 0.



Both Sun J2SE 1.4.1_01 (GNU/Linux i386) and Apple JDK 1.3.1 (PowerPC G4) return 
the correct result. GNU Classpath however claims that the equation has two 
solutions.



A Mauve test case is attached, see checks 8 and 9.

Follow-up Comments
*******************

-------------------------------------------------------
Date: Fri 10/24/2003 at 14:06       By: brawer
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.


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Tue 10/21/2003 at 14:27  Name: solveQuadratic.java  Size: 2KB   By: brawer
Mauve test case
http://savannah.gnu.org/bugs/download.php?group_id=85&amp;bug_id=6095&amp;bug_file_id=741


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6095&group_id=85

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]