3
2

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.

Maximaでマンデルブロ集合のGIFアニメーション作成

Last updated at Posted at 2014-07-20

はじめに

R言語でマンデルブロ集合のGIFアニメーション作成をちょっと前に見かけ、Maximaでやってみようと思い、やってみました。

for k:1 thru 15 do
mandelbrot ([iterations, k], [x, -2, 1], [y, -1.2, 1.2], [grid,400,400],[legend,false],[palette, [gradient, green, cyan, blue, violet]],[png_file,concat("mandel",sreverse(substring(sreverse(concat("0",k)),1,3)),".png")])$
system("convert -delay 10 ~/mandel*.png ~/mandel.gif")
system("open -a safari ~/mandel.gif")

まとめ

ゼロ付きでファイル名作るのにadd_zeroesなる関数を見つけるも、現状、何故か動かず、かなり回りくどい方法で0付きの数字を生成する羽目になりました。

R言語のそれの結果に近づけたかったのですが、力不足のようでした。!

関連投稿

関連記事

Maximaとは直接つながりはないけどその他関連記事

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?