ファイル:Lagrange polynomial.svg
提供: testwiki
ナビゲーションに移動
検索に移動
元のファイル (SVG ファイル、743 × 503 ピクセル、ファイルサイズ: 85キロバイト)
このファイルはウィキメディア・コモンズのものであり、他のプロジェクトで使用されている可能性があります。 ウィキメディア・コモンズでのファイル解説ページにある説明を以下に示します。
概要
| 解説Lagrange polynomial.svg |
English: This image shows, for four points ((−9, 5), (−4, 2), (−1, −2), (7, 9)), the (cubic) interpolation polynomial L(x) (dashed, black), which is the sum of the scaled basis polynomials y1ℓ1(x), y2ℓ2(x), y3ℓ3(x) and y4ℓ4(x) (colors). The interpolation polynomial passes through all four control points, and each scaled basis polynomial passes through its respective control point and is 0 where x corresponds to the other three control points. |
| 日付 | |
| 原典 | Self-made, based on Image:Lagrangepolys.png |
| 作者 | User:Glosser.ca |
| その他のバージョン | Based on Image:Lagrangepolys.png. |
Mathematica Code
colors = ColorData[97] /@ Range[4];
pts = {{\[Minus]9, 5}, {\[Minus]4, 2}, {\[Minus]1, \[Minus]2}, {7, 9}};
{xs, ys} = Transpose[pts];
Basis[pts_, x_] := Times @@ (x - DeleteCases[pts, #])/Times @@ (# - DeleteCases[pts, #]) & /@ pts
Plot[
{
Evaluate[ys*Basis[xs, x]],
Total[ys*Basis[xs, x]]
}, {x, -9, 7},
PlotStyle -> {Automatic, Automatic, Automatic, Automatic, Directive[Black, Dashed]},
Frame -> True,
Axes -> False,
ImageSize -> Large,
GridLines -> Automatic,
GridLinesStyle -> Directive[LightGray, Dashed],
PlotStyle -> Thick,
Epilog -> Table[{PointSize[0.02], ColorData[97][i], Point[pts[[i]]]}, {i,4}],
PlotLegends -> Placed[
LineLegend[{
Subscript[\[ScriptL], 1][x],
Subscript[\[ScriptL], 2][x],
Subscript[\[ScriptL], 3][x],
Subscript[\[ScriptL], 4][x],
L[x]
}, LegendLayout -> {"Row", 1}],
Top
],
FrameStyle -> Black
]
ライセンス
この作品の著作権者である私は、この作品を以下のライセンスで提供します。
| この文書は、フリーソフトウェア財団発行のGNUフリー文書利用許諾書 (GNU Free Documentation License) 1.2またはそれ以降のバージョンの規約に基づき、複製や再配布、改変が許可されます。不可変更部分、表紙、背表紙はありません。このライセンスの複製は、GNUフリー文書利用許諾書という章に含まれています。http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
| このファイルはクリエイティブ・コモンズ 表示-継承 3.0 非移植ライセンスのもとに利用を許諾されています。 | ||
| ||
| このライセンスのテンプレートは、GFDLのライセンス・アップデートによりこのファイルに追加されたものです。http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
あなたは上記のライセンスから、どれか一つ以上を選択できます。
キャプション
このファイルの内容を1行で記述してください
このファイルに描写されている項目
題材
26 12 2015
87,026 バイト
image/svg+xml
63f4f5ef917a641132a539413082c987d75fe2fa
ファイルの履歴
過去の版のファイルを表示するには、その版の日時をクリックしてください。
| 日時 | サムネイル | 寸法 | 利用者 | コメント | |
|---|---|---|---|---|---|
| 現在の版 | 2016年4月23日 (土) 19:29 | 743 × 503 (85キロバイト) | wikimediacommons>Rayhem | Swapped axis for frame; added legend. |
ファイルの使用状況
このファイルを使用しているページはありません。