MathCAd Error
MathCAd Error
(OP)
Hi Folks,
Please help me with the issues I have encountered using MathCAd 15. I'm using a Script with program on it but the result box shows differently. Please see snap for reference. I dont know which part is wrong. Thanks.
When I redefined one of the values using the same magnitude, the result box become correct.
Please help me with the issues I have encountered using MathCAd 15. I'm using a Script with program on it but the result box shows differently. Please see snap for reference. I dont know which part is wrong. Thanks.
When I redefined one of the values using the same magnitude, the result box become correct.
RE: MathCAd Error
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm
RE: MathCAd Error
Thanks.
RE: MathCAd Error
> In both boxes, you are comparing fractions using Mathcad's internal floating point representation, so the difference of two fractions is not equivalent to resultant fraction, when expressed in floating point. The usual approach is to compare against some sort of ε, which is the largest possible valid floating point difference, rather than zero
> Your second box has the two input values reversed
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm
RE: MathCAd Error
RE: MathCAd Error
Instead of
If Inputs(0).Value > Inputs(1).Value Then
you would have
If Inputs(0).Value - Inputs(1).Value > epsilon Then
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm
RE: MathCAd Error
I'm thinking if there is any option or program that can possibly round the given value into closest number that may used to satisfy the "equal part" of the program.
There is no problem in greater or less than part, its just the equal portion.
Thanks.
RE: MathCAd Error
RE: MathCAd Error
Best practice is to use full precision and compare against a known static value. I think you are missing the point. The use of the epsilon is specifically for comparing "equal" values that might not have exactly identical floating point representation. This is hardly a new problem; it's been around since computer programs starting using floating point numbers.
If you must, you can leave the numbers as fractions using Mathcad's symbolic engine
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm