Sum benchmark

版本 1.0.0.0 (2.4 KB) 作者: Alain Barraud
Compute set of real values to be summed with an a priori known sum and specified condition number
587.0 次下载
更新时间 2009/3/5

无许可证

For a given n, a condition number cth and a value s, Sumbench.m computes a n-vector x with x(1)+...+x(n) = s exactly and whose the sum condition number is about cth within sharp bounds. The true condition number is also returned.
An option is given to return an x such that the exact sum is not exactly a floating point but whose value is described 2 floating point. In this case a third output argument v is a 2 vector such that s= v(1)+ v(2) with v(2)<eps*v(1) ( no overlap).
Sumbench calls another m file exactsum.m which can be used directly for personnal test purpose. This small routines computes the exact sum of any given n- vector. See the comments for details.

引用格式

Alain Barraud (2024). Sum benchmark (https://www.mathworks.com/matlabcentral/fileexchange/23198-sum-benchmark), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Input Specification 的更多信息
致谢

启发作品: XSum

Community Treasure Hunt

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

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