math.h
Floating-point maths: `sqrt`, `pow`, `sin`, `cos`, `atan2`, `fabs`, `floor`, `round`, `log`, `exp`.
Beginner
Link with -lm on Linux. Use sinf/sqrtf float versions on MCUs without double-precision FPUs.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.