Groups | Search | Server Info | Login | Register
Groups > comp.soft-sys.math.mathematica > #16848
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: A simple Solve gives me errors |
| Date | 2014-04-24 08:03 +0000 |
| Message-ID | <ljagg4$be$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
On 4/23/14 at 4:54 AM, stevebg@roadrunner.com (Ste[hen Gray) wrote: >I want to find the center C of a circle in 3D where the plane is >defined by points p1,p2,p3. I wrote this: >eq1 = (ctr - p1).(ctr - p1) - (ctr - p2).(ctr - p2) := 0; >eq2 = (ctr - p1).(ctr - p1) - (ctr - p3).(ctr - p3) := 0; >I get errors of a type I've seen before: You cannot use SetDelayed (:=) in place of Equal (==). You get the error since SetDelayed is attempting to do precisely what it is documented to do. That is assign the value 0 to expression on the left hand side. This clearly isn't what you want and isn't something Mathematica can do. Rewrite your definitions for eq1 and eq2 replacing := with == and you should get the result you want.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar
Re: A simple Solve gives me errors Bill Rowe <readnews@sbcglobal.net> - 2014-04-24 08:03 +0000
csiph-web