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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

MathCAD Error: Encountered a floating point error

ptc-3182093
1-Newbie

MathCAD Error: Encountered a floating point error

I tryed to do a standard digital filter in MathCAD (which is running with same coefficients in C without any problem) gives me a floating point exception. Might it be anyhow related to a problem with the floatingpoint precission? If so.. how to configure it? Please see attached example.
3 REPLIES 3
RichardJ
19-Tanzanite
(To:ptc-3182093)

It has nothing to do with floating point precision, which you can't configure in Mathcad anyway. Restrict the number of points in Signal to 34115. Change your program so that it returns dSumDen (I'm not sure why you have it return zero at the moment, that seems kind of pointless). You will see that it is -9.152*10^307. If you increase the range to 34116 it fails because you have exceeded the range of the floating point processor. If you return Array from the program you can see that the values grow extremely fast. I think you have a bug somewhere. Richard

Hi Richard,

"Richard Jackson" wrote:

I think you have a bug somewhere.

RichardJ
19-Tanzanite
(To:ptc-3182093)

Mathcad's error messages leave a great deal to be desired. Richard
Top Tags