Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cabs(3) [linux man page]

CABS(3) 						     Linux Programmer's Manual							   CABS(3)

NAME
cabs, cabsf, cabsl - absolute value of a complex number SYNOPSIS
#include <complex.h> double cabs(double complex z); float cabsf(float complex z); long double cabsl(long double complex z); Link with -lm. DESCRIPTION
The cabs() function returns the absolute value of the complex number z. The result is a real number. VERSIONS
These functions first appeared in glibc in version 2.1. CONFORMING TO
C99. NOTES
The function is actually an alias for hypot(a, b) (or, equivalently, sqrt(a*a + b*b)). SEE ALSO
abs(3), cimag(3), hypot(3), complex(7) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2008-08-11 CABS(3)

Check Out this Related Man Page

CABS(3) 						     Linux Programmer's Manual							   CABS(3)

NAME
cabs, cabsf, cabsl - absolute value of a complex number SYNOPSIS
#include <complex.h> double cabs(double complex z); float cabsf(float complex z); long double cabsl(long double complex z); Link with -lm. DESCRIPTION
These functions return the absolute value of the complex number z. The result is a real number. VERSIONS
These functions first appeared in glibc in version 2.1. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +-------------------------+---------------+---------+ |Interface | Attribute | Value | +-------------------------+---------------+---------+ |cabs(), cabsf(), cabsl() | Thread safety | MT-Safe | +-------------------------+---------------+---------+ CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008. NOTES
The function is actually an alias for hypot(a, b) (or, equivalently, sqrt(a*a + b*b)). SEE ALSO
abs(3), cimag(3), hypot(3), complex(7) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. 2015-04-19 CABS(3)
Man Page

4 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

USB Flash Drives

Can Solaris/any GNU/Linux distros/ any flavor of FreeBSD be booted, right from aUSB flash drive? Mine's the one pictured here. SanDisk | Products | USB Flash Drives | SanDisk CruzerŽ Titanium Plus USB Flash Drive Also, on a completely unrelated note (just so I don't have to fill up forum... (4 Replies)
Discussion started by: led3234
4 Replies

2. Shell Programming and Scripting

wget skips certain files.

I am trying to use wget to automate downloading of some mp3/wav files. However, I can't get it to follow the link to the mp3s. This is the line (it is not really the website): wget -prl 1 http://website.com/alarmsHowever, if I right-click and copy the link on the webpage in firefox, then... (4 Replies)
Discussion started by: Narnie
4 Replies

3. UNIX for Dummies Questions & Answers

Grep

my file has one line abcdedabxxxxabxxxab I want to know the #occurrences of substring ab and their positions Following command gives me >grep ab -o file|wc 4 4 12 Is the first 4, the number of occurrences of ab? what are other numbers. Can I get their positions in a one... (8 Replies)
Discussion started by: prak705
8 Replies

4. Shell Programming and Scripting

Perl:: mass replacement of converting C code formats to tgmath.h

hello, i have a lot of C old code I'm updating to C11 with tgmath.h for generic math. the old code has very specific types, real and complex, like cabsl, csinhl, etc usually for simple bulk replacements i would do something simple like this perl -pi -e 's/cosl/cos/g' *.c the reference... (0 Replies)
Discussion started by: f77hack
0 Replies