#include "r2p.h" #include double r2p(double x, double y, double *theta) { *theta = atan2(y, x); return sqrt(x*x + y*y); }