IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2006, 11:09:08 AM (20 years ago)
Author:
gusciora
Message:

This file contains some of the generic math functions which
were previously in psStats and psSpline and psMinimize.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psPolynomial.c

    r6204 r6305  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.140 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-01-26 21:10:22 $
     9*  @version $Revision: 1.141 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-02-02 21:09:07 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    286286
    287287        for (i=nTerms-3;i>=1;i--) {
    288             d->data.F64[i] = (2.0 * x * d->data.F64[i+1]) -
    289                              (d->data.F64[i+2]);
     288            d->data.F64[i] = (2.0 * x * d->data.F64[i+1]) - (d->data.F64[i+2]);
    290289            if(poly->mask[i] == 0) {
    291290                d->data.F64[i] += poly->coeff[i];
     
    293292        }
    294293
    295         tmp = (x * d->data.F64[1]) -
    296               (d->data.F64[2]);
     294        tmp = (x * d->data.F64[1]) - (d->data.F64[2]);
    297295        if(poly->mask[0] == 0) {
    298296            tmp += (0.5 * poly->coeff[0]);
Note: See TracChangeset for help on using the changeset viewer.