「GNU Octave 2.1.x 日本語マニュアル/数値積分」の版間の差分

削除された内容 追加された内容
quad_options (opt, val)
[r, amat, bmat, q] = colloc (n, "left", "right")
81 行
[Loadable Function]
 
直交配列法の微分と積分の重み行列を、J. Villadsen and M. L. Michelsen,
Compute derivative and integral weight matrices for orthogonal collocation using the subroutines given in J. Villadsen and M. L. Michelsen, Solution of Differential Equation Models by Polynomial Approximation.
''Solution of Differential Equation Models by Polynomial Approximation''
、で与えられたサブルーチンを使って計算します。
二階微分方程式を、'''colloc'''の重み行列を生成して、解く例題を示します。
 
::<math>
Here is an example of using colloc to generate weight matrices for solving the second order differential equation u0!Ru00 = 0 with the boundary conditions u(0) = 0 and u(1) = 1.
u\prime - \alpha u\prime\prime = 0
 
</math>
First, we can generate the weight matrices for n points (including the endpoints of the interval), and incorporate the boundary conditions in the right hand side (for a specific value of R).
境界条件
::<math>u(0) = 0</math> and <math>u(1) = 1</math>
まず、n個の点(区間の端点を含む)のための重み行列を生成し、右辺の境界条件を(<math>\alpha</math>の特定の値の場合)に組み込むことができます。
 
<source lang=matlab>
96 ⟶ 105行目:
</source>
 
根rにおける解は、
Then the solution at the roots r is
 
<source lang=matlab>