Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9860

Re: Find all roots with FindRoot

From Andrzej Kozlowski <akozlowski@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Find all roots with FindRoot
Date 2012-04-29 06:07 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jnilr9$agj$1@smc.vnet.net> (permalink)
References <25227796.28036.1334923020612.JavaMail.root@m06> <201204260928.FAA05588@smc.vnet.net> <201204280927.FAA00717@smc.vnet.net> <CALe_+=rU23zCn2XiYYBwUi8WcSh6m-hr4bXVAaoxszM-fBztdQ@mail.gmail.com>

Show all headers | View raw



On 28 Apr 2012, at 13:02, Mikael Anderson wrote:

> Actually I was using NSolve and was happy with that (see below). Then 
I happened to see the post on RootSerach and wanted to test it to see if 
I get the same results as NSolve. I got surprised that by increasing the 
range I did not get the same answer and hence posted the question.
>
> BTW Andrzej, do you see any advantage in using Reduce compared to 
NSolve?
>

In Mathematica version 7 NSolve could only solve algebraic equations and 
Reduce could also solve transcendental (analytic) ones as well as 
inequalities. In version 8 NSolve can solve the same kind of equations 
as Reduce (I think it actually calls on Reduce to solve non-algebraic 
equations so you are actually using Reduce) and it even takes the 
options WorkingPrecision->Infinity:

NSolve[x^2 - x + 1 == 0, x, WorkingPrecision -> Infinity]
{{x -> (-1)^(1/3)}, {x -> -(-1)^(2/3)}}

The differences, apart from the different form of output concerns 
solving inequalities (NSolve can't do that) and equations with symbolic 
parameters (NSolve can't do that but Solve can).

The reason why I used Reduced is that I still sometimes forget who much 
Solve and NSolve were upgraded in Mathemaitca 8.


Andrzej Kozlowski


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Find all roots with FindRoot Andrzej Kozlowski <akozlowski@gmail.com> - 2012-04-29 06:07 +0000

csiph-web