Boost logo

Boost Users :

Subject: [Boost-users] [math] log_max_value<long double>
From: er (erwann.rogard_at_[hidden])
Date: 2009-03-19 19:53:23


Hi All,

Was this discussed before?

<cmath>

using namespace math::tools;

typedef double RealType;
log_max_value<RealType>() 709
log(max_value<RealType>()) 709.783
!math::isinf(exp(log_max_value<RealType>())) //true

typedef long double RealType;
log_max_value<RealType>() 11356
log(max_value<RealType>()) inf
!math::isinf(exp(log_max_value<RealType>())) //false

i.e. exp in cmath seems to "assume" RealType = double.

i686-apple-darwin9-gcc-4.0.1


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net