Ticket #6196 (closed enhancement: fixed)
[with patch, positive review] mpmath support
| Reported by: | fredrik.johansson | Owned by: | mhansen |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.1 |
| Component: | packages | Keywords: | |
| Cc: | Author(s): | Fredrik Johannson, Mike Hansen | |
| Report Upstream: | Reviewer(s): | Nick Alexander | |
| Merged in: | sage-4.1.rc0 | Work issues: |
Description (last modified by fredrik.johansson) (diff)
Patch description:
Adds sage.libs.mpmath which provides wrapper functions and monkey patches some internal mpmath functions for speed. Mpmath functions can be called from Sage as follows (with forward and backward conversions handled automatically):
sage: import sage.libs.mpmath.all as a sage: a.call(a.hyp2f1, 2, 2/3, -1/2, 3+4*I) -0.111907858412569 - 0.536467867510390*I sage: a.call(a.hyp2f1, 2, 2/3, -1/2, 3+4*I, prec=100) -0.11190785841256900204178259859 - 0.53646786751038954277574814099*I
Some partial support for direct conversion from Sage -> mpmath is also implemented (this is not completely working yet).
Also providing a preliminary spkg (with current mpmath trunk) in this issue.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

