Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to
> sympy+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
I suppose the reason that E rather than e is available is to keep it from clashing with commonly used lowercase symbol names. But since pi is a lower case constant I would think that people would be aware of e. I would be in favor of changing the E to e. If someone wipes out e with a variable of the same name they can always access it through S.Exp1, too.
Chris
Love it. Good idea.
Makes me think.... What about other constants, like Euler's gamma
(0.577....)? Should there be a set of constants which are built
into sympy?
Just a stray thought....
Stuart Brorson
>>> import sympy
>>> sympy.EulerGamma
EulerGamma
>>> sympy.EulerGamma.evalf()
0.577215664901533
Aaron Meurer
>>> import math
>>> math.pi
3.141592653589793
>>> math.gamma(4)
6.0
>>> sympy.gamma(4)
6
On the other hand, we do have math.e, so I guess not everything matches something else. E and I (capital) are used by Maple, and I think it's probably a good convention in SymPy to make single letter names upper case, since import * is executed a lot with the sympy module.
And besides, it's probably best to leave things named the way that they are, unless there is a very good reason to change them, like there was with sum and abs.
Aaron Meurer