octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for erfinv.m


From: Daniel J Sebald
Subject: Re: Patch for erfinv.m
Date: Tue, 22 Jan 2008 21:19:01 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

John W. Eaton wrote:
On 21-Jan-2008, Alois Schloegl wrote:

| >> Consider the following patch for erfinv.
| >>
| >> It (1) replaces z_old and z_new by a single variable z, and
| >> (2) makes the initial checks simpler.
| >>
| >> The code becomes leaner, and a bit faster.

I applied the patch but used

  ## x < 1 or x > 1 ==> NaN
  y(abs (x) >= 1) = NaN;

That should be

  ## x < -1 or x > 1 ==> NaN

Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]