For my deterministic physics engine, I need to confirm that calculations with doubles in C# are consistent enough across multiple platforms. Does anyone know how much the following functions differ in results? On my computer as a Windows 32 bit application, these are the results (Note: Pseudo-code):
double x = 123.123;
x * 2 = 246.246
Math.Pow (x, 2) = 15159.273129
Math.Sqrt (x) = 11.0960803890383
Math.Sin (x) = -0.56537391969734
I still don't know if the same results will turn up on other platforms or other languages (I'm using C#). If there's any more information needed, I'll supply it as promptly as possible. Please, if there's anyone with the knowledge or time to help test the calculations on other platforms, help me get past this uncertainty.