From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id 4CB6F382E74C; Fri, 16 Dec 2022 17:19:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CB6F382E74C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671211151; bh=R2eyJhgBXIcfiEPUrWge5c9EEva7sbnn1PrBEWMJwyA=; h=From:To:Subject:Date:From; b=hRVW0DaQCBYayts4UqCUNa9tm0M1kXx6NJSJMdh5xxyaP7sgZl3eCxbgZFX5eaWlM 1PffQr/f+VVqlVzJFsPltKEP50ksVz7R8SLFQcPBOc3P+hdCaT3nKydc2Ancw8CUt7 scCk5bamd4LXytU1RRTo4ot/y/Mr1+cGzhQXjALc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix a typo in the comment. X-Act-Checkin: newlib-cygwin X-Git-Author: Nadav Rotem X-Git-Refname: refs/heads/master X-Git-Oldrev: 125e39bfea1a39341a60348c93a65cf4894e0f2a X-Git-Newrev: abf672604bd0d8a2ad9f2ec7cae76ad5905c3092 Message-Id: <20221216171911.4CB6F382E74C@sourceware.org> Date: Fri, 16 Dec 2022 17:19:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dabf672604bd= 0d8a2ad9f2ec7cae76ad5905c3092 commit abf672604bd0d8a2ad9f2ec7cae76ad5905c3092 Author: Nadav Rotem Date: Wed Dec 14 19:53:47 2022 -0800 Fix a typo in the comment. =20 The implementation of expf() explains how approximation in the range [0= - 0.34] is done. The comment describes the "Reme" algorithm for constructi= ng the polynomial. This is a typo and should be the "Remez" algorithm. The = remez algorithm (or minimax) is used to calculate the coefficients of polyn= omials in other implementations of exp(0 and log(). =20 See more: https://en.wikipedia.org/wiki/Remez_algorithm Diff: --- newlib/libm/math/e_exp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libm/math/e_exp.c b/newlib/libm/math/e_exp.c index ec26c2099..77652d687 100644 --- a/newlib/libm/math/e_exp.c +++ b/newlib/libm/math/e_exp.c @@ -28,7 +28,7 @@ * the interval [0,0.34658]: * Write * R(r**2) =3D r*(exp(r)+1)/(exp(r)-1) =3D 2 + r*r/6 - r**4/360 + ... - * We use a special Reme algorithm on [0,0.34658] to generate=20 + * We use a special Remez algorithm on [0,0.34658] to generate=20 * a polynomial of degree 5 to approximate R. The maximum error=20 * of this polynomial approximation is bounded by 2**-59. In * other words,