-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into signal-underflow-error
- Loading branch information
Showing
23 changed files
with
1,138 additions
and
52 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Computable Reals | ||
|
||
This library is built on [computable-reals](https://github.com/stylewarning/computable-reals). | ||
|
||
### Creal | ||
|
||
The primary type is a `Creal`, a wrapper on the computable-reals type of the same name. | ||
|
||
As stated in the computable-reals README: | ||
|
||
"Computable real numbers `x` are interpreted as (potentially) infinite fractions in base 2 that are specified through a rule for computation of an integer `a` with `|(2^k)*x - a| <= 1` for any `k>=0`." | ||
|
||
### Instances: | ||
|
||
`Eq` and `Ord` have been implemented in order to fulfill the needs of the `Num` typeclass, though they are not exact. Their definitions are shaky because they can only be verified up to an arbitrary, specified precision. The precision threshold for `Creal` can be accessed using the library function `comparison-threshold` and changed using `set-comparison-threshold!`. The default precision is `106`. | ||
|
||
Other instances defined: | ||
|
||
- `Num` | ||
- `Reciprocable` | ||
- `Exponentiable` | ||
- `Radical` | ||
- `Trigonometric` | ||
- `Complex` | ||
- `Polar` | ||
- `Elementary` | ||
- Typical `Into` instances | ||
|
||
|
Oops, something went wrong.