IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2005, 12:02:16 PM (21 years ago)
Author:
desonia
Message:

changed PS_PI* to M_PI*.

File:
1 edited

Legend:

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

    r3873 r3884  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.115 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-05-10 01:57:47 $
     11 *  @version $Revision: 1.116 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-05-11 22:02:16 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    541541        psF64 flux = normalization * exp(-( u*u/(2.0 * sigmaX * sigmaX) +
    542542                                            v*v/(2.0 * sigmaY * sigmaY)))/
    543                      (2.0 * PS_PI * sigmaX * sigmaY);
     543                     (2.0 * M_PI * sigmaX * sigmaY);
    544544        out->data.F32[i] = flux;
    545545
     
    12041204    for (psS32 i=0;i<n;i++) {
    12051205        // NR 5.8.4
    1206         psF64 Y = cos(PS_PI * (0.5 + ((psF32) i)) / ((psF32) n));
     1206        psF64 Y = cos(M_PI * (0.5 + ((psF32) i)) / ((psF32) n));
    12071207        psF64 X = (Y + bma + bpa) - 1.0;
    12081208        tmpScalar.data.F64 = X;
     
    12321232        for (k=0;k<n;k++) {
    12331233            sum+= f->data.F64[k] *
    1234                   cos(PS_PI * ((psF32) j) * (0.5 + ((psF32) k)) / ((psF32) n));
     1234                  cos(M_PI * ((psF32) j) * (0.5 + ((psF32) k)) / ((psF32) n));
    12351235        }
    12361236
Note: See TracChangeset for help on using the changeset viewer.