From: Nathan H. <nj...@nj...> - 2012-03-04 23:32:48
|
On Sun, Mar 04, 2012 at 07:01:50PM +0100, Johan Engelen wrote: > Hi all, > I've just run into trouble with SBasis::isZero and isConstant. > See e.g. linear.h, lines 75 and 76. Shouldn't the comparisons be > "are_near" comparisons? > For example: > inline bool isConstant(double eps=EPSILON) const { return > are_near(a[0], a[1], eps); } I guess they should, though I wonder if we should have isNearlyConstant? njh |