Assignment Search Framework
|
Functions | |
bool | fp_less (double a, double b) |
bool | fp_greater (double a, double b) |
bool | fp_equal (double a, double b) |
double | fp_min (double a, double b) |
double | fp_max (double a, double b) |
bool fp_equal | ( | double | a, |
double | b | ||
) |
Returns if a is equal to b, given some tolerance due to floating point arithmetic.
a | The left-hand operator of "==" |
b | The right-hand operator of "==" |
bool fp_greater | ( | double | a, |
double | b | ||
) |
Returns if a is greater than b, given some tolerance due to floating point arithmetic.
a | The left-hand operator of ">" |
b | The right-hand operator of ">" |
bool fp_less | ( | double | a, |
double | b | ||
) |
Returns if a is less than b, given some tolerance due to floating point arithmetic.
a | The left-hand operator of "<" |
b | The right-hand operator of "<" |
double fp_max | ( | double | a, |
double | b | ||
) |
Returns the maximum of a and b, given some tolerance due to floating point arithmetic.
a | The first value to take the maximum over. |
b | The second value to take the maximum over. |
double fp_min | ( | double | a, |
double | b | ||
) |
Returns the minimum of a and b, given some tolerance due to floating point arithmetic.
a | The first value to take the minimum over. |
b | The second value to take the minimum over. |