IrrationalConstants.jl icon indicating copy to clipboard operation
IrrationalConstants.jl copied to clipboard

defines additional irrationals

Results 8 IrrationalConstants.jl issues
Sort by recently updated
recently updated
newest added

Bumps [julia-actions/setup-julia](https://github.com/julia-actions/setup-julia) from 1 to 2. Release notes Sourced from julia-actions/setup-julia's releases. v2.0.0 - Update to Node20 What's Changed update to node20 by @​ranocha in julia-actions/setup-julia#209 Note the rationale for...

dependencies

Bumps [julia-actions/cache](https://github.com/julia-actions/cache) from 1 to 2. Release notes Sourced from julia-actions/cache's releases. v2.0.0 Breaking Changes ⚠️ v2.0.0 requires node20. This is a breaking change, because node20 does not support the...

dependencies

This PR fixes https://github.com/JuliaMath/IrrationalConstants.jl/issues/20, and is an alternative to JuliaMath/Tau.jl#7. **On current master** ```julia julia> sqrt2^2 2.0000000000000004 julia> sin(quartπ) 0.7071067811865475 julia> inv(quartπ) 1.2732395447351628 ``` **With this PR** ```julia julia> sqrt2^2...

Adds `inve = 1/e` constant (cherry-picked from #12). Required by JuliaMath/SpecialFunctions.jl/issues/371

Getting the following error. Any suggestions would be appreciated. ``` IrrationalConstants [92d709cd-6900-40b7-9082-c6be49f344b6] Failed to precompile IrrationalConstants [92d709cd-6900-40b7-9082-c6be49f344b6] to "/Users/alexey/.julia/compiled/v1.10/IrrationalConstants/jl_jNJgAT". [92697] signal (11.1): Segmentation fault: 11 in expression starting at /Users/alexey/.julia/packages/IrrationalConstants/vp5v4/src/stats.jl:3...

This PR adds some irrationals that seem to be "missing" and would be useful e.g. in SpecialFunctions. E.g., currently `pi` (in base), `2 * pi`, `4 * pi`, `pi /...

Given that many of the constants defined here are reciprocals of each other, we may specialize `inv` and `literal_pow` to improve floating-point accuracy. On main ```julia ulia> sqrt2π*invsqrt2π 1.0000000000000002 julia>...

The PR fixes the test errors (due to method overwritten warnings in the doctests) and incorporates updates (bug fixes + additional tests) from https://github.com/JuliaLang/julia/pull/55911, https://github.com/JuliaLang/julia/pull/54172, https://github.com/JuliaLang/julia/pull/50894 and https://github.com/JuliaLang/julia/pull/46054.