## File: Properties-of-complex-numbers.html

package info (click to toggle)
gsl-ref-html 2.3-1
• area: non-free
• in suites: bullseye, buster, sid
• size: 6,876 kB
• ctags: 4,574
• sloc: makefile: 35
 file content (106 lines) | stat: -rw-r--r-- 5,221 bytes parent folder | download
 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106  GNU Scientific Library – Reference Manual: Properties of complex numbers

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.