Exponent, trigonometric function, square, root and cube. You can see the relevant information for details.
The math function library needs header math. H
For example:
1. exponential function float exp(float x)
2. Logarithmic function floating-point log (floating-point x), floating-point log 10 (floating-point x)
3. Square root: floating-point sqrt (floating-point X)
3. Trigonometric function:
Floating point cos (floating point x), floating point sin (floating point x), floating point tan (floating point x)
Floating point acos (floating point x), floating point asin (floating point x), floating point atan (floating point x), floating point atan2 (floating point y, floating point x)
Floating point cosh (floating point x), floating point sinh (floating point x), floating point tanh (floating point x)
I've been waiting for a long time. Let's take a closer look at the relevant information.
I hope my answer is helpful to you. I am very happy to discuss the programming technology of single chip microcomputer with you.