本文介绍了MATLAB精度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在MATLAB中实现四倍精度(128位算术),同时解决矩阵特征值问题?我试图解决一个线性稳定性分析问题的不可压缩平面Couette流量和MATLAB的默认64位精度不足以满足更高的雷诺数(4000左右)。 -5556.html>变精度算术,使用MATLAB中的。如果您使用,则应该获得与相同的精度。 34 作为的数字功能。



如果您没有访问符号数学工具箱,我会从。 =http://www.mathworks.com/matlabcentral/fileexchange/authors/12143> Ben Barrowes 关于。


How can I implement quadruple precision (128 bit arithmetic) in MATLAB while solving a Matrix eigenvalue problem ?

I am trying to solve a linear stability analysis problem for incompressible plane Couette flow and the the default 64 bit precision of MATLAB is not enough for higher values of Reynolds number (around 4000).

解决方案

You can perform variable-precision arithmetic using the Symbolic Math Toolbox in MATLAB. You should get nearly the same precision as a quadruple precision floating-point number if you use 34 as the number of significant digits for the VPA function.

If you don't have access to the Symbolic Math Toolbox, I would check out the submission "Multiple Precision Toolbox for MATLAB" from Ben Barrowes on the MathWorks File Exchange.

这篇关于MATLAB精度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 00:00