bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] Re: more info on vector check failure on solaris


From: Brian Gough
Subject: [Bug-gsl] Re: more info on vector check failure on solaris
Date: Sat, 10 Jan 2004 11:35:12 +0000

Britton Kerin writes:
 >                  ", z: " OUT_FORMAT "\nfabs(r - z): %d\n"
 >                  "2 * GSL_FLT_EPSILON * fabs(z): %d\n", r, x, y, z,
 >                  fabs(r - z), 2 * GSL_FLT_EPSILON * fabs(z));

Hello,

%d is an integer format, you need to use a floating point format in
the output, e.g. %.18e

 > r: 1, x: 3, y: 3, z: 1
 > fabs(r - z): 1072693248              <<<< should use floating point format
 > 2 * GSL_FLT_EPSILON * fabs(z): 0     <<<< should use floating point format

Thanks,

-- 
Brian Gough




reply via email to

[Prev in Thread] Current Thread [Next in Thread]