summaryrefslogtreecommitdiff
path: root/src/complex/carg.c
blob: dfe9b97a09e10eedbfbb65c72682fd4a49210ec9 (plain) (blame)
1
2
3
4
5
6
#include "complex_impl.h"

double carg(double complex z)
{
	return atan2(cimag(z), creal(z));
}