国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
用MathCAD繪制美麗的分形圖像
MathCAD 是我最喜歡的數(shù)學軟件,它將數(shù)學的美與實際操作的便利完美的結合起來,這是它吸引像我這樣的完美主義者的魅力之源,它的數(shù)據(jù)展示方式,它的排版,它的內嵌程序的獨特形式,無一不體現(xiàn)著美與智慧的統(tǒng)一……
Fractals in Mathcad
Posted on April 10, 2012  |  by  samir
I first plotted the Mandelbrot set on a Spectrum 48k, sometime in my early teens. Writing the code probably took a few hours (hey…I never said I was fast at these things). I left my Spectrum running overnight, chugging away and number crunching. I woke up in the morning to find a highly-pixelated  image of the fractal, plotted in wonderful black and white. I beckoned my sister to witness the mathematical glory I had produced, but she was too busy watching Going Live.
Since those halcyon days, one of the first things I do when I learn a new programming language or maths tool is to plot a fractal (it’s my warped version of  ”Hello World”). For example, here’s an earlier Maple worksheet and blog I wrote about the Mandebrot set.
In my time, I’ve plotted Mandelbrot Sets, Julia Sets, Quanternion fractals, Koch triangles and more. However, I always drift back to the Mandelbrot set. The deeper you dive into its complex canyons, the more beauty you discover.
I won’t discuss the mathematics or the algorithms in detail, but here’s part of a Mathcad worksheet that generates the Mandelbrot set (the download link is at the bottom of this post)
The first program generates a matrix giving the number of iterations before each point in the set tends to infinity (i.e  is greater than a bailout value). The second program colours each point with custom RGB values; this is then plotted in a 2D plot.
A Mathcad routine to generate the Julia set follows the same process (again, the download link is at the bottom of this post).
Here’s a few colourful renderings of the Mandelbrot Set and the Julia Set I’ve generated using these Mathcad worksheets.  The colouring algorithm is where much of the artistry comes into play.  Just by tweaking a few numbers, you can produce remarkably different pictures.
These pictures were generated entirely inside Mathcad, with no other image editing.
So what are the downsides of using Mathcad for generating fractals? Mathcad’s an interpreted environment, so compiled C code will always be many orders of magnitude faster. However, a Mathcad worksheet is good for developing the initial algorithms – it’s a much more interactive, easy-to-use environment than a text editor and a compiler. Mathcad gives you much faster feedback on your algorithms than a traditional programming language.
Mathcad Worksheet for the Julia Set
Mathcad Worksheet for the Mandelbrot Set
本站僅提供存儲服務,所有內容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
如何在matlab中設置坐標軸自己想要的刻度
matlab 設置坐標軸的有效數(shù)字 - zjgtan - 博客園
Index of /algorithms
求助:如何讀GSEA plot圖
Names 對象 (Excel) | Microsoft Docs
bd-代碼復雜度-Kolmogorov complexity
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服