在所考虑的物理问题中,文献中所提供的公式涉及到了复变量的互补误差函数erfc(z)。由于是第一次接触这个函数,出于效率的考虑,像往常那样,查阅Abramowitz和Stegun的Handbook of mathematical functions with formulas, graphs, and mathematical tables,试图找到数值上直接能用的表达式。不过结果不是很理想,虽然找到 ...
来自: https://gcc.gnu.org/onlinedocs/gfortran/EXP.html Name Argument Return type Standard EXP(X) REAL(4) X REAL(4) Fortran 77 and later DEXP(X) REAL(8) X REAL(8) Fortran 77 and later CEXP(X) COMPLEX(4) X COMPLEX(4) Fortran 77 and later ZEXP(X) ...
过去编写Fortran程序基本上都是在Linux下进行,近期由于需要也开始在Windows下编写。这里只整理一下准备工作。 (1)首先是在Windows10操作系统下搭建Visual Studio 2019+Base+HPC平台,其采用Intel Fortran编译器。完全免费! 这些软件的下载地址如下: Visual Studio 2019 Community Version ( https://link.zhihu. ...
最小值:minval 最大值:maxval 【举例1】 program minmax implicit none real(8)::L(3) integer i open(unit=3,file=data.in) do i=1, 3, 1 read(3,*) L(i) end do write(*,*) the minimum value: , minval(a) write(*,*) t ...