-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define `zero(Irrational)` and `one(Irrational)` to return `false` and `true` respectively. (This is breaking if someone is currently using `true * pi` or `pi + false` as a way of forcing conversion to `Float64`.) Make `false` act as the additive identity for `Irrational` by defining a method for `+`. (Not type stable) Make `true` act as the multiplicative identity for `Irrational` by defining a method for `*` (Not type stable) Make `widemul` of two `Irrational`s return a `BigFloat` Make `sin(pi)` and `tan(pi)` return exactly 0.0 Define a number of methods on `Irrational` to default to conversion to Float64.
- Loading branch information
1 parent
8eb0f9f
commit 020d8ee
Showing
3 changed files
with
110 additions
and
10 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
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