Or simply legendre_P, legendre_Q

On 10 Kwi, 21:26, achrzesz <achrz...@wp.pl> wrote:
> Or:
> sage: import scipy.special
> sage: scipy.special.legendre(1,0.5)
> poly1d([ 1.,  0.])
> sage: scipy.special.lqn(int(1),float(0.5))
> (array([ 0.54930614, -0.72534693]), array([ 1.33333333,  1.21597281]))
>
> On 10 Kwi, 20:17, ObsessiveMathsFreak <obsessivemathsfr...@gmail.com>
> wrote:
>
> > Ugghh.... It looks like scipy wasn't quite what I was looking for. All
> > I really need is a way of evaluating generalised legendre functions of
> > the first and second kind. I've actually found a package in sympy that
> > does this
>
> >http://docs.sympy.org/dev/modules/mpmath/functions/orthogonal.html#mp...
>
> > But this doesn't seem to work in the current version of sage
>
> > sage: import sympy.mpmath
> > sage:
> > sage: sympy.mpmath.legendre(1,0.5)
> > mpf('0.5')
> > sage: sympy.mpmath.legenq(1,0.5)
> > ---------------------------------------------------------------------------
> > AttributeError                            Traceback (most recent call
> > last)
>
> > ~/<ipython console> in <module>()
>
> > AttributeError: 'module' object has no attribute 'legenq'
>
> > Is it possible to install an updated version of sympy that Sage can
> > use?
>
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to