3 Help
3 ヘルプ
- ドキュメンテーション
- ヘルプのための関数と変数
3.1 ドキュメンテーション
Maximaオンラインユーザーズマニュアルは、さまざまな形式で表示できます。Maxima の対話型プロンプトから、ユーザマニュアルは ? コマンド (describe 関数) によってプレーンテキストとして表示されます。ユーザーズマニュアルは、infoビューアプログラムではinfoハイパーテキストとして表示され、通常のWebブラウザではWebページとして表示されます。
example は、多くの Maxima 関数の例を表示します。例えば
(%i1) example (integrate);
yields
(%i2) test(f):=block([u],u:integrate(f,x),ratsimp(f-diff(u,x)))
(%o2) test(f) := block([u], u : integrate(f, x),
ratsimp(f - diff(u, x)))
(%i3) test(sin(x))
(%o3) 0
(%i4) test(1/(x+1))
(%o4) 0
(%i5) test(1/(x^2+1))
(%o5) 0
and additional output.
Categories: Console interaction ·
3.2 ヘルプの関数と変数
関数: apropos (name)
名前nameに出現する Maxima の名前を検索します。name は文字列または記号である必要があります。したがって、apropos (exp) は、expand、exp、exponentialize など、名前の一部として exp を持つすべてのフラグと関数のリストを返します。したがって、Maxima コマンドまたは変数の名前の一部しか覚えていない場合は、このコマンドを使用して名前の残りの部分を見つけることができます。同様に、「apropos (tr_)と入力すると、トランスレータに関連する多くのスイッチ (そのほとんどが で始まっていますtr_.
apropos("") は、すべての Maxima 名のリストを返します。
apropos は、名前が見つからない場合、空のリスト [] を返します。
例:
名前にgammaを含むすべてのマキシマシンボルを表示します。
(%i1) apropos("gamma");
(%o1) [%gamma, Gamma, gamma_expand, gammalim, makegamma,
prefer_gamma_incomplete, gamma, gamma-incomplete, gamma_incomplete,
gamma_incomplete_generalized, gamma_incomplete_generalized_regularized,
gamma_incomplete_lower, gamma_incomplete_regularized, log_gamma]
The same example, using the symbol gamma, rather than the string: (%i2) apropos(gamma); (%o2) [%gamma, Gamma, gamma_expand, gammalim, makegamma, prefer_gamma_incomplete, gamma, gamma-incomplete, gamma_incomplete, gamma_incomplete_generalized, gamma_incomplete_generalized_regularized, gamma_incomplete_lower, gamma_incomplete_regularized, log_gamma]
The number of symbols in the current Maxima session. This will vary.
(%i3) length(apropos(""));
(%o3) 2338
Categories: Help ·
関数: demo (filename)
filenameの Maxima 式を評価し、結果を表示します。demo は、各式を評価した後に一時停止し、ユーザーが改行を入力した後に続行します。(Xmaxima で実行している場合、demo ではセミコロン ; の後にキャリッジリターンが表示される場合があります。
demo は、file_search_demoディレクトリのリストを検索して filename を見つけます。ファイルに接尾辞 dem が付いている場合は、接尾辞を省略できます。file_searchも参照してください.
demo はその引数を評価します。demo は、デモ ファイルの名前を返します。
例:
(%i1) demo ("disol");
batching /home/wfs/maxima/share/simplification/disol.dem
At the _ prompt, type ';' followed by enter to get next demo
(%i2) load("disol")
_ (%i3) exp1 : a (e (g + f) + b (d + c)) (%o3) a (e (g + f) + b (d + c))
_
(%i4) disolate(exp1, a, b, e) (%t4) d + c
(%t5) g + f
(%o5) a (%t5 e + %t4 b)
_
Categories: Help · Console interaction · File input ·
関数: describe
describe (string) describe (string, exact) describe (string, inexact)
describe(string) は describe(string, exact) と同等です.
describe(string, exact) は、タイトルが string と等しい (大文字と小文字を区別しない) アイテムを見つけます (そのようなアイテムがある場合)。
describe(string, inexact) は、タイトルにstringを含むすべての文書化されたアイテムを検索します。そのようなアイテムが複数ある場合、Maxima は表示するアイテムを選択するようにユーザーに求めます。
対話型プロンプトでは、? foo (? と foo の間にスペースを入れます) は describe("foo", exact) と等価で、?? foo は describe("foo", inexact) と等価です.
describe("", inexact) は、オンラインマニュアルに記載されているすべてのトピックのリストを生成します。
describe は引数を引用符で囲みます。describeは、何らかのドキュメントが見つかった場合はtrueを返し、それ以外の場合はfalseを返します.
ブラウザを使用してトピックを表示するには、output_format_for_helpを参照してください。HTML ファイルの表示方法を構成するには、ブラウザーとurl_baseも参照してください。
ドキュメントも参照してください.
(%i1) ?? integ 0: Functions and Variables for Elliptic Integrals 1: Functions and Variables for Integration 2: Introduction to Elliptic Functions and Integrals 3: Introduction to Integration 4: askinteger (Functions and Variables for Simplification) 5: integerp (Functions and Variables for Miscellaneous Options) 6: integer_partitions (Functions and Variables for Sets) 7: integrate (Functions and Variables for Integration) 8: integrate_use_rootsof (Functions and Variables for Integration) 9: integration_constant_counter (Functions and Variables for Integration) 10: nonnegintegerp (Functions and Variables for linearalgebra) Enter space-separated numbers, `all' or `none': 7 8
-- Function: integrate (<expr>, <x>)
-- Function: integrate (<expr>, <x>, <a>, <b>)
Attempts to symbolically compute the integral of <expr> with
respect to <x>. `integrate (<expr>, <x>)' is an indefinite
integral, while `integrate (<expr>, <x>, <a>, <b>)' is a
definite integral, [...]
-- Option variable: integrate_use_rootsof
Default value: `false'
When `integrate_use_rootsof' is `true' and the denominator of
a rational function cannot be factored, `integrate' returns
the integral in a form which is a sum over the roots (not yet
known) of the denominator.
[...]
この例では、アイテム 7 と 8 が選択されています (出力は [...] で示されるように短縮されます)。all または none allすべての項目を選択するか、none選択しないかを選択できます。これには、それぞれ a または n と省略できます。
Categories: Help · Console interaction ·
オプション変数: output_format_for_help
デフォルト値: text
output_format_for_help describe 表示がどのように役立つかを制御します。
output_format_for_help は、次のいずれかの値に設定できます。
text
ヘルプは、端末に送信されるプレーンテキストとして表示されます。これがデフォルトです。
html
ヘルプは、マニュアルのHTMLバージョンを表示するためにブラウザを使用して表示されます。
frontend
ヘルプは、フロントエンドのヘルプシステムを使用して表示されます。フロントエンドが実行されていない場合は、エラーが通知されます。たとえば、wxMaxima と xmaxima は maxima のフロントエンドです。
その他の値はエラーです。
browser」およびurl_base」も参照してください.
Categories: Help · Global variables ·
オプション変数: browser
これは、HTML ファイルを開くために使用するコマンドを指定します。これは <cmd> ~A という形式の書式文字列で、~A は HTML ファイルの URL に置き換えられ、<cmd> は引数を受け取り、指定された URL にブラウザを開くプログラムです。
Windows では、デフォルト設定は "start ~A" で、デフォルトのブラウザを使用して html ファイルを表示します。デフォルトのブラウザの代わりにFirefox、Chrome、またはInternet Explorerを使用する場合は、start firefox ~A、start chrome ~A、start iexplore ~Aに置き換えることができます。
他のOSでは、ユーザーのデフォルトのブラウザが自動的に使用されるべきです(Linux/Unixではxdg-openを使用し、MacOSではopenを使用]。browser以外のブラウザを使用するように browser 変数を設定することもできます (例: browser:"firefox '~A'"; または browser:"chromium '~A'";
output_format_for_help、およびurl_baseも参照してください.
Categories: Help · Global variables ·
オプション変数: url_base
ブラウザを使用してヘルプを表示する場合、url_base は使用する URL を定義します。デフォルトでは、ドキュメント用の html ファイルを含むディレクトリを指す file:// パスになります。ただし、http://localhost:8080/ または HTML ヘルプ ファイルを含む他の URL を使用することもできます。ただし、トピックを html ファイル内の適切な場所に変換するにはテーブルが必要なため、これらの URL は info ディレクトリにまったく同じ HTML ファイルを持つ必要があります。
「output_format_for_help」およびbrowser」も参照してください.
Categories: Help · Global variables ·
関数: example
example (topic) example ()
example (topic) は、シンボルまたは文字列であるtopicの例をいくつか表示します。if、do、lambda などの演算子の例を取得するには、引数が文字列である必要があります (example ("do")example では大文字と小文字は区別されません。ほとんどのトピックは関数名です。
example () は、認識されたすべてのトピックのリストを返します。
例を含むファイルの名前は、グローバル・オプション変数 manual_demo で指定され、デフォルトは "manual.demo" です.
example はその引数を引用します。example は done を返します。ただし、例が見つからないか引数がない場合 (引数がない場合) は、認識されたすべてのトピックexample
例:
(%i1) example(append);
(%i2) append([y+x,0,-3.2],[2.5e+20,x])
(%o2) [y + x, 0, - 3.2, 2.5e+20, x]
(%o2) done
(%i3) example("lambda");
(%i4) lambda([x,y,z],x^2+y^2+z^2)
2 2 2
(%o4) lambda([x, y, z], x + y + z )
(%i5) %(1,2,a)
2
(%o5) a + 5
(%i6) 1+2+a
(%o6) a + 3
(%o6) done
Categories: Help · Console interaction ·
Option variable: manual_demo
デフォルト値: "manual.demo"
manual_demo は、関数 example の例を含むファイルの名前を指定します。exampleを見る.
Categories: Help · Global variables ·
Previous: Documentation [Contents][Index]