cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Value of a Simple Equation is Not Equal

rjaison
1-Newbie

Value of a Simple Equation is Not Equal

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 3

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

RichardJ
19-Tanzanite
(To:rjaison)

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.

Thank you Alan Stevens & Richard Jackson for the replies.

Top Tags