catan, catanf, catanl - complex arc tangents


   #include <complex.h>

   double complex catan(double complex z);
   float complex catanf(float complex z);
   long double complex catanl(long double complex z);

   Link with -lm.


   These   functions   calculate   the  complex  arc  tangent  of  z.   If
   y = catan(z), then z = ctan(y).  The real part of y is  chosen  in  the
   interval [-pi/2,pi/2].

   One has:

       catan(z) = (clog(1 + i * z) - clog(1 - i * z)) / (2 * i)


   These functions first appeared in glibc in version 2.1.


   For   an   explanation   of   the  terms  used  in  this  section,  see

   Interface                    Attribute      Value   
   catan(), catanf(), catanl()  Thread safety  MT-Safe 


   C99, POSIX.1-2001, POSIX.1-2008.


   /* Link with "-lm" */

   #include <complex.h>
   #include <stdlib.h>
   #include <unistd.h>
   #include <stdio.h>

   main(int argc, char *argv[])
       double complex z, c, f;
       double complex i = I;

       if (argc != 3) {
           fprintf(stderr, "Usage: %s <real> <imag>\n", argv[0]);

       z = atof(argv[1]) + atof(argv[2]) * I;

       c = catan(z);
       printf("catan() = %6.3f %6.3f*i\n", creal(c), cimag(c));

       f = (clog(1 + i * z) - clog(1 - i * z)) / (2 * i);
       printf("formula = %6.3f %6.3f*i\n", creal(f2), cimag(f2));



   ccos(3), clog(3), ctan(3), complex(7)


   This page is part of release 4.09 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

                              2015-04-19                          CATAN(3)

More Linux Commands

nntptest(1) - interactive NNTP test program - Linux man page
nntptest is a utility that allows you to authenticate to a NNTP server and interactively issue commands to it. Once authenticated you may issue any NNTP command

default_store(3) - generic storage of global data. (ManPage)
The purpose of the default storage is three-fold: 1) To create a global storage space without creating a whole bunch of globally accessible variables or a whole

wish(1) - Simple windowing shell (Commands - Linux man page)
Wish is a simple program consisting of the Tcl command language, the Tk toolkit, and a main program that reads commands from standard input or from a file. It c

term_attrs(3ncurses) - curses environment query routines....
The baudrate routine returns the output speed of the terminal. The number returned is in bits per second, for example 9600, and is an integer. The erasechar rou

XF86VidModeSetGammaRamp(3) - Extension library for the XFree
These functions provide an interface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mo

bzero(3) - write zero-valued bytes - Linux manual page......
The bzero() function sets the first n bytes of the area starting at s to zero (bytes containing \0). RETURN VALUE None. ATTRIBUTES Multithreading (see pthreads(

rstart(1) - a sample implementation of a Remote Start client
Rstart is a simple implementation of a Remote Start client as defined in A Flexible Remote Execution Protocol Based on rsh. It uses rsh as its underlying remote

fonts-conf(5) - Font configuration files - Linux man page...
Fontconfig is a library designed to provide system-wide font configuration, customization and application access. FUNCTIONAL OVERVIEW Fontconfig contains two es

wgetnstr(3ncurses) - accept character strings from curses te
The function getstr is equivalent to a series of calls to getch, until a newline or carriage return is received (the terminating character is not included in th

sighold(3) - System V signal API (Library - Linux man page)
These functions are provided in glibc as a compatibility interface for programs that make use of the historical System V signal API. This API is obsolete: new a

feclearexcept(3) - floating-point rounding and exception han
These eleven functions were defined in C99, and describe the handling of floating-point rounding and exceptions (overflow, zero-divide, etc.). Exceptions The di

XRes(3) - X-Resource extension client library (Man Page)....
X-Resource is an extension that allows a client to query the X server about its usage of various resources. It should not be confused with the X resource databa

We can't live, work or learn in freedom unless the software we use is free.