From 8adf31d5c817ee2b22c4330014d4e0f395976dce Mon Sep 17 00:00:00 2001 From: Matthew Ware Date: Mon, 24 Aug 2015 18:01:27 -0400 Subject: [PATCH] Removing Catalan's constant --- base/exports.jl | 1 - base/irrationals.jl | 9 ++++----- contrib/julia.xml | 1 - doc/stdlib/numbers.rst | 4 ---- test/rounding.jl | 2 +- 5 files changed, 5 insertions(+), 12 deletions(-) diff --git a/base/exports.jl b/base/exports.jl index 97765459b14485..8db177c41a2ca6 100644 --- a/base/exports.jl +++ b/base/exports.jl @@ -203,7 +203,6 @@ export π, pi, e, eu, γ, eulergamma, - catalan, φ, golden, I, diff --git a/base/irrationals.jl b/base/irrationals.jl index 7e7d1342f4a1fc..19d2776713a21a 100644 --- a/base/irrationals.jl +++ b/base/irrationals.jl @@ -101,11 +101,10 @@ big(x::Irrational) = convert(BigFloat,x) ## specific irriational mathematical constants -@irrational π 3.14159265358979323846 pi -@irrational e 2.71828182845904523536 exp(big(1)) -@irrational γ 0.57721566490153286061 euler -@irrational catalan 0.91596559417721901505 catalan -@irrational φ 1.61803398874989484820 (1+sqrt(big(5)))/2 +@irrational π 3.14159265358979323846 pi +@irrational e 2.71828182845904523536 exp(big(1)) +@irrational γ 0.57721566490153286061 euler +@irrational φ 1.61803398874989484820 (1+sqrt(big(5)))/2 # aliases const pi = π diff --git a/contrib/julia.xml b/contrib/julia.xml index 587841cdc657d3..c96a565b0ff5d7 100644 --- a/contrib/julia.xml +++ b/contrib/julia.xml @@ -319,7 +319,6 @@ eu γ eulergamma - catalan φ golden diff --git a/doc/stdlib/numbers.rst b/doc/stdlib/numbers.rst index 63e6c2b919d44d..5ba17f4c3cbf46 100644 --- a/doc/stdlib/numbers.rst +++ b/doc/stdlib/numbers.rst @@ -268,10 +268,6 @@ General Number Functions and Constants The constant e -.. data:: catalan - - Catalan's constant - .. data:: γ eulergamma diff --git a/test/rounding.jl b/test/rounding.jl index 022058b3cbf209..e66acb007a1d98 100644 --- a/test/rounding.jl +++ b/test/rounding.jl @@ -110,7 +110,7 @@ end for T in [Float32,Float64] for v in [sqrt(big(2.0)),-big(1.0)/big(3.0),nextfloat(big(1.0)), prevfloat(big(1.0)),nextfloat(big(0.0)),prevfloat(big(0.0)), - pi,e,eulergamma,catalan,golden, + pi,e,eulergamma,golden, typemax(Int64),typemax(UInt64),typemax(Int128),typemax(UInt128),0xa2f30f6001bb2ec6] pn = T(v,RoundNearest) @test pn == convert(T,BigFloat(v))