erfc in Fortran Wiki
## Description `erfc(x)` computes the complementary error function of `x`, defined as $$ 1 - \\text{erf}(x) = 1 - \\frac{2}{\\sqrt{\\pi}} \\int_0^x e^{-t^2} dt. $$ ## Standard [[Fortran 2008]] and later ## Class [[Elemental function]] ## Syntax ~~~~~ result = erfc(x) ~~~~~ ## Arguments - `x` - The type shall be `real`. ## Return value The return value is of type `real` and of the same kind as `x`. It lies in the range 0ドル \\leq \\mathop{erfc}(x) \\leq 2$. ## Example ~~~~~ {: lang=fortran } program test_erfc real(8) :: x = 0.17_8 x = erfc(x) end program test_erfc ~~~~~ category: intrinsics
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル