Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

FreeBSD 11.0 - man page for cexpf (freebsd section 3)

CEXP(3) 						   BSD Library Functions Manual 						   CEXP(3)

NAME
cexp, cexpf -- complex exponential functions
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <complex.h> double complex cexp(double complex z); float complex cexpf(float complex z);
DESCRIPTION
The cexp() and cexpf() functions compute the complex exponential of z, also known as cis(z).
RETURN VALUES
For real numbers x and y, cexp() behaves according to Euler's formula: cexp(x + I*y) = (e**x * cos(y)) + (I * e**x * sin(y)) Generally speaking, infinities, zeroes and NaNs are handled as would be expected from this identity given the usual rules of floating-point arithmetic. However, care is taken to avoid generating NaNs when they are not deserved. For example, mathematically we expect that cimag(cexp(x + I*0)) = 0 regardless of the value of x, and cexp() preserves this identity even if x is infinity or NaN. Likewise, cexp(-infinity + I*y) = 0 and creal(cexp(infinity + I*y)) = infinity for any y (even though the latter property is only mathematically true for representable y.) If y is not finite, the sign of the result is indeterminate.
SEE ALSO
complex(3), exp(3), math(3)
STANDARDS
The cexp() and cexpf() functions conform to ISO/IEC 9899:1999 (``ISO C99'').
BSD
March 6, 2011 BSD
Linus Torvalds

Linus Benedict Torvalds was born on December 28, 1969 and is a Finnish–American software engineer who is the creator of Linux. Linus was also the original principal developer of the Linux kernel. The Linux kernel is the kernel for Linux OS distributions as well as other operating systems such as Android and Chrome OS. Linus also created the distributed version control system called Git.
Linus was introduced to the GNU Project in 1991 after another Swedish-speaking computer science student, Lars Wirzenius, took him to the University of Technology to listen to free software evangelist Richard Stallman's speech. Linus used Richard's GNU General Public License version 2 (GPLv2) and his initial prototypes of Linux were publicly released later that year (1991). Version 1.0 was released on March 14, 1994.
Linus was honored with the 2012 Millennium Technology Prize by the Technology Academy Finland "in recognition of his creation of a new open source operating system for computers leading to the widely used Linux kernel."
Linus is also the recipient of the 2014 IEEE Computer Society Computer Pioneer Award and the 2018 IEEE Masaru Ibuka Consumer Electronics Award.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.