From 9eb5da30193453e9bce93db33d137e682c03a350 Mon Sep 17 00:00:00 2001 From: Ranjan Anantharaman Date: Tue, 30 Jun 2015 10:33:34 -0400 Subject: [PATCH] Updating constants.jl - @irrational instead of @math_const --- src/constants.jl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/constants.jl b/src/constants.jl index 507cf8320..4d05c13ae 100644 --- a/src/constants.jl +++ b/src/constants.jl @@ -1,17 +1,17 @@ # Useful math constants for distributions -import Base.@math_const +import Base.@irrational -@math_const halfπ 1.5707963267948966192 big(π) * 0.5 -@math_const twoπ 6.2831853071795864769 big(2.) * π -@math_const sqrt2 1.4142135623730950488 sqrt(big(2.)) -@math_const sqrt3 1.7320508075688772935 sqrt(big(3.)) -@math_const invπ 0.3183098861837906715 big(1.) / π -@math_const logπ 1.1447298858494001741 log(big(π)) -@math_const log2π 1.8378770664093454836 log(big(2.)*π) -@math_const log4π 2.5310242469692907930 log(big(4.)*π) -@math_const sqrt2π 2.5066282746310005024 sqrt(big(2.)*π) -@math_const logtwo 0.6931471805599453094 log(big(2.)) -@math_const loghalf -0.6931471805599453094 log(big(0.5)) +@irrational halfπ 1.5707963267948966192 big(π) * 0.5 +@irrational twoπ 6.2831853071795864769 big(2.) * π +@irrational sqrt2 1.4142135623730950488 sqrt(big(2.)) +@irrational sqrt3 1.7320508075688772935 sqrt(big(3.)) +@irrational invπ 0.3183098861837906715 big(1.) / π +@irrational logπ 1.1447298858494001741 log(big(π)) +@irrational log2π 1.8378770664093454836 log(big(2.)*π) +@irrational log4π 2.5310242469692907930 log(big(4.)*π) +@irrational sqrt2π 2.5066282746310005024 sqrt(big(2.)*π) +@irrational logtwo 0.6931471805599453094 log(big(2.)) +@irrational loghalf -0.6931471805599453094 log(big(0.5)) -@math_const sqrthalfπ 1.2533141373155002512 sqrt(big(0.5)*π) +@irrational sqrthalfπ 1.2533141373155002512 sqrt(big(0.5)*π)