8.5.14   Exponential Functions

All these functions work on tuples of numbers as arguments. The input can either be of type integer or real. However, the resulting type will be of type real. The functions are applied to all tuple values and the resulting tuple has the same length as the input tuple. For pow and ldexp the two input tuples have to be of equal length or one of them of length 1. See table 8.21 for the provided exponential functions.

Operation Meaning HALCON operator

exp(a) exponential function ea tuple_exp
exp2(a) base 2 exponential function 2a tuple_exp2
exp10(a) base 10 exponential function 10a tuple_exp10
log(a) natural logarithm ln(a), a > 0 tuple_log
log2(a) base 2 logarithm, log2(a), a > 0 tuple_log2
log10(a) base 10 logarithm, log10(a), a > 0 tuple_log10
pow(a1,a2) a1a2 tuple_pow
ldexp(a1,a2) a1· 2floor(a2) tuple_ldexp
tgamma(a) gamma function \Gamma(a) tuple_tgamma
lgamma(a) logarithm of the absolute value of the gamma function log(|\Gamma(a)|) tuple_lgamma
erf(a) error function erf(a) tuple_erf
erfc(a) complementary error function erfc(a) tuple_erfc

Table 8.21: Exponential functions.