MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Matlab:在Matlab中存储大量数据 (https://www.labfans.com/bbs/showthread.php?t=24135)

poster 2019-12-10 20:48

Matlab:在Matlab中存储大量数据
 
对于存储大量数字,我指的是下一个:

2.7182818284590455348848081484902650117874145507812500 我不能用[URL="http://en.wikipedia.org/wiki/Double_precision_floating-point_format"]双精度浮点格式[/URL] (IEEE754)保存它

谢谢。



[B]回答:[/B]

符号工具箱具有将可变精度运算作为字符串保存的功能。

x = sym('exp(1)'); vpa(x,500) 2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931

[url=https://stackoverflow.com/questions/4222600]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:04

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.