Start |
||
Long型変数nの 宣言と初期化 |
||
Double型変数aの 宣言と初期化 |
||
Double型変数bの 宣言と初期化 |
||
Double型変数dx 宣言と初期化 |
||
Double型変数xiの 宣言 |
||
Double型変数Sの 宣言と初期化 |
||
Long型変数i (繰返し変数)の宣言 |
||
i = 1, n-1, 1 |
xi = a + i * dx |
|
S = S + f(xi) |
||
Sの表示 |
||
End |
Start |
|
Long型変数nの Double型変数a,b,dxの 宣言と初期化 |
|
\( \displaystyle S = \sum_{i=1}^{n-1}f(x_i)\) \(x_i = a + i \times dx\) |
|
Sの表示 |
|
End |