LoginSignup
11
14

More than 3 years have passed since last update.

imaxima: emacs 上で数式のきれいな maxima を使う

Last updated at Posted at 2015-11-14

ふつうの maxima は便利だけど数式がきれいじゃない

Mathematica や Maple のフリー版として maxima を使うんだけど、ふつうの maxima はこんな感じで美しくない。

1.png

このままではイライラで罪のないキーボードがクラッシュされかねないので、imaxima を使う。
というわけで maxima の結果をTeXな感じで表示してくれる、emacs 上で走る imaxima をインストールする話。

imaxima のインストール

Ubuntu ユーザーなので Ubuntu での場合。とりあえず以下の5つ
$ sudo apt-get install emacs24 texlive texlive-math-extra maxima maxima-emacs
をインストール。emacs23 でも機能するはず。TeXのインストールはそれなりに長いかも。

次の3行を .emacs に追加

.emacs
(autoload 'imaxima "imaxima" "Frontend of Maxima CAS" t)
(autoload 'imath "imath" "Interactive Math mode" t)
(autoload 'imath-mode "imath" "Interactive Math mode" t)

これでOK。

使い方

$ emacs -f imaxima
で emacs の起動と同時に imaxima を起動。
emacs 上から立ち上げるには
M-x imaxima
でOK。これでめでたくきれいな式が出力され、世界に平和が訪れる。

2.png

終了する場合は
quit();
で imaxima を抜けて通常の emacs に戻ってくる。

参考文献

Easy Install on major Linux OS

11
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
14