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


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

Re: How to eliminate noises? A better way perhaps.

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail
From Andrzej Kozlowski <akoz@mimuw.edu.pl>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to eliminate noises? A better way perhaps.
Date Wed, 9 Nov 2011 11:32:43 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <j9docr$b30$1@smc.vnet.net> (permalink)
References <201111021121.GAA03503@smc.vnet.net> <j8tl5t$f3t$1@smc.vnet.net> <j90gmp$shi$1@smc.vnet.net> <201111081215.HAA04941@smc.vnet.net>
Lines 31
NNTP-Posting-Date 09 Nov 2011 10:36:45 GMT
NNTP-Posting-Host 27d600f8.news.twtelecom.net
X-Trace DXC=<[S4CY4?lb@ZE[lA2<`InOC_A=>8kQj6Mm^eQlV`f18GB\@>^=oXgBAEFiONJ7[GoFP=8h_C62_]B
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:6283

Show key headers only | View raw


On 8 Nov 2011, at 13:15, Noqsi wrote:

> Now, note the the documentation for Root makes the following promise:
> "The ordering used by Root[f,k] takes real roots to come before
> complex ones, and takes complex conjugate pairs of roots to be
> adjacent. " One difficulty with this promise is that it doesn't tell
> you how to find the break between the real part of the vector and the
> complex part. The following code assumes that N[Root[f,n]] will
> reliably have head Real for real roots.

If f is a polynomial, as it is in your case, than this will be true. The 
reason is that the roots of a polynomial can always be completely 
isolated and Mathematica does so  the first time a numerical value of a 
root is used. Although Root isolation uses extended precision arithmetic 
(it can also be done exactly, if you use the options ExactRootIsolation 
but that will make the computation slower and should not affect the 
result), applying N with MachinePrecision to a real Root object should 
always produce a number with head Real  (as long as the coefficients of 
f are exact; note that Root has the Attribute NHoldAll)

By the way, this is not going to be necessarily true when f is a 
transcendental function. In this case a Root object may represent a 
cluster of roots, some of which could be real and some not, and it may 
require high precision arithmetic to decide. In this situation 
Mathematica will not perform root isolation until sufficient precision 
is specified. But when f is a polynomial this is not an issue.

Andrzej Kozlowski

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


Thread

Re: How to eliminate noises? Bob Hanlon <hanlonr357@gmail.com> - 2011-11-03 08:59 +0000
  Re: How to eliminate noises?  A better way perhaps. Richard Fateman <fateman@cs.berkeley.edu> - 2011-11-04 11:01 +0000
    Re: How to eliminate noises? A better way perhaps. Noqsi <noqsiaerospace@gmail.com> - 2011-11-08 12:18 +0000
    Re: How to eliminate noises? A better way perhaps. Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-11-09 11:32 +0000
  Re: How to eliminate noises?  A better way perhaps. DrMajorBob <btreat1@austin.rr.com> - 2011-11-05 09:53 +0000
  Re: How to eliminate noises? A better way perhaps. Noqsi <noqsiaerospace@gmail.com> - 2011-11-10 11:50 +0000

csiph-web