4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

C style output in maxima

Posted at

maximaにはfortranが直接読める形で出力する機能があるが、C言語用には出力してくれない。
そこで拡張機能を導入する。cform.lispをダウンロードして
/usr/share/maxima/*.*.*/src
以下に保存する(srcディレクトリは無いので作る)。これでmaxima内で

load(cform.lisp);

で読みこみ(warningが出る)

cform(x^2);

とすると

pow(x,2);

としてくれる。

4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?