zeroFPError(H,ZERO)​

Zero round-off terms resulting from floating point errors
206 Downloads
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 (2024). zeroFPError(H,ZERO) (https://www.mathworks.com/matlabcentral/fileexchange/47817-zerofperror-h-zero), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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.

1.0.0.0