On this page
math.h
Prev: assert.h | Up: stdlib | Next: time.h
Rel: math, time & assert Guide, c/builtins
Ref: cppreference — <math.h>
Tags: #public #prog #c #stdlib #math #index
Include
#include <math.h>
Overview
Floating-point mathematical functions and IEEE 754 classification macros (link with -lm on Linux).
Core (#tier/core)
- sqrt — Computes the non-negative square root of
x. - fabs — Returns the absolute value of a floating-point number.
- isnan — Type-generic macro returning non-zero if
xisNaN(alsoisinf,isfinite).
Standard (#tier/standard)
Linked from
Related notes
- tuts/c/stdlib Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/stdlib/assert Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/stdlib/math/fabs Linked here; links to this page; shared tags: #c, #math, #prog, #stdlib
- tuts/c/stdlib/math/floor Linked here; links to this page; shared tags: #c, #math, #prog, #stdlib
- tuts/c/stdlib/math/isnan Linked here; links to this page; shared tags: #c, #math, #prog, #stdlib
- tuts/c/stdlib/math/pow Linked here; links to this page; shared tags: #c, #math, #prog, #stdlib
- tuts/c/stdlib/math/sqrt Linked here; links to this page; shared tags: #c, #math, #prog, #stdlib
- tuts/c/stdlib/time Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/builtins Linked here; shared tags: #c, #index, #prog
- tuts/c/stdlib/assert/static_assert links to this page; shared tags: #c, #prog, #stdlib