Wrong Answer
- To: mathgroup at smc.vnet.net
- Subject: [mg130626] Wrong Answer
- From: christopher arthur <chris.arthur1 at gmail.com>
- Date: Fri, 26 Apr 2013 23:09:38 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- Reply-to: chris.arthur1 at gmail.com
Hello,
I've discovered that Solve[] gives me the wrong answer for some
polynomial equations. For example, consider the following equation,
which should have exactly one positive, real answer for t.
p:=(px + t vx)^4 + (py + t vy)^4==1
r:={px->0.5,py->0.5,vx->0.5,vy->0.5}
NSolve[p/.r,t]
NSolve gives the right answers if I substitute for px,py,vx and vy
before solving. On the other hand, if I use Solve[] this way:
Solve[p,t]/.r
I get a different answer, and it's not correct.
Does Solve[] just malfunction with quartic polynomials or is there
something else happening?
Chris
mathematica 5.2
Solve[p]
- Follow-Ups:
- Re: Wrong Answer
- From: Andrzej Kozlowski <akozlowski@gmail.com>
- Re: Wrong Answer
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Wrong Answer
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Wrong Answer