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 optimization for Number.pow(Rational, Int) #1716

Merged
merged 2 commits into from
Mar 5, 2023

Conversation

spotandjake
Copy link
Member

@spotandjake spotandjake commented Mar 2, 2023

This pr adds an optimization for Rational^int.

Breaking because: (1/2)^3 no longer returns 0.125 but rather 1/8.

Furthur Discussed: #1706

@phated phated changed the title feat!: Add Optimization for Rationional^Int feat(stdlib)!: Add Optimization for Rationional^Int Mar 2, 2023
stdlib/runtime/numbers.gr Outdated Show resolved Hide resolved
@ospencer ospencer changed the title feat(stdlib)!: Add Optimization for Rationional^Int feat(stdlib)!: Add optimization for Number.pow(Rational, Int) Mar 4, 2023
@ospencer ospencer enabled auto-merge March 4, 2023 23:11
@ospencer ospencer added this pull request to the merge queue Mar 4, 2023
Merged via the queue into grain-lang:main with commit 67bee5c Mar 5, 2023
av8ta pushed a commit to av8ta/grain that referenced this pull request Apr 11, 2023
…n-lang#1716)

* feat!: Add Optimization for `Rationional^Int`

* Update stdlib/runtime/numbers.gr

---------

Co-authored-by: Oscar Spencer <oscar.spen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants