Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Find all roots with FindRoot

  • To: mathgroup at
  • Subject: [mg126153] Re: Find all roots with FindRoot
  • From: "djmpark" <djmpark at>
  • Date: Sat, 21 Apr 2012 00:31:01 -0400 (EDT)
  • Delivered-to:
  • References: <25227796.28036.1334923020612.JavaMail.root@m06>

You might try Ted Ersek's RootSearch package. This returns all real roots
within an interval in order. Although this is a common usage, and some
combination of FindRoot, Solve or Reduce will sometimes suffice, there
doesn't seem to be a common Mathematica routine that is as convenient and
easy as Ted's routine. Ted's routine will also find zeros that do not cross
the axis, and I seem to recall it can be used to find roots defined on
curves defined by a single parameter. 

David Park
djmpark at 

From: Sam Takoy [mailto:sam.takoy at] 


I need to find all roots of a function in a certain interval. FindRoot only
finds one. I imagine that I could write a script that calls FindRoot
repeatedly, but I'm guessing this must be built-in functionality or someone
has written such a script in the past (better than I ever could).

Can someone direct me to a command or a script like that?

Many thanks in advance,


  • Prev by Date: Controlling scale of Graphics on paper
  • Next by Date: Re: Turning Autorun Off
  • Previous by thread: Re: how to check for NumericQ arbitrary data structure
  • Next by thread: Re: Find all roots with FindRoot