I was looking for the .NET implementation of Atan2 in a reflector and found the following line:
public static extern double Atan2(double y, double x);
That is not surprising since it makes sense for most arithmetic functions to be implemented in native code. However, there was no DllImport call associated with this or other functions in System.Math.
The core question is about how the function implemented in native code but I would also like to know which native Dll it resides in. Also, why is there no DllImport? Is that because compilation strips it away?