Gcf.cpp


kornikova_anna
10-24-2003, 03:42 PM
When I compile GCF.CPP in VC++, one of the first few lines contains the statement

10 const DP EPS=numeric_limits<DP>::epsilon();
11 const DP FPMIN=numeric_limits<DP>::min()/EPS;

i get the errors:

11: error c2589: '(' : illegal token on right side of '::'
11: error c2059: syntax error : '::'

How do I get around this? Help is much appreciated!! Thanks!!

Anna

kornikova_anna
10-25-2003, 11:50 AM
Okay, so I used DBL_MIN and DBL_EPSILON constants in <cfloat> in order to get around the compiler problem posed by min(). See

http://www.numerical-recipes.com/forum/showthread.php?s=&threadid=31&highlight=numericlimits

for more details. Thanks,

Anna