I am carrying out a series of calculations using the sqrt() function. My colleagues and I have noticed that we get different results when using the same inputs. Has anyone encountered this problem before?
This is an example:
input1 = 4;
input2 = 8;
result = sqrt(input1^2 + input2^2)
Result then displays a different value from my colleagues result. We have contacted MathWorks about this issue and have yet to receive a reply.
input
is undefined. Do you meaninput2
? And what is your colleague's result? Show a minimal, complete, verifiable example! – Storytellingsqrt
really MATLAB's built-in function for computing the square root? – Courante