HOME > テクニカルサポート > 製品 一覧 > SigmaPlot > ユーザーガイド > トランスフォーム関数一覧
ヒューリンクステクニカルサポート
皆様からのご質問のうち、よくある質問を掲載しました。
更新日: 14/05/08

root

関数 root を使用すると1変数の関数の根 (ルート) を有限区間から求めることができます。別の言葉で言い換えると、関数 root は、有限区間に限定された x に関する方程式 f (x) = 0 の解を求めます。この関数では、関数の定義されていない独立変数の特殊な値、すなわち、孤立特異点 (isolated singularity) を求めることもできます。

 

構文

rv = root(expr, variable, a, b, maxroots, type)

引数 expr には、解を求める方程式を定義します。この式に範囲または関数のリストを指定すると複数の方程式を同時に解くことができます。方程式は、式リストの各関数に =0 の等式を設定して定義します。引数 variable には、指定した各方程式で解く変数に対応する記号を指定します。すべての方程式で同一の変数が使用されます。引数 ab は、根の探索を実行する区間の左右の各端点です。

引数 maxrootstype はオプションです。maxroots は、最初の引数で指定した各関数を計算する根の最大数です。デフォルトの値は 1 に設定されています。引数 type には、2種類の出力のうちのいずれかを指定する数値を指定します。type = 0 に指定すると、根のみが返されます。type = 1 に指定すると、特異点のみが返されます。デフォルトの値は 0 に設定されています。

戻り値 (Return Value)、すなわち rv は、求められたすべての根のリストまたは範囲です。戻り値の数は、最初の引数で定義した各関数の maxroots の数と常に等しくなります。求められる根が maxroots の数より少ない場合、残りの戻り値は欠損値となります。欠損値を挿入する理由は、別の関数の出力と区別するためです。

 

役立つチップス

引数 maxroots の数を増やすと、規定区間における方程式のすべての解を求められる可能性が高くなります。また、関数 implicit の処理にかかる時間もそれだけ増加します。

ある方程式の解を複数探索する場合、関数 implicit は、maxroots で指定した区間を等間隔の部分区間に区切ります。そして、部分区間のそれぞれから厳密に1つの解を探索します。結果として、その方程式に与えられた区間において maxroots で指定した数以上の解が実際にあったとしても、関数 implicit は、maxroots よりも少ない解を返します。方程式の区間 ab におけるすべての解を求めるには、maxroots に (b - a)/delta よりも大きい値を設定するのが理想的です。ここで、delta は、すべての解に最も近い値を見積もります。

関数 implicit の出力は常にソートされ、引数 expr で指定した関数の根ごとに昇順で出力されます。

 

例 1

例 2

例 3

例 4

 

 

root

Use the root function to find the roots of a function of one variable over a finite interval. In other words, the root function solves equations of the form f(x) = 0, where x is restricted to lie in a finite interval. This function also has the capability of finding certain values of the independent variable where the function is undefined, known as isolated singularities.

Syntax

rv = root(expr, variable, a, b, maxroots, type)

The expr argument defines the equations to solve. The expression can specify a range or list of functions so that more than one equation can be solved at a time. The equations are defined by setting each function in the expression list equal to zero. The variable argument is the symbol for the variable you are solving for in each specified equation. The same variable is used for all equations. The a and b arguments are the left and right endpoints, respectively, of the interval over which the root search takes place.

The maxroots and type arguments are optional. Maxroots is the maximum number of roots to compute for each specified function in the first argument. The default value is 1. Type is a number that specifies one of two types of output. If type = 0, then only roots will be returned. If type = 1, then only singularities will be returned. The default value is 0.

The Return Value, or rv, is the list or range of all of the roots that were found. The number of values returned will always be equal to maxroots for each function specified in the first argument. If fewer roots than maxroots are found, then the remaining values returned will be missing values. The reason for inserting the missing values is so the output of the different functions can be distinguished.

Helpful Tips

Example 1

Example 2

Example 3

Example 4

It is assumed that the angular unit for this transform has been set to radians so that the value of x is interpreted in units of radians when finding the roots of g. In the output, the roots of function f are listed first, followed by the roots of the other two functions according to the order in which they appear in the list.

 

前のページにもどる