Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding multiple roots

261 views
Skip to first unread message

Novak Petrovic

unread,
Dec 5, 2002, 4:11:12 AM12/5/02
to
Hi all,

I'm trying to find roots of the characteristic equation of a
dielectric-loaded waveguide. There are multiple roots of the equation and I
use FindRoot to find them. The sequence of roots is very important in my
further calculations.

Is there a routine or a clever way to (numerically) find all the roots of an
equation in a predefined values?

As it is now I have to look for each individual root manually and it gets a
bit tedious as the number of required modes increases.

Thanks a lot.

--
Regards,

Novak Petrovic
no...@itee.uq.edu.au

Harvey P. Dale

unread,
Dec 10, 2002, 4:27:21 AM12/10/02
to

Novak:
Ted Ersek's package, RootSearch, may help. You can find it at:
http://www.mathsource.com/Content/WhatsNew/0211-734
Best,
Harvey
Harvey P. Dale
University Professor of Philanthropy and the Law
Director, National Center on Philanthropy and the Law
New York University School of Law
Room 206A
110 West 3rd Street
New York, N.Y. 10012-1074
tel: 212-998-6161
fax: 212-995-3149

Daniel Lichtblau

unread,
Dec 10, 2002, 4:57:41 AM12/10/02
to
Novak Petrovic wrote:
>
> Hi all,
>
> I'm trying to find roots of the characteristic equation of a
> dielectric-loaded waveguide. There are multiple roots of the equation and I
> use FindRoot to find them. The sequence of roots is very important in my
> further calculations.
>
> Is there a routine or a clever way to (numerically) find all the roots of an
> equation in a predefined values?
>
> As it is now I have to look for each individual root manually and it gets a
> bit tedious as the number of required modes increases.
>
> Thanks a lot.
>
> --
> Regards,
>
> Novak Petrovic
> no...@itee.uq.edu.au

This probably depends on the specifics of your equations (polynomial?
exponential? analytic? other?) and region of interest (a segment?
rectangle in complex plane? something else?). A similar question was
raised at the URL below. Several replies showed various approaches one
might take.

http://forums.wolfram.com/mathgroup/archive/2001/Jun/msg00226.html

For certain special cases one might be able to get exact solutions e.g.
by using Solve and taking advantage of periodicity e.g. for a
trigonometric polynomial. This can only be done if the equation is such
that Solve can form a polynomial in some reasonable set of "variables".

Daniel Lichtblau
Wolfram Research

David Park

unread,
Dec 10, 2002, 5:01:51 AM12/10/02
to
Novak,

You might want to try the RootSearch package by Ted Ersek available on
MathSource. It is quite robust, and will find all the roots in a given
interval. I'm not certain at the moment if it gives them in order, but it
probably does. In any case you could always sort them.

David Park
dj...@earthlink.net
http://home.earthlink.net/~djmp/

From: Novak Petrovic [mailto:no...@itee.uq.edu.au]

Paul Abbott

unread,
Feb 11, 2003, 4:39:27 AM2/11/03
to
In article <asn57g$488$1...@smc.vnet.net>,
"Novak Petrovic" <no...@itee.uq.edu.au> wrote:

> I'm trying to find roots of the characteristic equation of a
> dielectric-loaded waveguide. There are multiple roots of the equation and I
> use FindRoot to find them. The sequence of roots is very important in my
> further calculations.
>
> Is there a routine or a clever way to (numerically) find all the roots of an
> equation in a predefined values?
>
> As it is now I have to look for each individual root manually and it gets a
> bit tedious as the number of required modes increases.

I wrote a function called RootsInRange which does exactly what you want
(attached). This originally appeared in The Mathematica Journal which is
a good resource for such applications.

[contact the author to get the attachment - moderator]

Cheers,
Paul


0 new messages