If numerical tools are sufficient then: sage: from mpmath import * sage: mp.dps = 15; mp.pretty = True sage: legendre(1,0.5) 0.5 sage: legenq(1,0,0.5) -0.725346927832973
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