{"id":122,"date":"2009-12-19T17:27:19","date_gmt":"2009-12-20T00:27:19","guid":{"rendered":"http:\/\/sethjust.com\/?p=122"},"modified":"2010-12-23T16:49:16","modified_gmt":"2010-12-24T00:49:16","slug":"more-mandelbrot","status":"publish","type":"post","link":"https:\/\/sethjust.com\/2009\/12\/19\/more-mandelbrot\/","title":{"rendered":"More Mandelbrot"},"content":{"rendered":"

\"\"<\/a>I just recently revisited the M-Set code from my Perl Snippets<\/a> post. The code I had was pretty ugly, so I decided to rewrite it in Python. The result is not only a lot cleaner and easier to understand, but it’s also a lot faster:<\/p>\n

$ time python mandel.py > \\dev\\null\r\nreal\t0m0.051s\r\nuser\t0m0.036s\r\nsys\t0m0.010s\r\n$ time perl mandel.pl > \\dev\\null\r\nreal\t0m3.518s\r\nuser\t0m3.463s\r\nsys\t0m0.029s<\/pre>\n

You can find the code here<\/a>.<\/p>\n

This script works well for zooms, as long as you stay below a few thousand iterations. The following picture was generated with x=-1.1887204, y=-0.3032472, width=0.01 and 150 iterations.<\/p>\n

\"\"<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

I just recently revisited the M-Set code from my Perl Snippets post. The code I had was pretty ugly, so I decided to rewrite it in Python. The result is not only a lot cleaner and easier to understand, but it’s also a lot faster: $ time python mandel.py > \\dev\\null real 0m0.051s user 0m0.036s […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66,6,78,7],"tags":[28,29,160,77,161,84,159],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/posts\/122"}],"collection":[{"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":14,"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/posts\/122\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sethjust.com\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}