Skip to main content
1-Visitor
March 18, 2010
Question

MathCAD Error: Encountered a floating point error

  • March 18, 2010
  • 1 reply
  • 6885 views
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.

1 reply

19-Tanzanite
March 18, 2010
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
1-Visitor
March 19, 2010
Hi Richard,

"Richard Jackson" wrote:

I think you have a bug somewhere.

19-Tanzanite
March 19, 2010
Mathcad's error messages leave a great deal to be desired. Richard