This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libgcj/4616: Floating Point Math class problem on Tru64 Alpha v 5.1



>Number:         4616
>Category:       libgcj
>Synopsis:       Floating Point Math class problem on Tru64 Alpha v 5.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 18 20:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Antonio Ake
>Release:        3.0.2 prerelease
>Organization:
>Environment:
TRu64 Unix v 5.1
>Description:
his is the part of the code executing:
   public static double d1f (double arg) {
      double y,x;
     
      	  System.out.print("Argument arg is " + arg + " ");
	  y= Math.exp(arg);
	  System.out.print("Argument y is " + y + " ");
	  x=Math.pow((y+1.0),2.0);
	  System.out.print("Argument x is " + x + "\n");
	  return ( (2.0 * y)/x );
}
The problem is when x is infinity.
Argument arg is 378.0812928461101 
Var y is 1.5798621479294393E164 
Var  x is Infinity
Floating point exception (core dumped)
I tested on Linux x/86 and it is working, the problem is on Tru64 Unix
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]