| GNU Scientific Library Reference Manual - Revised Second Edition (v1.8) by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, M. Booth, F. Rossi Paperback (6"x9"), 636 pages, 60 figures ISBN 0954161734 RRP £24.99 ($39.99) |
5.2 Properties of complex numbers
- Function: double gsl_complex_arg (gsl_complex z)
- This function returns the argument of the complex number z, \arg(z), where -\pi < \arg(z) <= \pi.
- Function: double gsl_complex_abs (gsl_complex z)
- This function returns the magnitude of the complex number z, |z|.
- Function: double gsl_complex_abs2 (gsl_complex z)
- This function returns the squared magnitude of the complex number z, |z|^2.
- Function: double gsl_complex_logabs (gsl_complex z)
- This function returns the natural logarithm of the magnitude of the
complex number z, \log|z|. It allows an accurate
evaluation of \log|z| when |z| is close to one. The direct
evaluation of
log(gsl_complex_abs(z))would lead to a loss of precision in this case.
| ISBN 0954161734 | GNU Scientific Library Reference Manual - Revised Second Edition (v1.8) | See the print edition |