On Sat, May 16, 2009 at 1:00 PM, Aaron S. Meurer <asmeu...@gmail.com> wrote:
>
> Maple also uses BesselJ, and I couldn't find a spherical function in
> the help, but I know little about Bessel functions, so I could have
> missed it.  I think that this is best.  Typing underscores is too
> difficult, but just jn is too ambiguous.  It also allows for expansion
> to BesselI, BesselK, and BesselY, and they would all be grouped
> together in dir().  I don't know if uppercase BesselJ or lowercase
> besselj would be better.  Typing dir() in isympy, seems to have a mix
> of both upper and lower case named functions, with special functions
> in both cases (Heaviside, gamma, zeta).

I was just thinking about this too. Basically I think we should stick
to Python convention and that's it. Python convention is to use
CamelCase() for classes and lower_case_with_underscores() for
functions. Most of the things are implemented as classes in SymPy,
thus it should just be BesselJ, Heaviside, Gamma, Zeta, etc.

As to trig. functions, currently the classes are called sin, cos, but
it seems to me we should rename them to Sin, Cos and provide

sin = Sin
cos = Cos

for backwards compatibility -- in fact I think lots of people may
prefer to use "sin", not Sin. Just like we have log and

ln = log

There are just a few of the most common functions, where we could
provide both ways, but in general I think we should just stick to
Sin/Cos, BesselJ.


> By the way, once this gets in, I will want to add in a case in dsolve
> that returns it.

Excellent.

Ondrej

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to