#6196: mpmath support
-------------------------------+--------------------------------------------
 Reporter:  fredrik.johansson  |       Owner:  mabshoff
     Type:  enhancement        |      Status:  new     
 Priority:  major              |   Milestone:          
Component:  packages           |    Keywords:          
-------------------------------+--------------------------------------------
Description changed by fredrik.johansson:

Old description:

> 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).

New description:

 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.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6196#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to