Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2012-01-17 08:57:57 -0500

DSM gravatar image

(Hint: when reporting a problem, it's best to cut and paste exactly what you did and any error messages so that we can see where the problems are.)

It seems to work for me:

sage: import mpmath
sage: mpmath.meijerg([[],[]], [[0],[0.5]], (1/2)**2)
mpf('0.30483293293763819')
sage: (cos(1)/sqrt(pi)).n()
0.304832932937638

In the notebook you won't have the "sage:" bits at the start, but it should give you the same results. Alternatively, you could use

from mpmath import meijerg

and then you wouldn't have to add the "mpmath." bit at the start.