急求大神!!!matlab中erf函数精度提高。

4 vues (au cours des 30 derniers jours)
hadeo
hadeo le 16 Mai 2023
Réponse apportée : kendin le 16 Mai 2023
matlab代码如下
k=1079; z=3^0.5 ;z1=sqrt(-i*k)*(1+z);
mfun('erf',z1)
采用mfun('erf',x),在matlab计算只有16位有效数字(和mathematica中得到的准确结果相比),那么如何才能在matlab中把计算精度提高到30位甚至更高的有效数字?现在很着急,做了很久都没成功,急求各位大神指点。

Réponse acceptée

kendin
kendin le 16 Mai 2023
方法写给你了,照葫芦画瓢,用符号工具箱计算,最后再用vpa做符号转为数值的显示。
或者直接用mathematica算,普通的读写文件以及循环之类简单功能mathematica同样能实现。

Plus de réponses (0)

Catégories

En savoir plus sur 文件操作 dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!