FreeBSD Bugzilla – Attachment 200862 Details for
Bug 234689
java/openjdk8: Math.asin() (and StrictMath.asin()) seem to be broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Java test program
CheckMathIssue.java (text/plain), 3.27 KB, created by
thgude
on 2019-01-07 10:41:04 UTC
(
hide
)
Description:
Java test program
Filename:
MIME Type:
Creator:
thgude
Created:
2019-01-07 10:41:04 UTC
Size:
3.27 KB
patch
obsolete
>/* >This small test program illustrates the incorrect results of the Math.asin() method >on FreeBSD 11.2 and openjdk8-8.192. The output of this program has been collected for four >different platforms and is included here: > >Operating System: FreeBSD amd64 11.2-STABLE >Java: 1.8.0_192 Oracle Corporation >Java Specification: Java Platform API Specification Oracle Corporation 1.8 >Java VM: 25.192-b26 Oracle Corporation >Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 >asin(0.5)= 0.5 >asin(-0.38147821481517075)= -0.38147821481517075 >StrictMath asin(0.5)= 0.5 >StrictMath asin(-0.38147821481517075)= -0.38147821481517075 > >Operating System: FreeBSD amd64 11.2-STABLE >Java: 1.8.0_172 Oracle Corporation >Java Specification: Java Platform API Specification Oracle Corporation 1.8 >Java VM: 25.172-b11 Oracle Corporation >Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 >asin(0.5)= 0.5235987755982989 >asin(-0.38147821481517075)= -0.391394915510742 >StrictMath asin(0.5)= 0.5235987755982989 >StrictMath asin(-0.38147821481517075)= -0.391394915510742 > >Operating System: Mac OS X x86_64 10.14.2 >Java: 1.8.0_192 Oracle Corporation >Java Specification: Java Platform API Specification Oracle Corporation 1.8 >Java VM: 25.192-b12 Oracle Corporation >Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 >asin(0.5)= 0.5235987755982989 >asin(-0.38147821481517075)= -0.391394915510742 >StrictMath asin(0.5)= 0.5235987755982989 >StrictMath asin(-0.38147821481517075)= -0.391394915510742 > >Operating System: Linux arm 4.14.78-2-osmc >Java: 1.8.0_191 Oracle Corporation >Java Specification: Java Platform API Specification Oracle Corporation 1.8 >Java VM: 25.191-b12 Oracle Corporation >Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 >asin(0.5)= 0.5235987755982989 >asin(-0.38147821481517075)= -0.391394915510742 >StrictMath asin(0.5)= 0.5235987755982989 >StrictMath asin(-0.38147821481517075)= -0.391394915510742 > >*/ >public class CheckMathIssue { > public static void main(String[] args) { > System.out.println("Operating System: " + System.getProperty("os.name") > + " " + System.getProperty("os.arch") > + " " + System.getProperty("os.version")); > > System.out.println("Java: " + System.getProperty("java.version") > + " " + System.getProperty("java.vendor")); > > System.out.println("Java Specification: " + System.getProperty("java.specification.name") > + " " + System.getProperty("java.specification.vendor") > + " " + System.getProperty("java.specification.version")); > > System.out.println("Java VM: " + System.getProperty("java.vm.version") > + " " + System.getProperty("java.vm.vendor")); > > System.out.println("Java VM Specification: " + System.getProperty("java.vm.specification.name") > + " " + System.getProperty("java.vm.specification.vendor") > + " " + System.getProperty("java.vm.specification.version")); > > double value1 = Math.asin(0.5); > double value2 = Math.asin(-0.38147821481517075); > double value3 = StrictMath.asin(0.5); > double value4 = StrictMath.asin(-0.38147821481517075); > System.out.println("asin(0.5)= " + value1); > System.out.println("asin(-0.38147821481517075)= " + value2); > System.out.println("StrictMath asin(0.5)= " + value3); > System.out.println("StrictMath asin(-0.38147821481517075)= " + value4); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 234689
: 200862