[
https://issues.apache.org/jira/browse/MATH-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Rebsamen closed MATH-1685.
----------------------------------
Resolution: Not A Problem
Got it, thanks for the quick reply [~erans] and [~aherbert]
> Math.sin() evaluates to different results on arm64 and x64
> ----------------------------------------------------------
>
> Key: MATH-1685
> URL: https://issues.apache.org/jira/browse/MATH-1685
> Project: Commons Math
> Issue Type: Bug
> Environment: aarch64
> x64
> Reporter: Philipp Rebsamen
> Priority: Minor
>
> When using Math.sin(), certain inputs evaluate to different results on arm64
> and x64 architectures. We have tested it on several Apple M4, M3 and M2
> powered MacBooks as well as some Windows notebooks (all running Windows 11).
> Here are the respective outputs (with comparison to FastMath and StrictMath
> libraries as well):
> x64:
> Math.sin(1.8546554965762145) = 0.9599817810077{*}941{*}
> _FastMath.sin(1.8546554965762145) = 0.9599817810077941_
> _StrictMath.sin(1.8546554965762145) = 0.9599817810077941_
>
> aarch64:
> Math.sin(1.8546554965762145) = 0.9599817810077{*}942{*}
> _FastMath.sin(1.8546554965762145) = 0.9599817810077941_
> _StrictMath.sin(1.8546554965762145) = 0.9599817810077941_
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)