Is There a Command in MATLAB Like WorkingPrecision in MATHEMATICA?
3 次查看(过去 30 天)
显示 更早的评论
In MATHEMATICA, WorkingPrecision is an option for various numerical operations that specify the number of digits of precision that should be maintained in internal computations. Is there anything like it in MATLAB?
I am interested in running certain codes using a few significant digits maintained in internal computations like say 3 or 4 digits only, so is this possible?
0 个评论
回答(2 个)
Bora Eryilmaz
2022-12-14
编辑:Bora Eryilmaz
2022-12-14
Yes, if you have access to Symbolic Math Toolbox. See https://www.mathworks.com/help/symbolic/vpa.html. Otherwise, you will get double-precision math, which has about 16 digits accuracy.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!