Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyrodium/irrationalconstantrules.jl
https://github.com/hyrodium/irrationalconstantrules.jl
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hyrodium/irrationalconstantrules.jl
- Owner: hyrodium
- License: mit
- Created: 2022-04-28T16:56:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T00:16:09.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T12:20:27.296Z (15 days ago)
- Language: Julia
- Size: 9.77 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IrrationalConstantRules
This package overrides the return values for `Irrational`s defined in [`IrrationalConstants.jl`](https://github.com/JuliaMath/IrrationalConstants.jl).
```julia
julia> using IrrationalConstantsjulia> sin(quartπ)
0.7071067811865476julia> sin(twoπ)
0.0julia> using IrrationalConstantRules
julia> sin(quartπ)
invsqrt2 = 0.7071067811865...julia> sin(twoπ)
false
```Please read the long discussion about this on https://github.com/JuliaMath/IrrationalConstants.jl/pull/14.
I still feel `sin(::Irrational) isa Irrational` can be reasonable.## Installation
```
(@v1.7) pkg> add https://github.com/hyrodium/IrrationalConstantRules.jl
```