Yes, this is what I figured. Read the page I referred you to. It discusses this. You need to be clear about the difference between Python variables and SymPy symbols.
Aaron Meurer On Sun, Apr 6, 2014 at 2:23 PM, Dave M <[email protected]> wrote: > Thanks for the tips. My problem seems to have been I had r already defined > (to sympy.sqrt(x**2 + y**2 + z**2). I guess it cannot be pre-defined for > subs to work correctly. Works now. Thanks! > > BTW I really like sympy. I just stumbled across it last week by accident > and had to try it out. And very cool that it has special functions. The > predefined Legendre polynomials are saving me lots of time from having to > key them in. > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/c7f302f1-6e84-43a8-bcdc-5ff21d13a678%40googlegroups.com<https://groups.google.com/d/msgid/sympy/c7f302f1-6e84-43a8-bcdc-5ff21d13a678%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BPiWnC8scj3nM8zccBjbqKyF14D-G%3D4i-H-LxKDrdGSQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
