CADD 3CW "21 March 2008" "mathcw-1.00"

Table of contents


NAME

caddf, cadd, caddl, caddw, caddq, caddll, cadddf, caddd, cadddl, cadddll - complex addition function

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

#include <complexcw.h>

extern float complex caddf (float complex x, float complex y);

extern double complex cadd (double complex x, double complex y);

extern long double complex caddl (long double complex x, long double complex y);

extern __float80 complex caddw (__float80 complex x, __float80 complex y);

extern __float128 complex caddq (__float128 complex x, __float128 complex y);

extern long_long_double complex caddll (long_long_double complex x, long_long_double complex y);

extern decimal_float complex cadddf (decimal_float complex x, decimal_float complex y);

extern decimal_double complex caddd (decimal_double complex x, decimal_double complex y);

extern decimal_long_double complex cadddl (decimal_long_double complex x,
                                            decimal_long_double complex y);

extern decimal_long_long_double complex cadddll (decimal_long_long_double complex x,
                                                  decimal_long_long_double complex y);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the complex sum of x and y.

When compiler support for complex types is lacking, consider using the cx family of functions instead.


RETURN VALUES

Return the sum.

ERRORS

Underflow, overflow, and invalid operation are possible.

SEE ALSO

cabs(3CW), carg(3CW), ccopy(3CW), cdiv(3CW), cimag(3CW), cmul(3CW), cneg(3CW), conj(3CW), cproj(3CW), creal(3CW), cset(3CW), csub(3CW).