Calculate atan2 without std functions or C99
问题 I am calculating angles from a 3-axis accelerometer, but my compiler doesn't have a atan or atan2 function. It has a reserved memory slot, but it calls a function i can't find in any files. My compiler is Keil µVision 4 running the ARMCC compiler. The compiles has the file math.h, but the function is extern and doesn't exist: extern _ARMABI double atan2(double /*y*/, double /*x*/); Is there a lib or function I can include that has the function arctan implemented? Or is there an alternative