Re: [sage-support] Re: simple?--from_meijer in jupyter

2018-04-13 Thread Raymond Rogers

Sigh:   Yes...

Thanks!

Ray


On 04/13/2018 08:01 AM, Eric Gourgoulhon wrote:

Hi,

There is a typo in your code: it should be "from_meijerg" instead of 
"from_meijer":


|
sage:fromsympy.holonomic.holonomic importfrom_meijerg
sage:from_meijerg?
Signature:from_meijerg(func,x0=0,evalf=False,initcond=True,domain=QQ)
Docstring:
Convertsa MeijerG-functionto Holonomic."func"isthe G-Function
and"x0"isthe point at which initial conditions are required.

>>>fromsympy.holonomic.holonomic importfrom_meijerg,DifferentialOperators
>>>fromsympy importsymbols,meijerg,S
>>>x =symbols('x')
>>>from_meijerg(meijerg(([],[]),([S(1)/2],[0]),x**2/4))
HolonomicFunction((1)+(1)*Dx**2,x,0,[0,1/sqrt(pi)])
Initdocstring:x.__init__(...)initializes x;see help(type(x))forsignature
File:~/sage/8.1/local/lib/python2.7/site-packages/sympy/holonomic/holonomic.py
Type:function
|

Best wishes,

Eric.

Le vendredi 13 avril 2018 00:06:17 UTC+2, Raymond Rogers a écrit :

The sympy documentation
http://docs.sympy.org/latest/modules/holonomic/convert.html

 has the function from_meiljer and I do
from sympy import *
from sympy.holonomic.holonomic import from_hyper, from_meijer,
DifferentialOperators
(I think redundant)
I get: "ImportError: cannot import name from_meijer"
Is this a versioning error or what?

--
You received this message because you are subscribed to a topic in the 
Google Groups "sage-support" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/sage-support/1I8ZThs_WGA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
sage-support+unsubscr...@googlegroups.com 
.
To post to this group, send email to sage-support@googlegroups.com 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: simple?--from_meijer in jupyter

2018-04-13 Thread Eric Gourgoulhon
Hi, 

There is a typo in your code: it should be "from_meijerg" instead of 
"from_meijer":

sage: from sympy.holonomic.holonomic import from_meijerg
sage: from_meijerg?
Signature: from_meijerg(func, x0=0, evalf=False, initcond=True, domain=QQ)
Docstring: 
 Converts a Meijer G-function to Holonomic. "func" is the G-Function
 and "x0" is the point at which initial conditions are required.

 >>> from sympy.holonomic.holonomic import from_meijerg, 
DifferentialOperators
 >>> from sympy import symbols, meijerg, S
 >>> x = symbols('x')
 >>> from_meijerg(meijerg(([], []), ([S(1)/2], [0]), x**2/4))
 HolonomicFunction((1) + (1)*Dx**2, x, 0, [0, 1/sqrt(pi)])
Init docstring: x.__init__(...) initializes x; see help(type(x)) for 
signature
File: ~/sage/8.1/local/lib/python2.7/site-packages/sympy/holonomic/holonomic
.py
Type: function

Best wishes,

Eric. 

Le vendredi 13 avril 2018 00:06:17 UTC+2, Raymond Rogers a écrit :
>
> The sympy documentation
> http://docs.sympy.org/latest/modules/holonomic/convert.html
>  has the function from_meiljer and I do 
> from sympy import *
> from sympy.holonomic.holonomic import from_hyper, from_meijer, 
> DifferentialOperators
> (I think redundant)
> I get: "ImportError: cannot import name from_meijer" 
> Is this a versioning error or what?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.