# creal(3) [osx man page]

```CREAL(3)						   BSD Library Functions Manual 						  CREAL(3)

NAME
creal -- complex real-part function
cimag -- complex imaginary-part function

SYNOPSIS
#include <complex.h>

double
creal(double complex z);

long double
creall(long double complex z);

float
crealf(float complex z);

double
cimag(double complex z);

long double
cimagl(long double complex z);

float
cimagf(float complex z);

DESCRIPTION
creal(z) extracts the real part of the complex floating-point number z.  cimag(z) extracts the imaginary part of the complex floating-point
number z.

If z = x+iy, then creal(z) = x and cimag(z) = y.

EXAMPLES
The function foo defined in the example below returns its complex argument with the imaginary part scaled by a factor of 2.

#include <complex.h>

double complex foo(double complex z) {
return creal(z) + 2.0*cimag(z)*I;
}

complex(3)

STANDARDS
The creal() and cimag() functions conform to ISO/IEC 9899:2011.

4th Berkeley Distribution					 December 11, 2006					 4th Berkeley Distribution```

## Check Out this Related Man Page

```CIMAG(3)						   BSD Library Functions Manual 						  CIMAG(3)

NAME
cimag, cimagf, cimagl, conj, conjf, conjl, cproj, cprojf, cprojl, creal, crealf, creall -- functions to manipulate complex numbers

LIBRARY
Math Library (libm, -lm)

SYNOPSIS
#include <complex.h>

double
cimag(double complex z);

float
cimagf(float complex z);

long double
cimagl(long double complex z);

double complex
conj(double complex z);

float complex
conjf(float complex z);

long double complex
conjl(long double complex z);

double complex
cproj(double complex z);

float complex
cprojf(float complex z);

long double complex
cprojl(long double complex z);

double
creal(double complex z);

float
crealf(float complex z);

long double
creall(long double complex z);

DESCRIPTION
Let a+b*i denote the complex number z.

The creal() functions return the real part a, and the cimag() functions return the imaginary part b.

The conj() functions return the complex conjugate a-b*i.

The cproj() functions return the projection onto the Riemann sphere.  If z contains an infinite component, then the result is infinity +-
0*i, where the (zero) imaginary part of the result has the same sign as b.  Otherwise, the result is z.

These functions do not signal any floating point exceptions.

STANDARDS
The cimag(), conj(), cproj(), and creal() functions conform to ISO/IEC 9899:1999 (``ISO C99'').

HISTORY
The cimag(), conj() and creal() functions first appeared in FreeBSD 5.3.  The cproj() functions appeared in FreeBSD 8.0.

BSD								  August 7, 2008							       BSD```
Man Page

## Help with an 'easy' script

Hello guys, I need some help to solve a little problem that I have here: I have a big file with almost 100.000 lines of data, here is an example of line: 100099C01101C00000000059399489283CREMOVISTAR_TX 010001C00000000000099069799MOVISTAR_Tx ...

## Help with an 'easy' script

Hello guys, Forgive me if I duplicate the post but i think i make a mistake choosing the correct forum. I need some help to solve a little problem, I have a big file with almost 100.000 lines of data, here is an example of line: 100099C01101C00000000059399489283CREMOVISTAR_TX ...

## replace space for enter

i have to print in a html file directories like this /home/user /home/user/dir but the problem is that when i us this comand listado=`find \$direcreal -type f -print` i get this /home/user /home/user/dir1 i try with sed to replace the space with an enter mostrarlistado=`echo "\$listado"...

## Help with simple IF statements

Hi im new to unix shell scripting but not new to codeing itself. Anyways im making a auto .conf for an eggdropbot and need an If statment. read -p 'Bot Nickname:' ecnick echo Your Bots Nick Is \$ecnick What i want is for if nothing is entered it will do "read -p 'Bot Nickname:' ecnick"...