マンデルブローさんがお亡くなりに。。。ご冥福をお祈り&Excel VBAでマンデルブロー集合を描いてみる。
大学生時代、本当によくフラクタルのお絵かきをした。そのマンデルブローさんがお亡くなりになった。時代を感じるなあ。もうフラクタルというのは一般用語になったんだろうなあ。
http://www.asahi.com/obituaries/update/1017/TKY201010170111.html
ご冥福をお祈りします。
そこでExcel VBAでマンデルブロー集合を描いてみた。3次元グラフだと結構きれい。
リストは載せるほどでもないですが、一応付けとくと、
Private Sub CommandButton1_Click()
Dim a As Double, b As Double
Dim i As Integer, j As Integer, k As Integer
Dim amax As Double, amin As Double
Dim bmax As Double, bmin As Double
Dim x As Double, y As Double, xdummy As Double, ydummy As Double
Dim n As Integer, kmax As Integer
amax = 1.2
amin = -2
bmax = 1.2
bmin = -1.2
n = 250
kmax = 200
Application.ScreenUpdating = False
For i = 0 To n
For j = 0 To n
a = amin + (amax - amin) * i / n
b = bmin + (bmax - bmin) * j / n
x = 0
y = 0
col = kmax
For k = 1 To kmax
xdummy = x
ydummy = y
x = x * x - y * y + a
y = 2 * xdummy * ydummy + b
If Sqr(x * x + y * y) > 2 Then
col = k
Exit For
End If
Next k
Worksheets("Sheet1").Cells(j + 2, i + 2) = col
Next j
Next i
Application.ScreenUpdating = True
End Sub
« 神話の里 白うさぎ(道の駅)へ。 | トップページ | 「インシテミル」を読んだ。 »
「学問・資格」カテゴリの記事
- 高周波・RFニュース 2025年1月23日 5G Americasの新ホワイトペーパー「AI時代のセルラーネットワークの信頼性とセキュリティ」、KyoceraAVXの新薄膜フィルタ、TDKの車載/一般用C0G特性1,250V 3225サイズMLCC、Semtechの5G LPWAモジュール(2025.01.23)
- 高周波・RFニュース 2025年1月22日 everythingRFマガジンにMarkiの宇宙向けミリ波部品の記事、NordicのRF52810を使った太陽電池で動き暗闇でも3週間持つアセットトトラッカー、KnowlessのMRIの技術解説記事、Broadcomの3.5Dパッケージング解説(2025.01.22)
- UnityでVisual C#用の数値計算ライブラリMath.NET numericsを使う(3) 3D画面に補間(Interpolate) を行って表示する。リニア、3次スプライン、有理関数などいろいろ使える。(2025.01.23)
Nice site, nice and easy on the eyes and great content too.
投稿: nursing jobs | 2010年11月11日 (木) 10時25分
The mortgage loans suppose to be important for people, which would like to start their own organization. In fact, that's not hard to get a financial loan.
投稿: FosterKitty21 | 2011年7月23日 (土) 17時57分