gcj/151: strange result on Math.sin(1e50)

sidney@janis.pds.twi.tudelft.nl sidney@janis.pds.twi.tudelft.nl
Tue Feb 15 05:40:00 GMT 2000


>Number:         151
>Category:       gcj
>Synopsis:       strange result on Math.sin(1e50)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 05:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Sidney Cadot
>Release:        2.95.2
>Organization:
>Environment:
Debian GNU/Linux (potato)
>Description:
Math.sin(1e50) yields 1e50 as a result. Not surprisingly,
the same call yields different results on Sun's java for
different platforms (eg., Linux, Sparc) but at least those
are in the [-1..1] range.
>How-To-Repeat:
public final class IEEETorture {
    static public void main(String args[])
    {
	System.out.println(Math.sin(1e50));
    }
}
>Fix:

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


More information about the Java-prs mailing list