Skip to content

Commit

Permalink
Removing Catalan's constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ware committed Aug 24, 2015
1 parent e20f4c0 commit f5f3bbe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion base/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ export
π, pi,
e, eu,
γ, eulergamma,
catalan,
φ, golden,
I,

Expand Down
9 changes: 4 additions & 5 deletions base/irrationals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = π
Expand Down
1 change: 0 additions & 1 deletion contrib/julia.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@
<item> eu </item>
<item> γ </item>
<item> eulergamma </item>
<item> catalan </item>
<item> φ </item>
<item> golden </item>
</list>
Expand Down
4 changes: 0 additions & 4 deletions doc/stdlib/numbers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,6 @@ General Number Functions and Constants

The constant e

.. data:: catalan

Catalan's constant

.. data:: γ
eulergamma

Expand Down
2 changes: 1 addition & 1 deletion test/rounding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f5f3bbe

Please sign in to comment.