While we're at it: since all constants in that list are represented by 
their symbols, with the names serving as aliases, would it be a good idea 
to define Catalan's constant 
<https://en.wikipedia.org/wiki/Catalan%27s_constant> using the G symbol? If 
that's too common a character which we wouldn't want to pollute, we could 
use 𝐺 (mathematical italic capital g, U+1D43A). Current behavior would be 
unchanged since "catalan" would be added as an alias. Thoughts?

On Wednesday, July 6, 2016 at 12:42:57 AM UTC+1, Stefan Karpinski wrote:
>
> The master list is basically this:
>
>
> https://github.com/JuliaLang/julia/blob/7b3f5296c54d0362ab90c2299b4c9255aca171a8/base/irrationals.jl#L127-L131
>
> On Tue, Jul 5, 2016 at 9:42 AM, esproff <[email protected] <javascript:>> 
> wrote:
>
>> Ok great!  Thanks Kenta and Lyndon for your quick responses!
>>
>>
>> On Tuesday, July 5, 2016 at 4:23:47 AM UTC-7, Lyndon White wrote:
>>>
>>> You can use the `names` function to search a module for all constants it 
>>> defines.
>>> By evaluating the names to get the values, then checking if they are 
>>> Irrational (formerly known as MathConst?)
>>> By doing this, I conclude that the  ASCII name for the Euler-Mascheroni 
>>> constant (γ) is eulergamma
>>>
>>>
>>>  
>>>
>>>
>>> julia> for name_sym in names(Base)
>>>               value = eval(name_sym)
>>>               if typeof(value)<: Irrational
>>>                             println(name_sym, "\t", value)
>>>               end
>>>        end
>>>
>>>
>>> catalan catalan = 0.9159655941772...
>>> e       e = 2.7182818284590...
>>> eu      e = 2.7182818284590...
>>> eulergamma      γ = 0.5772156649015...
>>> golden  φ = 1.6180339887498...
>>> pi      π = 3.1415926535897...
>>> γ       γ = 0.5772156649015...
>>> π       π = 3.1415926535897...
>>> φ       φ = 1.6180339887498...
>>>
>>>
>>>
>>>
>

Reply via email to