<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Maths is smart, maths is art.



#glutton_backlink_24345 {font-family: “Verdana”; font-size: 11px; clear: left; color: #BBBBBB;}  #glutton_backlink_24345 a {color: #BBBBBB;}#glutton_counter_24345 {height: 20px} 121 </description><title>Maths is smART</title><generator>Tumblr (3.0; @mathsissmart)</generator><link>http://mathsissmart.tumblr.com/</link><item><title>Star Fractals cont.</title><description>&lt;p&gt;Here is the last of the star fractals followed by the Matlab code. If you have any questions about the code please ask.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-11-01at115442.png" height="400" width="493"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-11-01at115309.png" height="427" width="498"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-25at224400.png" height="385" width="520"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-11-01at115558.png" height="431" width="512"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-11-01at113634.png" height="391" width="526"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-11-01at114046.png" height="349" width="508"/&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;function A = starsfractal(itterations, N, d, x_center, y_center, radius, direction, null_pt)&lt;br/&gt;hold on&lt;br/&gt;start = (N-2)*pi/(2*N) + mod(N,2)*direction*pi/N;&lt;br/&gt;t = linspace(start,start+2*pi,N+1);&lt;br/&gt;t(N+1)=[];&lt;br/&gt;x = radius*cos(t);&lt;br/&gt;y = radius*sin(t);&lt;br/&gt;for i=1:N&lt;br/&gt;    X = [];&lt;br/&gt;    Y = [];&lt;br/&gt;    for j=1:N+1&lt;br/&gt;        X = [X x(mod(i+j*d,N)+1)];&lt;br/&gt;        Y = [Y y(mod(i+j*d,N)+1)];&lt;br/&gt;    end&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, [0.2&amp;#160;0.4&amp;#160;0.3]);&lt;br/&gt;    plot(X + x_center,Y + y_center)&lt;br/&gt;end&lt;br/&gt;&lt;br/&gt;if itterations ~= 1&lt;br/&gt;    star_pos = 1:N;&lt;br/&gt;    if null_pt ~= 0&lt;br/&gt;        star_pos(null_pt) = [];&lt;br/&gt;    end&lt;br/&gt;    for i=star_pos&lt;br/&gt;        j = mod(i+floor(N/2)+direction*mod(N,2),N);&lt;br/&gt;        if j == 0&lt;br/&gt;            j = j+N;&lt;br/&gt;        end&lt;br/&gt;        starsfractal(itterations - 1, N,d,4*x(i)/3 + x_center, 4*y(i)/3 + y_center, radius/3, mod(direction + 1,2),j);&lt;br/&gt;    end&lt;br/&gt;end&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There are so many inputs because of the recursive construction of the fractals. The only things you need to worry about is itterations, N and d. You should set the other values as default:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;x_center = 0&lt;/li&gt;
&lt;li&gt;y_center = 0&lt;/li&gt;
&lt;li&gt;radius = 1&lt;/li&gt;
&lt;li&gt;direction = 1&lt;/li&gt;
&lt;li&gt;null_pt = 0&lt;/li&gt;
&lt;/ul&gt;</description><link>http://mathsissmart.tumblr.com/post/12194282129</link><guid>http://mathsissmart.tumblr.com/post/12194282129</guid><pubDate>Tue, 01 Nov 2011 08:11:00 -0400</pubDate><category>maths</category><category>star</category><category>fractal</category><category>code</category><category>matlab</category><category>math</category><category>mathematics</category><category>stars</category></item><item><title>How cool is this star fractal :)</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_ltqrnhSMmd1r14o6ao1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;How cool is this star fractal :)&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/12001498034</link><guid>http://mathsissmart.tumblr.com/post/12001498034</guid><pubDate>Thu, 27 Oct 2011 16:30:53 -0400</pubDate><category>fractal</category><category>star</category><category>math</category><category>art</category><category>maths</category><category>matlab</category><category>cool</category></item><item><title>Star Fractal</title><description>&lt;p&gt;It is quite hard to define what a fractal is&amp;#8230; Here is what wikipedia says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A &lt;strong&gt;fractal&lt;/strong&gt; has been defined as &amp;#8220;a rough or fragmented geometric shape that can be split into parts, each of which is (at least approximately) a reduced-size copy of the whole,&amp;#8221;a property called self-similarity.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;As well as fractals appearing in nature (which I think is quite amazing), there are many famous &amp;#8220;man-made&amp;#8221; fractals which are created by some given algorithm. One example of these is the star fractal. Basically you draw some star polygon and at each point draw the same star polygon &amp;#8216;the other way up&amp;#8217; of some smaller propotion&amp;#8230;. continue until you can&amp;#8217;t see your stars turn to dots :).&lt;/p&gt;
&lt;p&gt;I didn&amp;#8217;t want to make the picture myself so I decided to get matlab to do it for me, I have used the simple pentagram as my star-polygon but I have coded the program so I can easily use any star-polygon:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-25at224154.png" height="425" width="654"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-25at224217.png" height="538" width="661"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-25at224233.png" height="543" width="680"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-25at224119.png" height="557" width="695"/&gt;&lt;/p&gt;
&lt;p&gt;I will post some more star-fractals tomorrow as well as the code if you would like it. Please enjoy :)&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/11923157555</link><guid>http://mathsissmart.tumblr.com/post/11923157555</guid><pubDate>Tue, 25 Oct 2011 18:25:00 -0400</pubDate><category>Maths</category><category>math</category><category>fractal</category><category>star fractal</category><category>art</category><category>matlab</category></item><item><title>Ordered Squiggliness</title><description>&lt;p&gt;I hope you enjoy the following pictures created in matlab. Although it seems these pictures are disordered they were created with only the functions sin,cos,exp and sqrt.  No randomness was used!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A ball of string&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-24at172813.png" height="476" width="611"/&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rhubarb Crumble&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-24at173238.png" height="456" width="584"/&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pain Wheel&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-24at172630.png" height="463" width="597"/&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/11867986160</link><guid>http://mathsissmart.tumblr.com/post/11867986160</guid><pubDate>Mon, 24 Oct 2011 12:42:49 -0400</pubDate><category>Maths</category><category>art</category><category>math</category><category>matlab</category></item><item><title>Name these shapes</title><description>&lt;p&gt;I like creating new shapes using some algorithm. I don&amp;#8217;t think the following shapes have a name so please help me come up with one, alternatively if they already have a name let know.&lt;/p&gt;
&lt;p&gt;I have created the following shapes using this algorithm, given an integer N:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Place N points uniformly around a circle (starting from the top of the circle).&lt;/li&gt;
&lt;li&gt;Connect each point with a line to the top and bottom of the circle.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Examples:&lt;/p&gt;
&lt;p&gt;N = 25&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-19at215049.png" height="391" width="505"/&gt;&lt;/p&gt;

&lt;p&gt;N = 50&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-19at214946.png" height="424" width="517"/&gt;&lt;/p&gt;

&lt;p&gt;N = 100&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-19at215108.png" height="393" width="507"/&gt;&lt;/p&gt;

&lt;p&gt;N = 1000&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-10-19at215026.png" height="391" width="505"/&gt;&lt;/p&gt;


&lt;p&gt;Question: What are the angles created by two lines meeting at an end point?&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/11664707408</link><guid>http://mathsissmart.tumblr.com/post/11664707408</guid><pubDate>Wed, 19 Oct 2011 16:56:00 -0400</pubDate><category>maths</category><category>art</category><category>math</category><category>shapes</category><category>matlab</category></item><item><title>Everyone was too smart for me and guessed the right family of...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lta0vziQvb1r14o6ao1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Everyone was too smart for me and guessed the right family of distributions, that is the beta distribution. How about these? If you don’t know just enjoy the picture :)&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/11620472394</link><guid>http://mathsissmart.tumblr.com/post/11620472394</guid><pubDate>Tue, 18 Oct 2011 15:31:00 -0400</pubDate><category>math</category><category>maths</category><category>matlab</category><category>mathematics</category></item><item><title>These plots came from the same family of probability...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lt88sqdvQX1r14o6ao1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;These plots came from the same family of probability distributions. Can you tell me which one it is?&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/11581472192</link><guid>http://mathsissmart.tumblr.com/post/11581472192</guid><pubDate>Mon, 17 Oct 2011 16:26:50 -0400</pubDate></item><item><title>A pretty picture!</title><description>&lt;p&gt;I hope you like this picture, this picture was wholey created using matlab! Maybe not the most productive thing to use matlab for but it was fun and I like the end result:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-30at143643.png" height="429" width="569"/&gt;&lt;/p&gt;
&lt;p&gt;If you would like to see more pictures like this just give me a scene or scenario and I will have a go. Thanks! If any of you wanted the code here it is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;%sky&lt;br/&gt;clf&lt;br/&gt;x = [-3:0.1:13];&lt;br/&gt;hold on&lt;br/&gt;for i=1:0.2:13&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, [rand*50  rand*55+200 rand*100]./255);&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, [rand*50 rand*100 rand*55+200]./255);&lt;br/&gt;    plot(x,i);&lt;br/&gt;end&lt;br/&gt;&lt;br/&gt;%sun&lt;br/&gt;nopoints = 20;&lt;br/&gt;x = linspace(-1.88,1.88,nopoints);&lt;br/&gt;dt = 0.05;&lt;br/&gt;n = 1/dt;&lt;br/&gt;theta = 2*pi*dt;&lt;br/&gt;A = [cos(theta) -sin(theta); sin(theta) cos(theta)];&lt;br/&gt;y = cos(x);&lt;br/&gt;for i=1:n&lt;br/&gt;    for j=1:nopoints&lt;br/&gt;        v = [x(j);y(j)];&lt;br/&gt;        vnew  = A*v;&lt;br/&gt;        x(j) = vnew(1);&lt;br/&gt;        y(j) = vnew(2);&lt;br/&gt;    end&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, [rand*50+205 rand*50+205 rand*50]./255);&lt;br/&gt;    plot(x+10,y+10)&lt;br/&gt;end&lt;br/&gt;&lt;br/&gt;%tree trunk&lt;br/&gt;x1 = [-1:0.01:-0.2];&lt;br/&gt;x2 = [0.2:0.01:1];&lt;br/&gt;set(gca, &amp;#8216;ColorOrder&amp;#8217;, [139&amp;#160;69&amp;#160;19]./255);&lt;br/&gt;for i=0:0.1:0.4&lt;br/&gt;    plot(x1+i,0.2./(x1.^2))&lt;br/&gt;end&lt;br/&gt;for i=0:0.1:0.4&lt;br/&gt;    plot(x2-i,0.2./(x2.^2))&lt;br/&gt;end&lt;br/&gt;&lt;br/&gt;%tree top&lt;br/&gt;t = linspace(0,16*pi,1000);&lt;br/&gt;for i = 0.5:0.1:2&lt;br/&gt;    x = (2*cos(t)+i*cos(8*t))./2;&lt;br/&gt;    y = (sin(t)+i*sin(8*t))./2+5;&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, [rand*100 rand*50+205 rand*50]./255);&lt;br/&gt;    plot(x,y)&lt;br/&gt;end&lt;br/&gt;&lt;br/&gt;%grass&lt;br/&gt;x = [-3:0.1:13];&lt;br/&gt;for i=-4:0.05:1&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, [rand*50  rand*55+200 rand*100]./255);&lt;br/&gt;    plot(x,i);&lt;br/&gt;end&lt;br/&gt;&lt;br/&gt;%rainbow&lt;br/&gt;n = 140;&lt;br/&gt;ColourMatrix = zeros(n+2,3);&lt;br/&gt;for i=1:n/7&lt;br/&gt;    ColourMatrix(i,:) = [255&amp;#160;153*7*i/n 0]./255;&lt;br/&gt;    ColourMatrix(i+n/7,:) = [255 (255-153)*7*i/n+153&amp;#160;0]./255;&lt;br/&gt;    ColourMatrix(i+2*n/7,:) = [-255*7*i/n+255&amp;#160;255&amp;#160;0]./255;&lt;br/&gt;    ColourMatrix(i+3*n/7,:) = [-255*7*i/n+255 -255*7*i/n+255&amp;#160;255*7*i/n]./255;&lt;br/&gt;    ColourMatrix(i+4*n/7,:) = [0&amp;#160;65*7*i/n (106-255)*7*i/n+255]./255;&lt;br/&gt;    ColourMatrix(i+5*n/7,:) = [143*7*i/n -65*7*i/n+65 (255-106)*7*i/n+106]./255;&lt;br/&gt;    ColourMatrix(i+6*n/7,:) = [(255-143)*7*i/n+143&amp;#160;255*i/n 255]./255;&lt;br/&gt;end&lt;br/&gt;t = linspace(0,pi,n);&lt;br/&gt;for r=linspace(5,6,n)&lt;br/&gt;    x = (11-r)/2*cos(t)+9;&lt;br/&gt;    y = (11-r)/2*sin(t)+0.8;&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;,ColourMatrix(floor((r-5)*n+1),:));&lt;br/&gt;    plot(x,y)&lt;br/&gt;end&lt;br/&gt;hold off&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://mathsissmart.tumblr.com/post/9620020037</link><guid>http://mathsissmart.tumblr.com/post/9620020037</guid><pubDate>Wed, 31 Aug 2011 03:07:00 -0400</pubDate><category>art</category><category>math</category><category>maths</category><category>mathematics</category><category>matlab</category></item><item><title>Magic Eye
I got alot of good response from the picture I created...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lqqozvs77j1r14o6ao1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Magic Eye&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I got alot of good response from the picture I created on Gnuplot I decided to try and make another one. Again this was a simple code produced with C and copied into Gnuplot terminal, it kind of looks like one of those magic eye pictures don’t you think? Perhaps if you stare at it long enough it will spell something out to you… If so let me know :)&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/9584227716</link><guid>http://mathsissmart.tumblr.com/post/9584227716</guid><pubDate>Tue, 30 Aug 2011 07:52:00 -0400</pubDate><category>maths</category><category>math</category><category>mathematics</category><category>gnuplot</category><category>C</category><category>magic eye</category><category>art</category></item><item><title>Gnuplot</title><description>&lt;p&gt;I have only recently started using Gnuplot (literally only for a few weeks) but combined with C it is a powerful way of creating nice images. I used this simple code in C:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br/&gt;&lt;br/&gt;int main()    &lt;br/&gt;{&lt;br/&gt;    int i;&lt;br/&gt;    printf(&amp;#8220;plot [0:10][1:9] &amp;#92;&amp;#8221;);&lt;br/&gt;    for(i = 0; i &amp;lt; 200&amp;#160;; i++)&lt;br/&gt;        printf(&amp;#8220;sin(x)+(%f) with filledcurve x2, &amp;#92;\n&amp;#8221;, (double) i/20);&lt;br/&gt;    &lt;br/&gt;    printf(&amp;#8220;sin(x)+10 with filledcurve x2&amp;#8221;);&lt;br/&gt;    return(0);&lt;br/&gt;}&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Then I copied the output into Gnuplot and got the following result:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-28at204131.png" height="368" width="528"/&gt;&lt;/p&gt;
&lt;p&gt;Obviously very simple but I will try to master Gnuplot and post some really cool pictures!&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/9510631087</link><guid>http://mathsissmart.tumblr.com/post/9510631087</guid><pubDate>Sun, 28 Aug 2011 14:52:00 -0400</pubDate><category>maths</category><category>math</category><category>C</category><category>gnuplot</category><category>art</category></item><item><title>Double Rainbow
Double rainbow all the way across the sky!</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lqeadvjc2S1r14o6ao1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Double Rainbow&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Double rainbow all the way across the sky!&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/9300709178</link><guid>http://mathsissmart.tumblr.com/post/9300709178</guid><pubDate>Tue, 23 Aug 2011 15:05:00 -0400</pubDate><category>maths</category><category>mathematics</category><category>math</category><category>art</category><category>double rainbow</category><category>matlab</category></item><item><title>RainbowThis was actually quite a challenge to do, I had to...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lqdakoQbzI1r14o6ao1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Rainbow&lt;br/&gt;&lt;/strong&gt;This was actually quite a challenge to do, I had to create a colour matrix that created a gradual change to each colour in the rainbow. Here is the code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;clf&lt;br/&gt;hold on&lt;br/&gt;n = 140;&lt;br/&gt;ColourMatrix = zeros(n+2,3);&lt;br/&gt;for i=1:n/7&lt;br/&gt;    ColourMatrix(i,:) = [255 153*7*i/n 0]./255;&lt;br/&gt;    ColourMatrix(i+n/7,:) = [255 (255-153)*7*i/n+153 0]./255;&lt;br/&gt;    ColourMatrix(i+2*n/7,:) = [-255*7*i/n+255 255 0]./255;&lt;br/&gt;    ColourMatrix(i+3*n/7,:) = [-255*7*i/n+255 -255*7*i/n+255 255*7*i/n]./255;&lt;br/&gt;    ColourMatrix(i+4*n/7,:) = [0 65*7*i/n (106-255)*7*i/n+255]./255;&lt;br/&gt;    ColourMatrix(i+5*n/7,:) = [143*7*i/n -65*7*i/n+65 (255-106)*7*i/n+106]./255;&lt;br/&gt;    ColourMatrix(i+6*n/7,:) = [(255-143)*7*i/n+143 255*i/n 255]./255;&lt;br/&gt;end&lt;br/&gt;t = linspace(0,pi,n);&lt;br/&gt;for r=linspace(5,6,n)&lt;br/&gt;    x = (11-r)*cos(t);&lt;br/&gt;    y = (11-r)*sin(t);&lt;br/&gt;    set(gca, ‘ColorOrder’, ColourMatrix(floor((r-5)*n+1),:));&lt;br/&gt;    plot(x,y)&lt;br/&gt;end&lt;br/&gt;hold off&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I hope I explain well enough, if you ever want to ask me something you can email me on mathsissmart@gmail.com&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/9284417523</link><guid>http://mathsissmart.tumblr.com/post/9284417523</guid><pubDate>Tue, 23 Aug 2011 02:12:00 -0400</pubDate><category>maths</category><category>math</category><category>mathematics</category><category>rainbow</category><category>art</category><category>matlab</category></item><item><title>More Brownian Motion</title><description>&lt;p&gt;I generated Brownian motion in one dimension and changed the colour matrix to obtain different textures. Here are some of the results:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-21at004845.png" height="212" width="297"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-21at004925.png" height="200" width="300"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-21at004943.png" height="169" width="299"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-21at004741.png" height="290" width="298"/&gt;&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/9182341613</link><guid>http://mathsissmart.tumblr.com/post/9182341613</guid><pubDate>Sat, 20 Aug 2011 18:57:00 -0400</pubDate><category>maths</category><category>mathematics</category><category>math</category><category>matlab</category><category>art</category></item><item><title>Coolmathguy</title><description>&lt;p&gt;Hey guys! I would like to thank you again for all the support you have showed me. I know this is still a very small blog but I am proud of the interest that I have gotten so far. I have just been posted on the website &lt;a href="http://coolmathguy.com/"&gt;http://coolmathguy.com/&lt;/a&gt; which is a big deal for me as I have been visiting this website regularly for a while now. You can find the post at the following link: &lt;a href="http://coolmathguy.com/little-math-art-tumblr"&gt;http://coolmathguy.com/little-math-art-tumblr&lt;/a&gt; &lt;br/&gt;&lt;br/&gt;Now I just wanted to show you one more picture I created using the code from &amp;#8220;Around and around&amp;#8221; which I posted yesterday. Am sorry for the it being too repeatitive but I promise something more interesting coming soon! Thanks again :)&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-16at134325.png" height="395" width="438"/&gt;&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/9007384336</link><guid>http://mathsissmart.tumblr.com/post/9007384336</guid><pubDate>Tue, 16 Aug 2011 16:06:00 -0400</pubDate><category>maths</category><category>math</category><category>mathematics</category><category>coolmathguy</category><category>matlab</category></item><item><title>Around and around! cont.</title><description>&lt;p&gt;Some more pictures using the code that I posted yesterday.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;exp(x)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/exponential.png"/&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;cos^2(x)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/cosx2.png"/&gt;&lt;/p&gt;
&lt;p&gt;And the following one which is my favourite:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;cos(x)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Cosx.png"/&gt;&lt;/p&gt;
&lt;p&gt;Thank you all for the support and encouragement :)&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/8969171510</link><guid>http://mathsissmart.tumblr.com/post/8969171510</guid><pubDate>Mon, 15 Aug 2011 18:33:00 -0400</pubDate><category>math</category><category>maths</category><category>mathematics</category><category>art</category><category>matlab</category></item><item><title>Around and around!</title><description>&lt;p&gt;About a week ago I blogged about randomness and one of the pictures I posted looked like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/x-1.png"/&gt;&lt;/p&gt;
&lt;p&gt;This was created using the following code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;nopoints = 20;&lt;br/&gt;x = linspace(-1,1,nopoints);&lt;br/&gt;dt = 0.005;&lt;br/&gt;n = 1/dt;&lt;br/&gt;theta = 2*pi*dt;&lt;br/&gt;A = [cos(theta) -sin(theta); sin(theta) cos(theta)];&lt;br/&gt;y = x;&lt;br/&gt;clf&lt;br/&gt;hold on&lt;br/&gt;for i=1:n&lt;br/&gt;    for j=1:nopoints&lt;br/&gt;        v = [x(j);y(j)];&lt;br/&gt;        vnew  = A*v;&lt;br/&gt;        x(j) = vnew(1);&lt;br/&gt;        y(j) = vnew(2);&lt;br/&gt;    end&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, rand(1,3));&lt;br/&gt;    plot(x+10,y+10)&lt;br/&gt;end&lt;br/&gt;hold off&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Granted this is a bit complicated for the effected created but I wanted to change the 7th line to another function and just by that simple change create more interesting pictures. Well that is what I have done, and here are a few of the consequences:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;y = x^3&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/x3.png" height="432" width="551"/&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;y = tan(x)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Tanx.png" height="367" width="479"/&gt;&lt;/p&gt;
&lt;p&gt;I will post more tomorrow, including my favourite! For now,  what function do you think I used for this picture:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/x22.png"/&gt;&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/8917207840</link><guid>http://mathsissmart.tumblr.com/post/8917207840</guid><pubDate>Sun, 14 Aug 2011 15:35:00 -0400</pubDate><category>maths</category><category>art</category><category>math</category><category>mathematics</category><category>cool</category><category>matlab</category></item><item><title>Diamonds</title><description>&lt;p&gt;I am going to be really busy for the next 2 weeks so won&amp;#8217;t be able to post anything too amazing but I have some really exciting projects that I have had to put on hold. Anyways, here are a few cool pictures:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-08at153831.png" height="461" width="579"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-08at152958.png" height="457" width="576"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-08at152926.png" height="458" width="577"/&gt;&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/8905680927</link><guid>http://mathsissmart.tumblr.com/post/8905680927</guid><pubDate>Sun, 14 Aug 2011 09:03:00 -0400</pubDate><category>maths</category><category>diamonds</category><category>math</category><category>art</category><category>matlab</category></item><item><title>
points=linspace(0,2*pi,200);clfhold onfor i = points   ...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lpsjjsRp8v1r14o6ao1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;blockquote&gt;
&lt;p&gt;points=linspace(0,2*pi,200);&lt;br/&gt;clf&lt;br/&gt;hold on&lt;br/&gt;for i = points&lt;br/&gt;    t=linspace(0,2*pi,100);&lt;br/&gt;    x = cos(i)+sin(t);&lt;br/&gt;    y = sin(i)+cos(t);&lt;br/&gt;    set(gca, ‘ColorOrder’, (rand(1,3)+1)./2);&lt;br/&gt;    plot(x,y)&lt;br/&gt;end&lt;br/&gt;    x = 2*sin(t);&lt;br/&gt;    y = 2*cos(t);&lt;br/&gt;    set(gca, ‘ColorOrder’, [0 0 0]);&lt;br/&gt;    p = plot(x,y)&lt;br/&gt;    set(p,’Color’,’black’,’LineWidth’,2)&lt;br/&gt;hold off&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://mathsissmart.tumblr.com/post/8802256761</link><guid>http://mathsissmart.tumblr.com/post/8802256761</guid><pubDate>Thu, 11 Aug 2011 21:16:00 -0400</pubDate><category>maths</category><category>matlab</category><category>art</category><category>pretty</category><category>colourful</category></item><item><title>A simulation made in Matlab of 10 single realiations of a...</title><description>&lt;iframe width="400" height="225" src="http://www.youtube.com/embed/MGQCwXAEw5A?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;A simulation made in Matlab of 10 single realiations of a two-dimensional Wiener process.&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/8783263937</link><guid>http://mathsissmart.tumblr.com/post/8783263937</guid><pubDate>Thu, 11 Aug 2011 13:17:02 -0400</pubDate><category>maths</category><category>math</category><category>art</category><category>code</category><category>matlab</category><category>brownian motion</category><category>randomness</category></item><item><title>Brownian motion/Wiener Process</title><description>&lt;p&gt;I don&amp;#8217;t know much about the history of this subject. All I know (or what I think I know) is that Robert Brown was a botanist who observed the random movement of pollen grains in water. The continuous and jerky movement of such a particle is what we describe as Brownian motion and the mathematical representation of this is called the Wiener process in honour of Norbert Wiener.&lt;/p&gt;
&lt;p&gt;The cool thing about the Wiener process is that it is everywhere continuous but nowhere differentiable. Although a computer could never totally simulate brownian motion I like to create pictures using the idea of Brownian motion.&lt;/p&gt;
&lt;p&gt;The trajectories of 10 particles in two dimensions starting from the origin:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1141.photobucket.com/albums/n590/mathsissmart/Screenshot2011-08-08at193115.png" height="485" width="583"/&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;clf&lt;br/&gt;t = 2.0;&lt;br/&gt;dt = 0.005;&lt;br/&gt;n = floor(t/dt);&lt;br/&gt;ntraj = 20;&lt;br/&gt;T = linspace(0,2*pi,100);&lt;br/&gt;circle_x = 10*sin(T)&lt;br/&gt;circle_y = &lt;br/&gt;x = zeros(ntraj,n+1);&lt;br/&gt;y = zeros(ntraj,n+1);&lt;br/&gt;tspan = [0:dt:t];&lt;br/&gt;for i = 1:n&lt;br/&gt;    x(:,i+1) = x(:,i) + sqrt(dt)*randn(ntraj,1);&lt;br/&gt;    y(:,i+1) = y(:,i) + sqrt(dt)*randn(ntraj,1);&lt;br/&gt;end&lt;br/&gt;hold on&lt;br/&gt;for i=1:ntraj&lt;br/&gt;    set(gca, &amp;#8216;ColorOrder&amp;#8217;, rand(1,3));&lt;br/&gt;    plot(x(i,:),y(i,:))&lt;br/&gt;end&lt;br/&gt;hold off&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I will be posting an animation of 10 particles of a two dimension Wiener process.&lt;/p&gt;</description><link>http://mathsissmart.tumblr.com/post/8753915563</link><guid>http://mathsissmart.tumblr.com/post/8753915563</guid><pubDate>Wed, 10 Aug 2011 19:41:59 -0400</pubDate><category>maths</category><category>maths</category><category>matlab</category><category>art</category><category>code</category><category>brownian motion</category><category>wiener process</category></item></channel></rss>
