AFBR-S50 API Reference Manual  v1.6.5
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
fp_exp.h
Go to the documentation of this file.
1 /*************************************************************************/
37 #ifndef FP_EXP_H
38 #define FP_EXP_H
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 /*!***************************************************************************
44  * @addtogroup argus_fp
45  * @{
46  *****************************************************************************/
47 
48 #include "fp_def.h"
49 
50 /*!***************************************************************************
51  * @brief Calculates the exponential of an fixed point number Q15.16 format.
52  *
53  * @details Calculates y = exp(x) in fixed point representation.
54  *
55  * Note that the result might not be 100 % accurate and might contain
56  * a small error!
57  *
58  * @see https://www.quinapalus.com/efunc.html
59  *
60  * @param x The input parameter in unsigned fixed point format Q15.16.
61  * @return Result y = exp(x) in the UQ16.16 format.
62  *****************************************************************************/
64 
66 #ifdef __cplusplus
67 } // extern "C"
68 #endif
69 #endif /* FP_DIV_H */
fp_exp16
uq16_16_t fp_exp16(q15_16_t x)
Calculates the exponential of an fixed point number Q15.16 format.
fp_def.h
This file is part of the AFBR-S50 API.
uq16_16_t
uint32_t uq16_16_t
Unsigned fixed point number: UQ16.16.
Definition: fp_def.h:425
q15_16_t
int32_t q15_16_t
Signed fixed point number: Q15.16.
Definition: fp_def.h:515