|
Qualia
0.2
|
#include "log_add.h"
Macros | |
| #define | MINUS_LOG_THRESHOLD -18.42 |
Functions | |
| real | logAdd (real log_a, real log_b) |
| real | logSub (real log_a, real log_b) |
| logSub(log_a,log_b) = log(a-b) More... | |
| #define MINUS_LOG_THRESHOLD -18.42 |
logAdd(log_a,log_b) = log(a+b) = log(exp(log_a)+exp(log_b)) but done in a smart way so that if log_a or log_b are large but not their difference the computation works correctly.
1.8.3.1