I'm using the 0.7.1 version for win32.  Come to think of it, I -am-
using 64 bit windows, rather than 32 bit, could that be a factor?

I don't see where the development versions are.  Out of curiosity,
those who are running this successfully, what versions are you using?

On Feb 9, 11:07 pm, Aaron Meurer <asmeu...@gmail.com> wrote:
> var() is the same as symbols(), except you don't have to write the
> "=". The way it works is kind if hackish (it injects the variable
> names into the namespace) so you should only use it interactively
> (i.e., when typing commands at the Python prompt). If you are using a
> script, you should use symbols().
>
> As far as the output of solve(), what version of SymPy are you using?
> We are always improving our algorithms, so an older version might not
> be able to do it. Or maybe even the most recent version can't and
> Chris was using the dev version (I'm not at my computer right now to
> check).
>
> And by the way, [] doesn't mean that it thinks there are no solutions
> necessarily. It's hard to tell in general if there really are no
> solutions or if we just didn't find any.
>
> Aaron Meurer
>
> On Feb 9, 2012, at 11:32 PM, Laereom <jamesdbo...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Curioser and curioser.
>
> >        sym_x, sym_y = symbols('x,y')
> >        z = int(origin['z'])
> >        print origin
> >        print destination
>
> >        dest_x = int(destination['x'])
> >        dest_y = int(destination['y'])
> >        dest_z = int(destination['z'])
> >        equation = Eq( sqrt( (sym_x-dest_x)**2 + (sym_y-dest_y)**2 +
> > (z-dest_z)**2 ) , 2 )
> >        #This should give us a line to walk towards.
> >        print solve( equation,sym_x)
>
> > Output:
> > {'y': 0, 'x': 0, 'z': 2}
> > {'y': 3, 'x': 3, 'z': 3}
> > []
>
> > I noticed you're using vars, I'm guessing those are sympy related?
> > Any reason I should worry about using hardcoded values like I am?  I
> > can't imagine why there would be, but I'm not exactly brimming with
> > solutions.  What I'm doing looks pretty similar to what you're doing.
>
> > On Feb 9, 10:20 pm, Chris Smith <smi...@gmail.com> wrote:
> >> Can you print your origin and destination variables? When using the
> >> following, I don't have any problem:
>
> >>>>> var('a,b,c,x,y,z')
> >> (a, b, c, x, y, z)
> >>>>> eq=Eq(sqrt((x-a)**2+(1-b)**2+(z-c)**2), 2)
> >>>>> solve(eq, x)
>
> >> [a - sqrt(-b**2 + 2*b - c**2 + 2*c*z - z**2 + 3), a + sqrt(-b**2 + 2*b - 
> >> c**2 +
> >> 2*c*z - z**2 + 3)]
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sympy" group.
> > To post to this group, send email to sympy@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > sympy+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/sympy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to