File Exchange

image thumbnail

zeroFPError(H,ZERO)​

version 1.5.0.0 (2.59 KB) by Michael Kutzer
Zero round-off terms resulting from floating point errors

1 Download

Updated 28 Oct 2014

View License

This function simplifies an input by zeroing floating point errors with magnitudes less than a specified value. It is particularly useful for simplifying results from the symbolic toolbox, however this function can be applied to numeric values as well.

Cite As

Michael Kutzer (2020). zeroFPError(H,ZERO) (https://www.mathworks.com/matlabcentral/fileexchange/47817-zerofperror-h-zero), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.5.0.0

(1) Round coefficients based on zero. This includes additional VPA for decimal coefficients in output.
(2) Added "See also" to comments

1.4.0.0

Updated to accommodate fractions.

1.3.0.0

(1) Updated to check for use of symbolic variables prior to calling "simplify.m"
(2) Added simplify call prior to calling "vpa.m" to ensure trig simplification.

1.2.0.0

Description correction.

1.1.0.0

Updated to remove extra 'vpa' call.

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux