yuuho.wiki

カオスの欠片を集めて知恵の泉を作る

ユーザ用ツール

サイト用ツール


tips:fortran:start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
tips:fortran:start [2021/05/27 19:31] yuuhotips:fortran:start [2021/06/27 22:26] (現在) yuuho
行 12: 行 12:
  
   * ''implicit none'' は変数を宣言しないと使えない安全モードにfortranを変更する.   * ''implicit none'' は変数を宣言しないと使えない安全モードにfortranを変更する.
 +
 +=== コメントアウト ===
 +<code fortran>! ここに一行コメント</code>
  
 === 標準入出力 === === 標準入出力 ===
行 44: 行 47:
 </code> </code>
  
-=== do ===+=== while === 
 + 
 +<code fortran> 
 +do while (abs(xnew-xold) > epsilon) 
 +    xold=xnew 
 +    xnew=xold-f(xold)/df(xold) 
 +    write(*,1000) "result=",xnew 
 +end do 
 +</code> 
 + 
 +=== for === 
 +<code> 
 +do 変数=初期値,最終値[,刻み幅] 
 +    繰り返したい処理 
 +end do 
 +</code> 
tips/fortran/start.1622143909.txt.gz · 最終更新: 2021/05/27 19:31 by yuuho