Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

Standard library header <ctgmath> (C++11)(until C++20), <tgmath.h> (C++11)

This header was originally in the C standard library as <tgmath.h>.

Standard headers
  • C++11
  • C++17
  • C++20
1 min readView on cppreference
NotebookLM

This header was originally in the C standard library as <tgmath.h>.

This header is part of the numeric library.

Includes

(C++11)(deprecated in C++17)(removed in C++20)
Simply includes the header <complex>
(C++11)
Common mathematics functions

Notes

<ctgmath> is deprecated in C++17 and removed in C++20. Corresponding <tgmath.h> is still available in C++20.

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.