1cproj(3M)               Mathematical Library Functions               cproj(3M)
2
3
4

NAME

6       cproj, cprojf, cprojl - complex projection functions
7

SYNOPSIS

9       c99 [ flag... ] file... -lm [ library... ]
10       #include <complex.h>
11
12       double complex cproj(double complex z);
13
14
15       float complex cprojf(float complex z);
16
17
18       long double complex cprojl(long double complex z);
19
20

DESCRIPTION

22       These  functions  compute  a projection of z onto the Riemann sphere: z
23       projects to z, except that all complex infinities (even those with  one
24       infinite  part  and  one  NaN part) project to positive infinity on the
25       real axis. If z has an infinite part, then cproj(z) is equivalent to:
26
27         INFINITY + I * copysign(0.0, cimag(z))
28
29

RETURN VALUES

31       These functions return the value of the  projection  onto  the  Riemann
32       sphere.
33

ERRORS

35       No errors are defined.
36

ATTRIBUTES

38       See attributes(5) for descriptions of the following attributes:
39
40
41
42
43       ┌─────────────────────────────┬─────────────────────────────┐
44       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
45       ├─────────────────────────────┼─────────────────────────────┤
46       │Interface Stability          │Standard                     │
47       ├─────────────────────────────┼─────────────────────────────┤
48       │MT-Level                     │MT-Safe                      │
49       └─────────────────────────────┴─────────────────────────────┘
50

SEE ALSO

52       carg(3M),    cimag(3M),    complex.h(3HEAD),    conj(3M),    creal(3M),
53       attributes(5), standards(5)
54
55
56
57SunOS 5.11                        12 Jul 2006                        cproj(3M)
Impressum