On Sun, Apr 10, 2011 at 11:17 AM, ObsessiveMathsFreak
<[email protected]> 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#mpmath.legenq
>
> 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?
>
Just use the more up-to-date version of *mpmath* that is in Sage
directly. Evidently the sympy in sage ships an older version.
deep:~ wstein$ sage
----------------------------------------------------------------------
| Sage Version 4.6.2, Release Date: 2011-02-25 |
----------------------------------------------------------------------
sage: mpmath.legenq?
sage: mpmath.legenq(2,0,0.5)
mpf('-0.81866326804175682')
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org