GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
COMPLEX(3) FreeBSD Library Functions Manual COMPLEX(3)

complex
complex arithmetic

Math Library (libm, -lm)

#include <complex.h>

These functions support complex arithmetic in the C math library.

Each of the following double complex functions has a float complex counterpart with an ‘f’ appended to the name and a long double complex counterpart with an ‘l’ appended. As an example, the float complex and long double complex counterparts of double cabs(double complex z) are float cabsf(float complex z) and long double cabsl(long double complex z), respectively.

Name Description
cabs complex absolute value (i.e., norm, modulus, magnitude)
csqrt complex square root

Name Description
cexp exponential base e

Name Description
clog natural logarithm

Name Description
carg compute the argument (i.e., phase angle)
cimag compute the imaginary part
conj compute the complex conjugate
cproj compute projection onto Riemann sphere
creal compute the real part

Name Description
cacos arc cosine
cacosh arc hyperbolic cosine
casin arc sine
casinh arc hyperbolic sine
catan arc tangent
catanh arc hyperbolic tangent
ccos cosine
ccosh hyperbolic cosine
cpow power function
csin sine
csinh hyperbolic sine
ctan tangent
ctanh hyperbolic tangent

fenv(3), ieee(3), math(3), tgmath(3)

ISO/IEC 9899:TC3, http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf.

The <complex.h> functions described here conform to ISO/IEC 9899:1999 (“ISO C99”).

The power functions, cpowf,(cpow), and cpowl(), are implemented, but the code was neither reviewed nor tested.
November 3, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.