{"id":12706,"date":"2015-05-29T12:51:47","date_gmt":"2015-05-29T04:51:47","guid":{"rendered":"http:\/\/13tech.com.cn\/?p=12706"},"modified":"2015-05-29T15:16:26","modified_gmt":"2015-05-29T07:16:26","slug":"%e3%80%90%e6%8a%80%e8%83%bd%e3%80%91%e6%9c%89%e6%b2%a1%e6%9c%89%e4%b8%80%e6%ae%b5%e4%bb%a3%e7%a0%81%ef%bc%8c%e8%ae%a9%e4%bd%a0%e8%a7%89%e5%be%97%e4%ba%ba%e7%b1%bb%e7%9a%84%e6%99%ba%e6%85%a7%e4%b9%9f","status":"publish","type":"post","link":"https:\/\/www.uxren.cn\/?p=12706","title":{"rendered":"\u3010\u6280\u80fd\u3011\u6709\u6ca1\u6709\u4e00\u6bb5\u4ee3\u7801\uff0c\u8ba9\u4f60\u89c9\u5f97\u4eba\u7c7b\u7684\u667a\u6167\u4e5f\u53ef\u4ee5\u7480\u74a8\u65e0\u6bd4\uff1f"},"content":{"rendered":"<p>\u4f5c\u8005\uff1aMatrix67<a href=\"http:\/\/www.matrix67.com\/blog\/\" rel=\"home\">\u00a0<\/a><\/p>\n<p>Kyle McCormick \u5728 StackExchange \u4e0a\u53d1\u8d77\u4e86\u4e00\u4e2a\u53eb\u505a\u00a0<a href=\"http:\/\/codegolf.stackexchange.com\/questions\/35569\/tweetable-mathematical-art\">Tweetable Mathematical Art<\/a>\u00a0\u7684\u6bd4\u8d5b\uff0c\u53c2\u8d5b\u8005\u9700\u8981\u7528\u4e09\u6761\u63a8\u8fd9\u4e48\u957f\u7684\u4ee3\u7801\u6765\u751f\u6210\u4e00\u5f20\u56fe\u7247\u3002\u5177\u4f53\u5730\u8bf4\uff0c\u53c2\u8d5b\u8005\u9700\u8981\u7528 C++ \u8bed\u8a00\u7f16\u5199 RD \u3001 GR \u3001 BL \u4e09\u4e2a\u51fd\u6570\uff0c\u6bcf\u4e2a\u51fd\u6570\u90fd\u4e0d\u80fd\u8d85\u8fc7 140 \u4e2a\u5b57\u7b26\u3002\u6bcf\u4e2a\u51fd\u6570\u90fd\u4f1a\u63a5\u5230 i \u548c j \u4e24\u4e2a\u6574\u578b\u53c2\u6570\uff080 \u2264 i, j \u2264 1023\uff09\uff0c\u7136\u540e\u9700\u8981\u8fd4\u56de\u4e00\u4e2a 0 \u5230 255 \u4e4b\u95f4\u7684\u6574\u6570\uff0c\u8868\u793a\u4f4d\u4e8e (i, j) \u7684\u50cf\u7d20\u70b9\u7684\u989c\u8272\u503c\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5982\u679c RD(0, 0) \u548c GR(0, 0) \u8fd4\u56de\u7684\u90fd\u662f 0 \uff0c\u4f46 BL(0, 0) \u8fd4\u56de\u7684\u662f 255 \uff0c\u90a3\u4e48\u56fe\u50cf\u7684\u6700\u5de6\u4e0a\u89d2\u90a3\u4e2a\u50cf\u7d20\u5c31\u662f\u84dd\u8272\u3002\u53c2\u8d5b\u8005\u7f16\u5199\u7684\u4ee3\u7801\u4f1a\u88ab\u63d2\u8fdb\u4e0b\u9762\u8fd9\u6bb5\u7a0b\u5e8f\u5f53\u4e2d\uff08\u6211\u505a\u4e86\u4e00\u4e9b\u7ec6\u5fae\u7684\u6539\u52a8\uff09\uff0c\u6700\u7ec8\u4f1a\u751f\u6210\u4e00\u4e2a\u5927\u5c0f\u4e3a 1024\u00d71024 \u7684\u56fe\u7247\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>1.\u9996\u5148\u662f\u4e00\u4e2a\u6765\u81ea Martin B\u00fcttner \u7684\u4f5c\u54c1\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/11d61f93fad9003cb8e662b828eea8e7_b.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12714\" alt=\"11d61f93fad9003cb8e662b828eea8e7_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/11d61f93fad9003cb8e662b828eea8e7_b.jpg\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/11d61f93fad9003cb8e662b828eea8e7_b.jpg 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/11d61f93fad9003cb8e662b828eea8e7_b-150x150.jpg 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/11d61f93fad9003cb8e662b828eea8e7_b-300x300.jpg 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/11d61f93fad9003cb8e662b828eea8e7_b-160x160.jpg 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u5b83\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>return (char)(_sq(cos(atan2(j-512,i-512)\/2))*255);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>return (char)(_sq(cos(atan2(j-512,i-512)\/2-2*acos(-1)\/3))*255);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>return (char)(_sq(cos(atan2(j-512,i-512)\/2+2*acos(-1)\/3))*255);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>2.\u540c\u6837\u662f\u6765\u81ea Martin B\u00fcttner \u7684\u4f5c\u54c1\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/31185d6591b8d8969128cda8b94f57ef_b.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12713\" alt=\"31185d6591b8d8969128cda8b94f57ef_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/31185d6591b8d8969128cda8b94f57ef_b.png\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/31185d6591b8d8969128cda8b94f57ef_b.png 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/31185d6591b8d8969128cda8b94f57ef_b-150x150.png 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/31185d6591b8d8969128cda8b94f57ef_b-300x300.png 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/31185d6591b8d8969128cda8b94f57ef_b-160x160.png 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u8fd9\u662f\u76ee\u524d\u6682\u65f6\u6392\u540d\u7b2c\u4e00\u7684\u4f5c\u54c1\u3002\u5b83\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>#define r(n)(rand()%n)<\/p>\n<p>static char c[1024][1024];return!c[i][j]?c[i][j]=!r(999)?r(256):RD((i+r(2))%1024,(j+r(2))%1024):c[i][j];<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>static char c[1024][1024];return!c[i][j]?c[i][j]=!r(999)?r(256):GR((i+r(2))%1024,(j+r(2))%1024):c[i][j];<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>static char c[1024][1024];return!c[i][j]?c[i][j]=!r(999)?r(256):BL((i+r(2))%1024,(j+r(2))%1024):c[i][j];<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>3.\u4e0b\u9762\u8fd9\u5f20\u56fe\u7247\u4ecd\u7136\u51fa\u81ea Martin B\u00fcttner \u4e4b\u624b\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/b288d9509ab468d2366789b68ad19d26_b.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12712\" alt=\"b288d9509ab468d2366789b68ad19d26_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/b288d9509ab468d2366789b68ad19d26_b.jpg\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/b288d9509ab468d2366789b68ad19d26_b.jpg 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/b288d9509ab468d2366789b68ad19d26_b-150x150.jpg 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/b288d9509ab468d2366789b68ad19d26_b-300x300.jpg 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/b288d9509ab468d2366789b68ad19d26_b-160x160.jpg 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u96be\u4ee5\u60f3\u8c61\uff0c Mandelbrot \u5206\u5f62\u56fe\u5f62\u5c45\u7136\u53ef\u4ee5\u53ea\u7528\u8fd9\u4e48\u4e00\u70b9\u4ee3\u7801\u753b\u51fa\uff1a<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>float x=0,y=0;int k;for(k=0;k++&lt;256;){float a=x*x-y*y+(i-768.0)\/512;y=2*x*y+(j-512.0)\/512;x=a;if(x*x+y*y&gt;4)break;}return log(k)*47;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>float x=0,y=0;int k;for(k=0;k++&lt;256;){float a=x*x-y*y+(i-768.0)\/512;y=2*x*y+(j-512.0)\/512;x=a;if(x*x+y*y&gt;4)break;}return log(k)*47;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>float x=0,y=0;int k;for(k=0;k++&lt;256;){float a=x*x-y*y+(i-768.0)\/512;y=2*x*y+(j-512.0)\/512;x=a;if(x*x+y*y&gt;4)break;}return 128-log(k)*23;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>4.Manuel Kasten \u4e5f\u5236\u4f5c\u4e86\u4e00\u4e2a Mandelbrot \u96c6\u7684\u56fe\u7247\uff0c\u4e0e\u521a\u624d\u4e0d\u540c\u7684\u662f\uff0c\u8be5\u56fe\u63cf\u7ed8\u7684\u662f Mandelbrot \u96c6\u5728\u67d0\u5904\u5c40\u90e8\u653e\u5927\u540e\u7684\u7ed3\u679c\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/5b878f5a13ead11f7aeaa2780f62fb03_b.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12711\" alt=\"5b878f5a13ead11f7aeaa2780f62fb03_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/5b878f5a13ead11f7aeaa2780f62fb03_b.jpg\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5b878f5a13ead11f7aeaa2780f62fb03_b.jpg 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5b878f5a13ead11f7aeaa2780f62fb03_b-150x150.jpg 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5b878f5a13ead11f7aeaa2780f62fb03_b-300x300.jpg 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5b878f5a13ead11f7aeaa2780f62fb03_b-160x160.jpg 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u5b83\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>double a=0,b=0,c,d,n=0;<\/p>\n<p>while((c=a*a)+(d=b*b)&lt;4&amp;&amp;n++&lt;880)<\/p>\n<p>{b=2*a*b+j*8e-9-.645411;a=c-d+i*8e-9+.356888;}<\/p>\n<p>return 255*pow((n-80)\/800,3.);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>double a=0,b=0,c,d,n=0;<\/p>\n<p>while((c=a*a)+(d=b*b)&lt;4&amp;&amp;n++&lt;880)<\/p>\n<p>{b=2*a*b+j*8e-9-.645411;a=c-d+i*8e-9+.356888;}<\/p>\n<p>return 255*pow((n-80)\/800,.7);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>double a=0,b=0,c,d,n=0;<\/p>\n<p>while((c=a*a)+(d=b*b)&lt;4&amp;&amp;n++&lt;880)<\/p>\n<p>{b=2*a*b+j*8e-9-.645411;a=c-d+i*8e-9+.356888;}<\/p>\n<p>return 255*pow((n-80)\/800,.5);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>5.\u8fd9\u662f Manuel Kasten \u7684\u53e6\u4e00\u4f5c\u54c1\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/8316e5fcd05248fc7f88a3420c1ff96a_b.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12710\" alt=\"8316e5fcd05248fc7f88a3420c1ff96a_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/8316e5fcd05248fc7f88a3420c1ff96a_b.jpg\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/8316e5fcd05248fc7f88a3420c1ff96a_b.jpg 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/8316e5fcd05248fc7f88a3420c1ff96a_b-150x150.jpg 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/8316e5fcd05248fc7f88a3420c1ff96a_b-300x300.jpg 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/8316e5fcd05248fc7f88a3420c1ff96a_b-160x160.jpg 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u751f\u6210\u8fd9\u5f20\u56fe\u7247\u7684\u4ee3\u7801\u5f88\u6709\u610f\u601d\uff1a\u51fd\u6570\u4f9d\u9760 static \u53d8\u91cf\u6765\u63a7\u5236\u7ed8\u753b\u7684\u8fdb\u7a0b\uff0c\u5b8c\u5168\u6ca1\u6709\u7528\u5230 i \u548c j \u8fd9\u4e24\u4e2a\u53c2\u6570\uff01<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>static double k;k+=rand()\/1.\/RAND_MAX;int l=k;l%=512;return l&gt;255?511-l:l;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>static double k;k+=rand()\/1.\/RAND_MAX;int l=k;l%=512;return l&gt;255?511-l:l;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>static double k;k+=rand()\/1.\/RAND_MAX;int l=k;l%=512;return l&gt;255?511-l:l;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>6.\u8fd9\u662f\u6765\u81ea githubphagocyte \u7684\u4f5c\u54c1\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/5f0f8d811e64fd9ba38e6f893d3eb3b5_b.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12709\" alt=\"5f0f8d811e64fd9ba38e6f893d3eb3b5_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/5f0f8d811e64fd9ba38e6f893d3eb3b5_b.jpg\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5f0f8d811e64fd9ba38e6f893d3eb3b5_b.jpg 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5f0f8d811e64fd9ba38e6f893d3eb3b5_b-150x150.jpg 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5f0f8d811e64fd9ba38e6f893d3eb3b5_b-300x300.jpg 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/5f0f8d811e64fd9ba38e6f893d3eb3b5_b-160x160.jpg 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u5b83\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>float s=3.\/(j+99);<\/p>\n<p>float y=(j+sin((i*i+_sq(j-700)*5)\/100.\/DIM)*35)*s;<\/p>\n<p>return (int((i+DIM)*s+y)%2+int((DIM*2-i)*s+y)%2)*127;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>float s=3.\/(j+99);<\/p>\n<p>float y=(j+sin((i*i+_sq(j-700)*5)\/100.\/DIM)*35)*s;<\/p>\n<p>return (int(5*((i+DIM)*s+y))%2+int(5*((DIM*2-i)*s+y))%2)*127;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>float s=3.\/(j+99);<\/p>\n<p>float y=(j+sin((i*i+_sq(j-700)*5)\/100.\/DIM)*35)*s;<\/p>\n<p>return (int(29*((i+DIM)*s+y))%2+int(29*((DIM*2-i)*s+y))%2)*127;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>7.\u8fd9\u662f\u6765\u81ea githubphagocyte \u7684\u53e6\u4e00\u4e2a\u4f5c\u54c1\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/6441aa111a15bb18f094fca166d794f9_b.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12708\" alt=\"6441aa111a15bb18f094fca166d794f9_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/6441aa111a15bb18f094fca166d794f9_b.png\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/6441aa111a15bb18f094fca166d794f9_b.png 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/6441aa111a15bb18f094fca166d794f9_b-150x150.png 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/6441aa111a15bb18f094fca166d794f9_b-300x300.png 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/6441aa111a15bb18f094fca166d794f9_b-160x160.png 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u8fd9\u662f\u4e00\u5f20\u4f7f\u7528 diffusion-limited aggregation \u6a21\u578b\u5f97\u5230\u7684\u56fe\u7247\uff0c\u7a0b\u5e8f\u8fd0\u884c\u8d77\u6765\u8981\u8017\u8d39\u4e0d\u5c11\u65f6\u95f4\u3002\u4ee3\u7801\u5f88\u6709\u610f\u601d\uff1a\u5de7\u5999\u5730\u5229\u7528\u5b8f\u5b9a\u4e49\uff0c\u6253\u7834\u4e86\u51fd\u6570\u4e0e\u51fd\u6570\u4e4b\u95f4\u7684\u754c\u9650\uff0c\u4e09\u6bb5\u4ee3\u7801\u7684\u5b57\u6570\u9650\u5236\u4fbf\u80fd\u5408\u5728\u4e00\u8d77\u4f7f\u7528\u4e86\u3002<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>#define D DIM<\/p>\n<p>#define M m[(x+D+(d==0)-(d==2))%D][(y+D+(d==1)-(d==3))%D]<\/p>\n<p>#define R rand()%D<\/p>\n<p>#define B m[x][y]<\/p>\n<p>return(i+j)?256-(BL(i,j))\/2:0;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>#define A static int m[D][D],e,x,y,d,c[4],f,n;if(i+j&lt;1){for(d=D*D;d;d&#8211;){m[d%D][d\/D]=d%6?0:rand()%2000?1:255;}for(n=1<\/p>\n<p>return RD(i,j);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>A;n;n++){x=R;y=R;if(B==1){f=1;for(d=0;d&lt;4;d++){c[d]=M;f=f&lt;c[d]?c[d]:f;}if(f&gt;2){B=f-1;}else{++e%=4;d=e;if(!c[e]){B=0;M=1;}}}}}return m[i][j];<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>8.\u6700\u540e\u8fd9\u5f20\u56fe\u6765\u81ea Eric Tressler\uff1a<\/strong><\/h4>\n<p><a href=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/459d72f9e2b030afae014662c34125c3_b.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-12707\" alt=\"459d72f9e2b030afae014662c34125c3_b\" src=\"http:\/\/13tech.com.cn\/wp-content\/uploads\/2015\/05\/459d72f9e2b030afae014662c34125c3_b.jpg\" width=\"600\" height=\"600\" srcset=\"https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/459d72f9e2b030afae014662c34125c3_b.jpg 600w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/459d72f9e2b030afae014662c34125c3_b-150x150.jpg 150w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/459d72f9e2b030afae014662c34125c3_b-300x300.jpg 300w, https:\/\/www.uxren.cn\/wp-content\/uploads\/2015\/05\/459d72f9e2b030afae014662c34125c3_b-160x160.jpg 160w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u8fd9\u662f\u7531 logistic \u6620\u5c04\u5f97\u5230\u7684 Feigenbaum \u5206\u5c94\u56fe\u3002\u548c\u521a\u624d\u4e00\u6837\uff0c\u5bf9\u5e94\u7684\u4ee3\u7801\u4e5f\u5de7\u5999\u5730\u5229\u7528\u4e86\u5b8f\u5b9a\u4e49\u6765\u8282\u7701\u5b57\u7b26\uff1a<\/p>\n<p>unsigned char RD(int i,int j){<\/p>\n<p>#define A float a=0,b,k,r,x<\/p>\n<p>#define B int e,o<\/p>\n<p>#define C(x) x&gt;255?255:x<\/p>\n<p>#define R return<\/p>\n<p>#define D DIM<\/p>\n<p>R BL(i,j)*(D-i)\/D;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char GR(int i,int j){<\/p>\n<p>#define E DM1<\/p>\n<p>#define F static float<\/p>\n<p>#define G for(<\/p>\n<p>#define H r=a*1.6\/D+2.4;x=1.0001*b\/D<\/p>\n<p>R BL(i,j)*(D-j\/2)\/D;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>unsigned char BL(int i,int j){<\/p>\n<p>F c[D][D];if(i+j&lt;1){A;B;G;a&lt;D;a+=0.1){G b=0;b&lt;D;b++){H;G k=0;k&lt;D;k++){x=r*x*(1-x);if(k&gt;D\/2){e=a;o=(E*x);c[e][o]+=0.01;}}}}}R C(c[j][i])*i\/D;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<address>\u6587\u7ae0\u53ca\u56fe\u7247\u6765\u6e90\uff1a<a href=\"http:\/\/www.matrix67.com\/blog\/archives\/6039\">http:\/\/www.matrix67.com<\/a><\/address>\n<address><span style=\"color: #999999;\">=======================================================================================================================================================<\/span><\/address>\n<p><span style=\"color: #3366ff;\">\u4e0d\u77e5\u4e0d\u89c9\u672c\u7f51\u7ad9\u5df2\u7ecf\u4e00\u5c81\u534a\u4e86\uff0c \u5728\u8fd9\u91cc\u5c0f\u7f16\u8981\u611f\u8c22\u90a3\u4e48\u4e00\u5982\u65e2\u5f80\u652f\u6301\u672c\u7ad9\u7684\u6cb9\u8336\u4eba\u3002<\/span><\/p>\n<p><span style=\"color: #3366ff;\">\u540c\u65f6\u4e5f\u6b22\u8fce\u5404\u4f4d\u559c\u6b2213\u592a\u4fdd\u7684\u540c\u5b66\u4eec\u628a\u81ea\u5df1\u6536\u96c6\u7684\u597d\u8d44\u6e90\u4e00\u8d77\u5206\u4eab\u7ed9\u66f4\u591a\u6cb9\u8336\u4eba\uff0c\u5982\u679c\u6709\u610f\u613f\u5728\u7f51\u7ad9\u53d1\u5e03\u539f\u521b\u6027\u7684\u6587\u7ae0\u4e5f\u6b22\u8fce\u968f\u65f6\u548c\u6211\u4eec\u8054\u7cfb\uff01\u6211\u4eec\u6536\u5230\u90ae\u4ef6\u540e\u4f1a\u8ba4\u771f\u7684\u67e5\u770b\u548c\u56de\u590d\u3002<\/span><\/p>\n<p><span style=\"color: #3366ff;\">\u6295\u7a3f\u90ae\u7bb1\uff1a<a href=\"mailto:contact@13tech.com.cn\"><span style=\"color: #3366ff;\">contact@13tech.com.cn<\/span><\/a><\/span><\/p>\n<address><span style=\"color: #999999;\">==============================================================<\/span><\/address>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1aMatrix67\u00a0 Kyle Mc&#46;&#46;&#46;<\/p>\n","protected":false},"author":102,"featured_media":12714,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[47,51],"tags":[1747,1748,1380],"_links":{"self":[{"href":"https:\/\/www.uxren.cn\/index.php?rest_route=\/wp\/v2\/posts\/12706"}],"collection":[{"href":"https:\/\/www.uxren.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uxren.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uxren.cn\/index.php?rest_route=\/wp\/v2\/users\/102"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uxren.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12706"}],"version-history":[{"count":4,"href":"https:\/\/www.uxren.cn\/index.php?rest_route=\/wp\/v2\/posts\/12706\/revisions"}],"predecessor-version":[{"id":12735,"href":"https:\/\/www.uxren.cn\/index.php?rest_route=\/wp\/v2\/posts\/12706\/revisions\/12735"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.uxren.cn\/index.php?rest_route=\/wp\/v2\/media\/12714"}],"wp:attachment":[{"href":"https:\/\/www.uxren.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uxren.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uxren.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}