If you installed SymPy (python setup.py install) from the git version, then it should be the right one. Again, you can check by printing sympy.__version__.
Aaron Meurer On Nov 11, 2013, at 10:09 PM, Erin Hodgess <[email protected]> wrote: One last thing, please: I have been tying the integration issue with the development issue: If I put in the following, one command at a time, it works fine: from sympy import * from sympy.abc import t shape = 4.0 scale = 2.0 z1 = (scale**shape)*gamma(shape) x = symbols('x') y = exp(-x/scale)*(x**(shape-1))/z1 u = integrate(y,(x,0,t)) print u However, if I put those commands in a file and run these, this is what I get: [email protected] [~/public_html/cgi-bin]# python tapas.py Traceback (most recent call last): File "tapas.py", line 10, in <module> u = integrate(y,(x,0,t)) File "/usr/local/lib/python2.7/site-packages/sympy/utilities/decorator.py", line 35, in threaded_func return func(expr, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/sympy/integrals/integrals.py", line 1283, in integrate risch=risch, manual=manual) File "/usr/local/lib/python2.7/site-packages/sympy/integrals/integrals.py", line 555, in doit conds=conds) File "/usr/local/lib/python2.7/site-packages/sympy/integrals/integrals.py", line 919, in _eval_integral h = heurisch_wrapper(g, x, hints=[]) File "/usr/local/lib/python2.7/site-packages/sympy/integrals/heurisch.py", line 128, in heurisch_wrapper unnecessary_permutations) File "/usr/local/lib/python2.7/site-packages/sympy/integrals/heurisch.py", line 566, in heurisch solution = _integrate('Q') File "/usr/local/lib/python2.7/site-packages/sympy/integrals/heurisch.py", line 555, in _integrate numer = ring.from_expr(raw_numer) File "/usr/local/lib/python2.7/site-packages/sympy/polys/rings.py", line 367, in from_expr raise ValueError("expected an expression convertible to a polynomial in %s, got %s" % (self, expr)) ValueError: expected an expression convertible to a polynomial in Polynomial ring in _x0, _x1, _x2, _x3 over RR[_A0,_A1,_A2,_A3,_A4,_A5,_A6,_A7,_A8,_A9,_A10,_A11,_A12,_A13,_A14,_A15,_A16,_A17,_A18,_A19,_A20,_A21,_A22,_A23,_A24,_A25,_A26,_A27,_A28,_A29,_A30,_A31,_A32,_A33,_A34] with lex order, got -_A0*_x1**2 - _A12*_x2**2 - _A18 - _A2*_x0**2 - 2*_A20*_x0*_x3 - 2*_A22*_x2*_x3 - _A23*_x2 - _A24*_x0*_x2 - _A25*_x0 - 3*_A3*_x3**2 - _A34*_x1*_x2 - _A5*_x0*_x1 - 2*_A6*_x3 - 2*_A7*_x1*_x3 - _A8*_x1 + _x0*_x1 + 0.5*_x1*(2*_A0*_x1*_x3 + _A1*_x2 + 2*_A13*_x1 + 2*_A19*_x0*_x1 + _A21*_x2**2 + _A26 + 2*_A29*_x1*_x2 + 3*_A30*_x1**2 + _A32*_x0**2 + _A33*_x0 + _A34*_x2*_x3 + _A5*_x0*_x3 + _A7*_x3**2 + _A8*_x3 + _A9*_x0*_x2) - 3.0*_x2*(_A11 + 2*_A15*_x0*_x2 + _A16*_x2 + _A17*_x2**2 + _A19*_x1**2 + 2*_A2*_x0*_x3 + _A20*_x3**2 + _A24*_x2*_x3 + _A25*_x3 + 2*_A31*_x0 + 2*_A32*_x0*_x1 + _A33*_x1 + 3*_A4*_x0**2 + _A5*_x1*_x3 + _A9*_x1*_x2) - 2.0*_x3**1.0*(_A1*_x1 + 2*_A12*_x2*_x3 + 3*_A14*_x2**2 + _A15*_x0**2 + _A16*_x0 + 2*_A17*_x0*_x2 + 2*_A21*_x1*_x2 + _A22*_x3**2 + _A23*_x3 + _A24*_x0*_x3 + _A27 + 2*_A28*_x2 + _A29*_x1**2 + _A34*_x1*_x3 + _A9*_x0*_x1) [email protected] [~/public_html/cgi-bin]# Weird. Is there a way to make sure that the correct version of sympy is set in the file, please? Thanks again, Erin On Monday, November 11, 2013 8:58:17 PM UTC-6, Aaron Meurer wrote: > > import sympy > sympy.__version__ > > Aaron Meurer > > On Nov 11, 2013, at 6:54 PM, Erin Hodgess <[email protected]<javascript:>> > wrote: > > Hello again > > I used the "git" to install the development version of sympy. Now the > dumb question: how do I make sure that I'm using the development version > and not the old version, please? > > Thanks, > Erin > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] <javascript:>. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
