(ANSI Standard)
#include <math.h> z = atan2( y, x );
"atan2" returns the arctan of "y/x" (in the range -pi to pi). If both arguments are zero, "atan2" sets "errno" to EDOM and returns a zero.
expl c lib errno
Copyright © 1996, Thinkage Ltd.