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


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

Re: Find all roots with FindRoot

Started byAndrzej Kozlowski <akozlowski@gmail.com>
First post2012-04-29 06:07 +0000
Last post2012-04-29 06:07 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#9860 — Re: Find all roots with FindRoot

FromAndrzej Kozlowski <akozlowski@gmail.com>
Date2012-04-29 06:07 +0000
SubjectRe: Find all roots with FindRoot
Message-ID<jnilr9$agj$1@smc.vnet.net>

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


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web