Skip to content
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

feat(stdlib): Add isFinite, isClose, sin, cos, tan to Float32 #2168

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

spotandjake
Copy link
Member

@spotandjake spotandjake commented Oct 3, 2024

This pr adds isFinite, isClose, sin, cos and tan to the float32 library. Originally it was just going to add the trig functions, but isClose and isFinite are dependencies for testing the trig functions, I can seperate them into a seperate pr if desired but i did not see any major benefit.

This pr also opened the issue: #2167 as it would make sense to use a float32 optimized set of trig functions in the future for better relative accuracy, Float32.pi != Float64.pi will cause the precision to drift with larger values of x.

work towards: #1813

@ospencer ospencer changed the title feat(float32): Add isFinite, isClose, sin, cos, tan feat(stdlib): Add isFinite, isClose, sin, cos, tan to Float32 Oct 7, 2024
@ospencer ospencer added this pull request to the merge queue Oct 7, 2024
Merged via the queue into grain-lang:main with commit bdb4641 Oct 7, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants