這是一種挺漂亮的曲面圖形,惋惜沒有找到太多的相關解釋.html
In differential equations, a breather surface is a mathematical surface relating to breathers.工具
其數學公式很複雜,參數方程爲:spa
where 0 < a < 1.code
維基的相關網址爲:http://en.wikipedia.org/wiki/Breather_surfacehtm
使用本身定義語法的腳本代碼生成數學圖形.相關軟件參見:數學圖形可視化工具,該軟件免費開源.QQ交流羣: 367752815blog
#http://xahlee.info/surface/breather_p/breather_p.html vertices = D1:100 D2:100 u = from -13.2 to 13.2 D1 v = from -37.4 to 37.4 D2 b = 0.4 r = 1 - b*b w = sqrt(r) d = b*((w*cosh[b*u])^2 + (b*sin[w*v])^2) y = -u + (2*r*cosh[b*u]*sinh[b*u])/d z = (2*w*cosh[b*u]*(-(w*cos[v]*cos[w*v]) - sin[v]*sin[w*v]))/d x = (2*w*cosh[b*u]*(-(w*sin[v]*cos[w*v]) + cos[v]*sin[w*v]))/d
使用隨機數ip
#http://en.wikipedia.org/wiki/Breather_surface vertices = D1:100 D2:100 u = from -13.2 to 13.2 D1 v = from -37.4 to 37.4 D2 a = rand2(0.1, 0.9) w = sqrt(1 - a*a) d = a*((w*cosh[a*u])^2 + (a*sin[w*v])^2) y = -u + (2*(1 - a*a)*cosh[a*u]*sinh[a*u])/d z = (2*w*cosh[a*u]*(-(w*cos[v]*cos[w*v]) - sin[v]*sin[w*v]))/d x = (2*w*cosh[a*u]*(-(w*sin[v]*cos[w*v]) + cos[v]*sin[w*v]))/d