|
|
★ ★ ★ 小木虫(金币+0.5):给个红包,谢谢回帖交流 nono2009(金币+2,VIP+0):谢谢用心交流!欢迎常来。 10-29 22:12
gcc里其实都带了的。
man cexp:
Linux Programmer's Manual CEXP(3)
NAME
cexp, cexpf, cexpl - complex exponential function
SYNOPSIS
#include
double complex cexp(double complex z);
float complex cexpf(float complex z);
long double complex cexpl(long double complex z);
Link with -lm.
DESCRIPTION
The function calculates e (2.71828..., the base of natural logarithms)
raised to the power of z.
One has:
cexp(I * z) = ccos(z) + I * csin(z)
VERSIONS
These functions first appeared in glibc in version 2.1.
CONFORMING TO
C99.
================
debian:~$ man csin
CSIN(3) Linux Programmer's Manual CSIN(3)
NAME
csin, csinf, csinl - complex sine function
SYNOPSIS
#include
double complex csin(double complex z);
float complex csinf(float complex z);
long double complex csinl(long double complex z);
Link with -lm.
DESCRIPTION
The complex sine function is defined as:
csin(z) = (exp(i * z) - exp(-i * z)) / (2 * i)
VERSIONS
These functions first appeared in glibc in version 2.1.
CONFORMING TO
C99.
SEE ALSO
cabs(3), ccos(3), ctan(3), complex(7) [ Last edited by tjyl on 2009-10-29 at 21:50 ] |
|