From d226b95de14e878c150db02bacdd136c32b6dd17 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Tue, 12 Oct 2021 15:15:13 +0200 Subject: [PATCH] Use `mpfr_const_log2` (#9) * Use `mpfr_const_log2` * Bump version * `const_log10` does not exist.... * Fix stupid error --- Project.toml | 2 +- src/stats.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 1f55c92..389876d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "IrrationalConstants" uuid = "92d709cd-6900-40b7-9082-c6be49f344b6" authors = ["JuliaMath"] -version = "0.1.0" +version = "0.1.1" [compat] julia = "1" diff --git a/src/stats.jl b/src/stats.jl index 05514cc..c221961 100644 --- a/src/stats.jl +++ b/src/stats.jl @@ -23,7 +23,7 @@ @irrational invsqrt2π 0.3989422804014326779 inv(sqrt(2 * big(π))) @irrational loghalf -0.6931471805599453094 log(inv(big(2))) -@irrational logtwo 0.6931471805599453094 log(big(2)) +@irrational logtwo 0.6931471805599453094 log2 @irrational logten 2.302585092994046 log(big(10)) @irrational logπ 1.1447298858494001741 log(big(π)) @irrational log2π 1.8378770664093454836 log(2 * big(π))