Skip to content

hyrodium/IrrationalConstantRules.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages