Bug #366
MathUtils::Tanh test failing
100%
Description
From Tunnell:
Hey,
I get this error:
tests/cpp_unit/Interface/MathUtilsTest.cpp:294: Failure
Value of: tanh((x+_x0)/_lambda)-tanh((x-_x0)/_lambda)
Actual: 0.67945553896577626
Expected: 2.*_d_tanh.GetDoubleTanh(x, 0)
Which is: 0.67945553896577615
[ FAILED ] TanhTest.GetDoubleTanhTest (4 ms)
In a ton of places. Can you look?
http://micetest.pp.rl.ac.uk/job/MAUS_nonVMs_nightly/slaves=heplnx101/24/console
It's not on all systems though.
Updated by Rogers, Chris over 12 years ago
Compares numerical derivative vs analytical derivative - so sensitive to machine precision... probably the issue...
Updated by Rogers, Chris over 12 years ago
Actually slightly different issue, but floating point precision problem nonetheless...
fixed in rogers dev, running hudson now...
Updated by Rogers, Chris over 12 years ago
Pushed fix to the trunk - but I can't reproduce it on my machine, so can only hope it is fixed...
Updated by Tunnell, Christopher over 12 years ago
ah right, you pushed it (I was trying to merge it and got really confused because the commit was there, but the timestamp was wrong). :)
I'll start the testing on the wide range of machines if they aren't already running
Updated by Rogers, Chris over 12 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100