Type-generic math (since C99) - cppreference.com

en.cppreference.com

Tin mới

You are encouraged to create an account and log in; however, it is not mandatory

You are encouraged to log in; however, it is not mandatory [o]

Discussion about the content page [t]

This page is protected. You can view its source [e]

Past revisions of this page [h]

c/compiler support

Variadic function support

Dynamic memory management

Date and time utilities

Input/output support

Localization support

Concurrency support

Technical Specifications

Common mathematical functions

Floating-point environment

Pseudo-random number generation

Complex number arithmetic

Checked integer arithmetic

type-generic macros

The header <tgmath.h> includes the headers <math.h> and <complex.h> and defines several type-generic macros that determine which real or, when applicable, complex function to call based on the types of the arguments.

c/numeric/math/pow

c/numeric/math/scalbn

c/keyword/ Generic

The header <tgmath.h> includes the headers <math.h> and <complex.h> and defines several type-generic macros that determine which real or, when applicable, complex function to call based on the types of the arguments.

c/numeric/math/fabs

c/numeric/complex/cabs

c/numeric/math/exp

c/numeric/complex/cexp

c/numeric/math/log

c/numeric/complex/clog

c/numeric/complex/cpow

c/numeric/math/sqrt

c/numeric/complex/csqrt

c/numeric/math/sin

c/numeric/complex/csin

c/numeric/math/cos

c/numeric/complex/ccos

c/numeric/math/tan

c/numeric/complex/ctan

c/numeric/math/asin

c/numeric/complex/casin

c/numeric/math/acos

c/numeric/complex/cacos

c/numeric/math/atan

c/numeric/complex/catan

c/numeric/math/sinh

c/numeric/complex/csinh

c/numeric/math/cosh

c/numeric/complex/ccosh

c/numeric/math/tanh

c/numeric/complex/ctanh

c/numeric/math/asinh