IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 7, 2007, 8:21:16 PM (19 years ago)
Author:
gusciora
Message:

Basically, added additional tests to increase overall coverage of these
psLib functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tap_psPolynomialEval1D.c

    r13124 r13305  
    44*  ORD and CHEB type polynomials.
    55*
    6 *  @version  $Revision: 1.7 $  $Name: not supported by cvs2svn $
    7 *  @date  $Date: 2007-05-02 04:20:06 $
     6*  @version  $Revision: 1.8 $  $Name: not supported by cvs2svn $
     7*  @date  $Date: 2007-05-08 06:21:16 $
    88*
    99*  XXX: Probably should test single- and multi-dimensional polynomials in
     
    7676
    7777        // Set polynomial members
    78         for(psS32 i = 0; i < TERMS; i++)
    79         {
     78        for(psS32 i = 0; i < TERMS; i++) {
    8079            polyOrd->coeff[i] = poly1DCoeff[i];
    8180            polyOrd->mask[i]  = poly1DMask[i];
     
    8483        // Evaluate test points and verify results
    8584        bool errorFlag = false;
    86         for(psS32 i = 0; i < TESTPOINTS; i++)
    87         {
     85        for(psS32 i = 0; i < TESTPOINTS; i++) {
    8886            psF64 result = psPolynomial1DEval(polyOrd,poly1DXValue[i]);
    8987            if (fabs(poly1DXResult[i]-result) > ERROR_TOL ) {
Note: See TracChangeset for help on using the changeset viewer.