Is There a Command in MATLAB Like WorkingPrecision in MATHEMATICA?

2 ビュー (過去 30 日間)
Kareem Elgindy
Kareem Elgindy 2022 年 12 月 14 日
回答済み: BLP 2022 年 12 月 14 日
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?

回答 (2 件)

Bora Eryilmaz
Bora Eryilmaz 2022 年 12 月 14 日
編集済み: Bora Eryilmaz 2022 年 12 月 14 日
Yes, if you have access to Symbolic Math Toolbox. See Otherwise, you will get double-precision math, which has about 16 digits accuracy.

BLP 2022 年 12 月 14 日


Help Center および File ExchangeProgramming についてさらに検索




Community Treasure Hunt

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

Start Hunting!

Translated by