IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2005, 5:00:31 PM (21 years ago)
Author:
gusciora
Message:

Polynomial nOrder nTerm change.

File:
1 edited

Legend:

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

    r5090 r5091  
    1414*    orders are created.
    1515*
    16 *    @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    17 *    @date $Date: 2005-09-22 02:47:16 $
     16*    XXX: Compare to FLT_EPSILON
     17*
     18*    @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     19*    @date $Date: 2005-09-22 03:00:31 $
    1820*
    1921*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    131133        return 4;
    132134    }
     135
    133136    for(psS32 i = 0; i < ORDER+1; i++) {
    134137        for(psS32 j = 0; j < ORDER+2; j++) {
    135             if(my2DPoly->coeff[i][j] != 0.0) {
     138            if(fabs(my2DPoly->coeff[i][j]) > FLT_EPSILON) {
    136139                psError(PS_ERR_UNKNOWN,true,"Coeff[%d][%d] %lg not as expected %lg",
    137140                        i, j, my2DPoly->coeff[i][j], 0.0);
Note: See TracChangeset for help on using the changeset viewer.