Re: Polynomial fitting routines?
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Mon, 28 Nov 2005 22:23:45 -0800
Steven G. Kargl wrote:
(snip)
I'm looking for an algorithm that will fit a polynomial to log(x) for 0.25 <= x <= 2 with at least 64-bit precision. I investigated NSWC Math LIb's pfit.f last night. pfit.f worked well on a test on sin(x) and -pi/2 <= x <= pi/2, but I got horrible results for log(x).
If I remember, it is not usual to write a polynomial in x, but in (x-1) or some other rational function of x such as (x-1)/(x+1).
Try a fit with one of those.
-- glen
.
- Follow-Ups:
- Re: Polynomial fitting routines?
- From: Steven G. Kargl
- Re: Polynomial fitting routines?
- References:
- Polynomial fitting routines?
- From: Steven G. Kargl
- Re: Polynomial fitting routines?
- From: Herman D . Knoble
- Re: Polynomial fitting routines?
- From: Steven G. Kargl
- Polynomial fitting routines?
- Prev by Date: (OOT)Numerical methods in geophysics
- Next by Date: Re: Compaq Visual Fortran discontinued: upgrade to Intel Visual Fortran?
- Previous by thread: Re: Polynomial fitting routines?
- Next by thread: Re: Polynomial fitting routines?
- Index(es):