Risa/Asir mt_graph パッケージ mt_graph
@overfullrule=0pt
1. 関数マニュアル
1.1 概要
mt_graph.rr
に含まれる パッケージ mtg
, mtp
は
oxmgraph
を利用してグラフの三次元表示をおこなう関数の集合体.
1.2 Notation
1.3 主な関数
1.3.1 mtg.plot3d
- mtg.plot3d(formula)
:: formula のグラフを描画する.
- mtg.plot3d(formula | options)
:: formula のグラフを描画する. options で描画範囲などを指定する.
- return
リスト
- formula
式 または quote 型データ. x
, y
の関数.
- オプション
- domain
リスト. [[xmin,xmax],[ymin,ymax]]
- mesh
自然数. メッシュの分割数.
- fit
1 の時に (max+min)/2 が z=0 となるように移動する.
- 左ボタンをおしたままドラッグすると回転できる.
- グラフが表示されたら右クリックすることで表示形式を変更するためのメニューが表示される.
- short cut の M が便利 (拡大).
- Box に自動的にグラフを配置するので, 座標軸の原点が 0 とは限らない.
at マークと, dollar マークの座標は戻値の中に書かれている.
- 特異点の回避は自動ではない. よって特異点を含むグラフは不正確な可能性が高い.
| [1210] import("mt_graph.rr");
[1211] mtg.test2();
|
| [1210] import("mt_graph.rr");
[1211] mtg.plot3d(x^2-y^2);
|
| [1210] import("mt_graph.rr");
[1211] mtg.plot3d(x^2-y^2 | domain=[[-1,1],[1,1]]);
|
| [1210] import("mt_graph.rr");
[1211] def myfunc(X,Y) { if (X*Y < 0) return 0; else 1;}
[1212] mtg.plot3d(quote(myfunc(x,y)*x*y));
|
1.3.2 mtp.parametric_plot3d
- mtp.parametric_plot3d(formula)
:: formula のグラフを描画する.
- mtp.parametric_plot3d(formula | options)
:: formula のグラフを描画する. options で描画範囲なのを指定する.
- return
リスト
- formula
式 または quote 型データのリスト. s
, t
の関数.
- オプション
- domain
リスト. [[xmin,xmax],[ymin,ymax]]
- mesh
自然数. メッシュの分割数.
- fitting
値を 0 とすることで, z 方向の縮尺の自動調整をしない.
- 左ボタンをおしたままドラッグすると回転できる.
- グラフが表示されたら右クリックすることで表示形式を変更するためのメニューが表示される.
- short cut の M が便利 (拡大).
- Box に自動的にグラフを配置するので, 座標軸の原点が 0 とは限らない.
at マークと, dollar マークの座標は戻値の中に書かれている.
- 特異点の回避は自動ではない. よって特異点を含むグラフは不正確な可能性が高い.
| [1210] import("mt_graph.rr");
[1211] mtp.test5(); /* Klein bottle (8 figure) */
|
| [1210] import("mt_graph.rr");
[1211] mtp.parametric_plot3d([s,t,s^2-t^2]);
|
| [1210] import("mt_graph.rr");
[1211] def myfunc(X,Y) { if (X*Y < 0) return 0; else 1;}
[1212] mtp.parametric_plot3d([s,t,quote(myfunc(s,t)*s*t) | fitting=0);
|
Index
Table of Contents
Short Table of Contents
About This Document
This document was generated by Nobuki Takayama on June, 8 2017 using texi2html 1.76.
The buttons in the navigation panels have the following meaning:
Button |
Name |
Go to |
From 1.2.3 go to |
[ < ] |
Back |
previous section in reading order |
1.2.2 |
[ > ] |
Forward |
next section in reading order |
1.2.4 |
[ << ] |
FastBack |
beginning of this chapter or previous chapter |
1 |
[ Up ] |
Up |
up section |
1.2 |
[ >> ] |
FastForward |
next chapter |
2 |
[Top] |
Top |
cover (top) of document |
|
[Contents] |
Contents |
table of contents |
|
[Index] |
Index |
index |
|
[ ? ] |
About |
about (help) |
|
where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:
- 1. Section One
- 1.1 Subsection One-One
- 1.2 Subsection One-Two
- 1.2.1 Subsubsection One-Two-One
- 1.2.2 Subsubsection One-Two-Two
- 1.2.3 Subsubsection One-Two-Three
<== Current Position
- 1.2.4 Subsubsection One-Two-Four
- 1.3 Subsection One-Three
- 1.4 Subsection One-Four
This document was generated by Nobuki Takayama on June, 8 2017 using texi2html 1.76.