Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Bug in MiniMaxApproximation

  • To: mathgroup at
  • Subject: [mg60649] Re: Bug in MiniMaxApproximation
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Fri, 23 Sep 2005 04:19:53 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, U.K.
  • References: <dgtisl$25n$>
  • Sender: owner-wri-mathgroup at

dh wrote:
> Hello,
> it seems to me that MiniMaxApproximation fails each time the given 
> function is zero at the beginning of the specified interval
> Consider an example from the Help:
> MiniMaxApproximation[Exp[x],{x, {0, 2}, 2, 4}]
> this works fine. However, if you change the function to 1-Exp[..]:
> MiniMaxApproximation[1 - Exp[x], {x, {0, 2}, 2, 4}]
> you get an 1/0 error.
> sincerely, Daniel

Since "[...] minimax approximation r(x) to a given function f(x) is the 
rational function of the given degree that minimizes the maximum value 
of the quantity | 1 - r(x) / f(x) | over the interval under 
consideration," it is no wonder that when f(0) == 0 you get a division 
by wero error.

Check the paragraph after the graphics "Out[7]":


  • Prev by Date: Re: Replacement Rule
  • Next by Date: Re: Generate polynomial of specified degree
  • Previous by thread: Bug in MiniMaxApproximation
  • Next by thread: Re: Bug in MiniMaxApproximation