Epsilon is your βphase factor,β since paired discharges may not be exactly the same. Epsilon lets you describe how close they are.
If you expected 3.14159, but would take anywhere from 3.14059 to 3.14259 (i.e. within 0.001), then you should write something like
double myPi = 22.0d / 7.0d; //Don't use this in real life! assertEquals(3.14159, myPi, 0.001);
(By the way, 22/7 comes out in 3.1428+, and this statement will not be fulfilled. This is good.)
rajah9 May 9 '11 at 16:36 2011-05-09 16:36
source share