-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The implementation of trigonometric functions should be aligned with the JavaScript backend #1488
Labels
Comments
cc @tonyfettes @Kaida-Amethyst Is this plan reasonable? |
I think it would be beneficial. The current Moonbit implementation seems to have precision issues, as demonstrated by the following code and results --- the hex values of sin(π) and cos(π/2): Moonbit (
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the current trigonometric functions should be replaced with implementations consistent with V8, so that we can directly inline them into
Math
on the JavaScript backend.The text was updated successfully, but these errors were encountered: