Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 675 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 675 Bytes

IrrationalConstantRules

This package overrides the return values for Irrationals defined in IrrationalConstants.jl.

julia> using IrrationalConstants

julia> sin(quartπ)
0.7071067811865476

julia> sin(twoπ)
0.0

julia> using IrrationalConstantRules

julia> sin(quartπ)
invsqrt2 = 0.7071067811865...

julia> sin(twoπ)
false

Please read the long discussion about this on JuliaMath/IrrationalConstants.jl#14. I still feel sin(::Irrational) isa Irrational can be reasonable.

Installation

(@v1.7) pkg> add https://github.com/hyrodium/IrrationalConstantRules.jl