update options for pip installation in README.md
[liba.git] / src / fuzzy.c
blob2487d54b8d958c7ed378d74797db5c2a6540f67b
1 #define LIBA_FUZZY_C
2 #include "a/fuzzy.h"
3 #include "a/math.h"
5 a_float a_fuzzy_equ(a_float a, a_float b)
7 return a_float_sqrt(a * b) * a_float_sqrt(1 - (1 - a) * (1 - b));
10 a_float a_fuzzy_equ_(a_float gamma, a_float a, a_float b)
12 return a_float_pow(a * b, 1 - gamma) * a_float_pow(1 - (1 - a) * (1 - b), gamma);