由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Re: matlab和fortran计算结果不一样该相信谁
相关主题
为什么两台机器的计算结果不一样?fortran 中怎样达到32位有效数字的精度?
有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?懂fortran的帮忙看一下
fortran还是matlab?where to down a standard Fortran90 complier?
求教一个Matlab fortran compiler 问题my experience,Re: 我也及问一个问题
Matlab跑了两天了没有反应[转载] unix下编译fortran 的错误太多,看不到怎么办?
偶也问一fortran问题help on interface for Matlab and Fortran
谁给说说fortran的几个标准Re: help on interface for Matlab and For
matlab改成C++,还用了号称史上最快的fftw,结果慢了一倍visual fortran区别6位以上的变量名吗?
相关话题的讨论汇总
话题: matlab话题: fortran话题: machine话题: pi话题: precision
进入Computation版参与讨论
1 (共1页)
r****y
发帖数: 1437
1
Even on a same machine, different compilers of same language
can give you different results beyond machine precision. There is also no
point to compare fortran and matlab results beyond machine precision.
And pi in matlab is not same as the pi you specified in your code.
As I said before, your code sucks, not fortran or matlab.


8888
.

c*******e
发帖数: 8624
2
matlab always uses double precision in computing, so I would like to
believe matlab, hehe.

【在 r****y 的大作中提到】
: Even on a same machine, different compilers of same language
: can give you different results beyond machine precision. There is also no
: point to compare fortran and matlab results beyond machine precision.
: And pi in matlab is not same as the pi you specified in your code.
: As I said before, your code sucks, not fortran or matlab.
:
: 的
: 8888
: .
: 差

t*****e
发帖数: 13
3


8888
.


your Pi value is not accrate enough. Change it to
mypi=4.q0*atan(1.q0)
and see if it makes any difference.
g******s
发帖数: 733
4
thank a lot! I just found it too.

【在 t*****e 的大作中提到】
:
: 的
: 8888
: .
: 差
: 题
: your Pi value is not accrate enough. Change it to
: mypi=4.q0*atan(1.q0)
: and see if it makes any difference.

g******s
发帖数: 733
5
Thanks a lot!
1 (共1页)
进入Computation版参与讨论
相关主题
visual fortran区别6位以上的变量名吗?Matlab跑了两天了没有反应
Re: f90 and mpi偶也问一fortran问题
谁最近买国FORTRAN的COMPILER,FOR WINDOWS,请介绍一下。谁给说说fortran的几个标准
老板的程序在unix上运行没问题matlab改成C++,还用了号称史上最快的fftw,结果慢了一倍
为什么两台机器的计算结果不一样?fortran 中怎样达到32位有效数字的精度?
有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?懂fortran的帮忙看一下
fortran还是matlab?where to down a standard Fortran90 complier?
求教一个Matlab fortran compiler 问题my experience,Re: 我也及问一个问题
相关话题的讨论汇总
话题: matlab话题: fortran话题: machine话题: pi话题: precision