Skip to main content
1-Visitor
May 3, 2016
Question

Value of a Simple Equation is Not Equal

  • May 3, 2016
  • 3 replies
  • 2011 views

Hi,

I have simple equation with the two constant one Positive integer and other negative integer

and I have Integrated this integer as a matrix along the length of the section.

So that the start point is the positive integer and end point is the negative integer.

But for some reason I am not getting the values.

Could some one find the error.

Please find the Math Cad Sheet & the Picture

Thanks,

BR,

J.Randeep

3 replies

19-Tanzanite
May 3, 2016

It's simply down to numerical rounding errors.  If you were to use the symbolic equals you would see what you expect:

symbolic.PNG

However, when dealing with non-integer numbers you should expect the numerics to have limited precision.  Never look for an exact comparison of two non-integers.  Do something like |STR691- epscu2|<10^-10  or some such.

Alan

19-Tanzanite
May 3, 2016

Numerical roundoff. Go to "Tools", "Worksheet Options", "Calculation" and uncheck "Use exact equality for comparisons and truncation". For some reason the default is for this to be checked, but it's generally not a good choice.

rjaison1-VisitorAuthor
1-Visitor
May 4, 2016

Thank you Alan Stevens & Richard Jackson for the replies.