It's meaningless to compare the difference of normalized numbers with a zero, because any mathematical operation with normalized numbers gives a non-normalized result. The second way offers comparing the normalized difference of two real numbers with zero. The meaning of these values is the following: it is the lowest value that satisfies the condition 1.0 + DBL_EPSILON! = 1.0 (for numbers of float type 1.0 + FLT_EPSILON! = 1.0). The constant corresponding to the float type is FLT_EPSILON = 1.192092896e-07. Note that the value of epsilon in the above example can not be less than the predefined constant DBL_EPSILON. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.Bool EqualDoubles( double d1, double d2, double epsilon) This page has been automatically generated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |