Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slightly speedup exponentiation by Ints
Only perform the `$b > 0` check once and check for underflow before creating the Rat for negative powers.
- Loading branch information
1 parent
a2601fb
commit 6f6fd1f
Showing
2 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters