Fixed mistakes.

===1_1===
corrected consts.
===2_2===
change float to double
corrected eps