calnum_sf - Solve with Fixed Significant Digits

calnum_sf solves mathematical expression with fixed significant figures.
40.0 次下载
更新时间 2019/4/17

查看许可证

% calnum_sf solves mathematical expression with fixed significant figures
% ---------------------------------------------------------------------
% inputs
% expression - your expression as a string
% numSF - number of significant figures
% method - uses following methods for rounding:
% 'round'
% 'fix'
% ---------------------------------------------------------------------
% outputx
% appVal the approximate result
% error the relative error
% ---------------------------------------------------------------------
% example
% [num,error]=calnum_sf('(2/9)*(9/7)*3-5*66*cos(log(3*5)-5)+3.5464*cos(6*sin(3)/5)^5',6,'round')
%
% All copyrights goes to Mohammad Al-Fetyani
% University of Jordan

引用格式

Mohammad Al-Fetyani (2024). calnum_sf - Solve with Fixed Significant Digits (https://www.mathworks.com/matlabcentral/fileexchange/69859-calnum_sf-solve-with-fixed-significant-digits), MATLAB Central File Exchange. 检索来源 .

François Beauducel (2015). Round with significant digits (https://www.mathworks.com/matlabcentral/fileexchange/26212-round-with-significant-digits), MATLAB Central File Exchange. Retrieved 03 Apr 2015.

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Visual Exploration 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.1

name fixed

1.0.0