So I am working on an IK calculation and in Excel I get a sucessful calculation with expected results, in c# using the same numbers I get a different result!
Here is the Excel code:
Xb= -0.88
Zb= -0.37
Q= 0.30
Sorry, I don’t use C# much, but a quick look at the two help files have:
in excel atan2(x, y) and in c# it has math.atan2(y, x).
So have you tried reversing your parameters?
Also I don’t remember how well excel has for operator ordering. So you may also want to try using parens () around parts of the expressions to see if the operator order is correct.