I am getting slightly different results from code used by C++ to do Eigen vector calculations compared to what the same code in VBA gives me using the same input data. I am wondering if my conversion of the hypot and atan2 methods (available in C++, Matlab, Perl, etc) are not capturing the same floating point accuracy as is standard in C++. For hypot I am using: Sqr((A1 * A1) + (A2 * A2)). And for atan2 I am using: Application.WorksheetFunction.Atan2(HypotA1A2, A3)). Does anyone have experience with using advanced methods like these in Excel VBA, in particular as they relate to floating point accuracy?