<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-2657764165367928128</id><updated>2009-10-13T01:47:16.757+01:00</updated><title type='text'>Barry's Mass Writing Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-2494625866230434056</id><published>2008-11-05T11:52:00.018Z</published><updated>2008-11-05T14:46:06.898Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='computer graphics'/><category scheme='http://www.blogger.com/atom/ns#' term='Anti-aliasing'/><category scheme='http://www.blogger.com/atom/ns#' term='Processing'/><title type='text'>Anti-aliasing in Processing</title><content type='html'>Over the last few days, I have started to play with &lt;a href="http://processing.org/"&gt;Processing&lt;/a&gt;, primarily to get a feel for its capabilities.&lt;br /&gt;&lt;br /&gt;On the whole, I am impressed by the simplicity.  It took me less than a minute to produce some (albeit simple) graphics.  The lack of the normal "clutter" associated with most programming languages is a big plus for those that just want to produce images.&lt;br /&gt;&lt;br /&gt;What I am less impressed with are some of the idiosyncrasies.  Two in particular revolve around the functions &lt;a href="http://processing.org/reference/loop_.html"&gt;loop()&lt;/a&gt;/&lt;a href="http://processing.org/reference/noLoop_.html"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;noLoop&lt;/span&gt;&lt;/span&gt;()&lt;/a&gt;, and &lt;a href="http://processing.org/reference/smooth_.html"&gt;smooth()&lt;/a&gt;/&lt;a href="http://processing.org/reference/noSmooth_.html"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;()&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The loop()/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;noLoop&lt;/span&gt;&lt;/span&gt;() functions control whether &lt;a href="http://processing.org/reference/draw_.html"&gt;draw()&lt;/a&gt; should be called once, or continually.  By default, Processing is set to loop().  This is fine for animated graphics, and applications with some user interaction (such as through keyboard or mouse events), but for simple static graphics it has two downsides.&lt;br /&gt;&lt;br /&gt;The first is on machine performance.  A quick look at a performance meter shows that the continual redrawing has its cost.  For simple applications, this may hardly be noticeable, but an application that involves any disk access (e.g. image reading) or complicated calculations is likely to noticeably impact machine performance.  It is therefore important to keep any operations that only need to be performed once in the &lt;a href="http://processing.org/reference/setup_.html"&gt;setup()&lt;/a&gt; function.&lt;br /&gt;&lt;br /&gt;The second downside is image quality, and this is where the smooth()/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;() functions come in.  The smooth()/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;() functions control &lt;a href="http://en.wikipedia.org/wiki/Anti-aliasing"&gt;anti-aliasing&lt;/a&gt;.  This is important in computer &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_5"&gt;graphics&lt;/span&gt;.   We have moved on from the &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_6"&gt;primitive&lt;/span&gt; computer &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_7"&gt;graphics&lt;/span&gt; of the early 1980s home computers such as the &lt;a href="http://en.wikipedia.org/wiki/ZX_Spectrum"&gt;Sinclair &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;ZX&lt;/span&gt;&lt;/span&gt; Spectrum&lt;/a&gt;, and yet the default in Processing is set to have the anti-aliasing switched off with an implied call to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;().&lt;br /&gt;&lt;br /&gt;To me, the default settings for these two functions are wrong.  Anybody new to Processing is going to start with simple, static images.  They will be looking at issues like ease of use, and image quality.  Surely it would be better to  default to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;noLoop&lt;/span&gt;&lt;/span&gt;() and smooth(), rather than loop() and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;() as is currently the case?&lt;br /&gt;&lt;br /&gt;This isn't just an academic argument either.  As I will show below, these settings have a very visible effect of results.&lt;br /&gt;&lt;br /&gt;Consider the following code.  The intent is to draw a black circle on a white background:&lt;br /&gt;&lt;pre&gt;void setup(){&lt;br /&gt;  size(140, 140);&lt;br /&gt;&lt;br /&gt;  background(255); // White&lt;br /&gt;  stroke(0); // Black&lt;br /&gt;&lt;br /&gt;  &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;strokeWeight&lt;/span&gt;&lt;/span&gt;(10);&lt;br /&gt;  &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;ellipseMode&lt;/span&gt;&lt;/span&gt;(CENTER);&lt;br /&gt;&lt;br /&gt;  smooth() or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;();&lt;br /&gt;  loop() or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;noLoop&lt;/span&gt;&lt;/span&gt;();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void draw(){&lt;br /&gt;  ellipse(70, 70, 120, 120);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;It will be noted that this code is not entirely syntactically correct. The smooth() or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;() and loop() or &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;noLoop&lt;/span&gt;&lt;/span&gt;() lines give 4 variations.  The table below shows the result of these variations:&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;th&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;noSmooth&lt;/span&gt;&lt;/span&gt;()&lt;/th&gt;&lt;th&gt;smooth()&lt;/th&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;th&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;noLoop&lt;/span&gt;&lt;/span&gt;()&lt;/th&gt;&lt;br /&gt;&lt;td valign="top"&gt;&lt;img src="http://2.bp.blogspot.com/_MovWHYojerg/SRGGF5dDxJI/AAAAAAAAAAs/qgoG16hRJ-M/s320/circle1.gif" alt="" border="0" /&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;img src="http://3.bp.blogspot.com/_MovWHYojerg/SRGGGNrbGXI/AAAAAAAAAA0/WtXJdN7rGfs/s320/circle2.gif" alt="" border="0" /&gt;&lt;br /&gt;Suggested default settings&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;loop()&lt;/th&gt;&lt;br /&gt;&lt;td valign="top"&gt;&lt;img src="http://1.bp.blogspot.com/_MovWHYojerg/SRGGGE6xfXI/AAAAAAAAAA8/tsrdu4Wex8E/s320/circle3.gif" alt="" border="0" /&gt;&lt;br /&gt;Default settings&lt;/td&gt;&lt;td valign="top"&gt;&lt;img src="http://2.bp.blogspot.com/_MovWHYojerg/SRGGGVJVHiI/AAAAAAAAABE/iAcJ2c55zVo/s320/circle4.gif" alt="" border="0" /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;The visual differences in image quality are obvious.  A &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_17"&gt;check sum&lt;/span&gt; compare of both of the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;unsmoothed&lt;/span&gt; images shows that they are byte-for-byte identical.  The same is not true for the smoothed images.&lt;br /&gt;&lt;br /&gt;I don't understand why the developers of Processing choose these defaults, and nor do I understand why the smoothed image quality is reduced when looping, unless there is some deliberate &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_20"&gt;throttling&lt;/span&gt; of the algorithm to reduce processor overhead.&lt;br /&gt;&lt;br /&gt;So, to recap, if you are drawing static images, I recommend the following skeleton code:&lt;br /&gt;&lt;pre&gt;void setup(){&lt;br /&gt;  size(x, y);&lt;br /&gt;  smooth()&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;&lt;/span&gt;&lt;/span&gt;;&lt;br /&gt;  &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;noLoop&lt;/span&gt;()&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;&lt;/span&gt;&lt;/span&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void draw(){&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-2494625866230434056?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/2494625866230434056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=2494625866230434056' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/2494625866230434056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/2494625866230434056'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/11/anti-aliasing-in-processing.html' title='Anti-aliasing in Processing'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_MovWHYojerg/SRGGF5dDxJI/AAAAAAAAAAs/qgoG16hRJ-M/s72-c/circle1.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-5425840016197770817</id><published>2008-10-29T12:16:00.036Z</published><updated>2008-11-05T20:59:10.887Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='algebra'/><title type='text'>Introducing polynomials</title><content type='html'>Below is my first draft of my section introduction.  Hopefully it introduces polynomials from a perspective that everyone can understand.  I welcome any comments from my fellow authors.&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;Polynomials&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We have previously, on page &lt;a href="http://bookfragments.blogspot.com/2008/10/book-fragment-24.html"&gt;XX (&lt;span style="font-style: italic;"&gt;fragment 24&lt;/span&gt;)&lt;/a&gt;, introduced some basic algebra and straight line graph plotting.  In this section we will introduce some simple mathematical curves, and in doing so, show that all numbers may be represented by a point on a given curve or curves.&lt;br /&gt;&lt;br /&gt;We will start by looking at some every day numbers, and show how they can be represented by algebraic notation.  If you are already familiar with such concepts, you may wish to skip this section.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;From numbers to algebra&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We all use numbers in our daily lives.  Some examples of numbers we use are:&lt;blockquote&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Height&lt;/td&gt;&lt;td&gt;1.54m&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Weight&lt;/td&gt;&lt;td&gt;53kg&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Price&lt;/td&gt;&lt;td&gt;£4.99&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Answer to life, the universe, and everything&lt;/td&gt;&lt;td&gt;42&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Attendance at a sporting fixture&lt;/td&gt;&lt;td&gt;21,988&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;The units of measurement are unimportant for this exercise.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/blockquote&gt;Most of the time we give very little thought as to what these numbers mean from a mathematical perspective.&lt;br /&gt;&lt;br /&gt;What does a number like 21,988 actually mean?&lt;br /&gt;&lt;br /&gt;Firstly, we know that it is a count of the number of people who attended a sporting fixture.  Counting is one of the first skills we learn, often using our fingers.  It is no coincidence that our counting system revolves around the number of fingers, or &lt;span style="font-weight: bold; font-style: italic;"&gt;digits&lt;/span&gt;, that we have.  A count of something is a one-to-one correspondence between the number and the physical thing.&lt;br /&gt;&lt;br /&gt;We can break 21,988 down into its constituent parts:&lt;br /&gt;&lt;blockquote&gt;21,988 = 20,000 + 1,000 + 900 + 80 + 8&lt;br /&gt;&lt;/blockquote&gt;We call each of the numbers being added together in this equation &lt;span style="font-weight: bold; font-style: italic;"&gt;terms&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;We can break each term down a little further:&lt;br /&gt;&lt;blockquote&gt;21,988 = (2 × 10,000) + (1 × 1,000) + (9 × 100) + (8 × 10) + (8 × 1)&lt;br /&gt;&lt;/blockquote&gt;The brackets, or parenthesis, around the 2 × 10,000 means "&lt;span style="font-style: italic;"&gt;do this calculation first&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;100 is 10 × 10, or 10 &lt;span style="font-weight: bold; font-style: italic;"&gt;squared&lt;/span&gt;.  We can also write this as 10&lt;sup&gt;2&lt;/sup&gt;.  Likewise, 1,000 is 10 × 10 × 10, or 10 &lt;span style="font-weight: bold; font-style: italic;"&gt;cubed&lt;/span&gt;.  We can also write this as 10&lt;sup&gt;3&lt;/sup&gt;.  We call these &lt;span style="font-weight: bold; font-style: italic;"&gt;powers&lt;/span&gt; of 10. For consistency, we can extend this logic to all other powers of 10, although, some may not be obvious, for instance 10&lt;sup&gt;1&lt;/sup&gt; is 10, and 10&lt;sup&gt;0&lt;/sup&gt; is 1.&lt;br /&gt;&lt;br /&gt;We can now rewrite our breakdown of 21,988:&lt;br /&gt;&lt;blockquote&gt;21,988 = (2 × 10&lt;sup&gt;4&lt;/sup&gt;) + (1 × 10&lt;sup&gt;3&lt;/sup&gt;) + (9 × 10&lt;sup&gt;2&lt;/sup&gt;) + (8 × 10&lt;sup&gt;1&lt;/sup&gt;) + (8 × 10&lt;sup&gt;0&lt;/sup&gt;)&lt;br /&gt;&lt;/blockquote&gt;This example is very specific to the number 21,988.  What if we want to write a generic formula for any number?&lt;br /&gt;&lt;br /&gt;Firstly, we can replace all instances of 10 with &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;, and 21,988, with &lt;span style="font-style: italic;"&gt;y&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;y&lt;/span&gt; = (2 × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;4&lt;/sup&gt;) + (1 × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;3&lt;/sup&gt;) + (9 × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;2&lt;/sup&gt;) + (8 × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;1&lt;/sup&gt;) + (8 × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;0&lt;/sup&gt;)&lt;br /&gt;&lt;/blockquote&gt;We now need to replace the digits 2, 1, 9, 8 and 8.  We will replace them with an &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;, but as  they are all different, we need to distinguish between them.  We can do this by using a sub-scripted number, which for clarity, will be the same as the power of &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;.  We call these &lt;span style="font-weight: bold; font-style: italic;"&gt;coefficients&lt;/span&gt;, and we call the number attached to the coefficient an &lt;span style="font-style: italic; font-weight: bold;"&gt;index&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;y&lt;/span&gt; = (&lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;4&lt;/sub&gt; × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;4&lt;/sup&gt;) + (&lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;3&lt;/sub&gt; × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;3&lt;/sup&gt;) + (&lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;2&lt;/sub&gt; × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;2&lt;/sup&gt;) + (&lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;1&lt;/sub&gt; × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;1&lt;/sup&gt;) + (&lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt; × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;0&lt;/sup&gt;)&lt;br /&gt;&lt;/blockquote&gt;We can tidy this equation up a bit.  We stated above that 10&lt;sup&gt;1&lt;/sup&gt; is 10, and 10&lt;sup&gt;0&lt;/sup&gt; is 1.  We can be more generic and state that &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;1&lt;/sup&gt; is &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;, and &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;0&lt;/sup&gt; is 1.  This simplifies the last two terms of the equation to:&lt;br /&gt;&lt;blockquote&gt;(&lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;1&lt;/sub&gt; × &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;) + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt;&lt;br /&gt;&lt;/blockquote&gt;We can also remove the ×, by either using a . in its place (i.e. &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;1&lt;/sub&gt;.&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;), or, as we will do here, just implying multiplication.  Because multiplication has a higher precedence than addition, we can also remove the parenthesis.  Applying this to the entire equation then gives:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;y&lt;/span&gt; = &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;4&lt;/sub&gt;&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;4&lt;/sup&gt; + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;3&lt;/sub&gt;&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;3&lt;/sup&gt; + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;2&lt;/sup&gt; + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;span style="font-style: italic;"&gt;x&lt;/span&gt; + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt;&lt;br /&gt;&lt;/blockquote&gt;This is fine, for a number of 5 digits or less (i.e. &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;4&lt;/sub&gt; = 0 cancels out &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;4&lt;/sup&gt;, and hence will give a 4 digit number), but what about numbers consisting of an arbitrary number of digits?  We can replace the index number of most significant term with &lt;span style="font-style: italic;"&gt;n&lt;/span&gt;, and the index number of the next most significant term with &lt;span style="font-style: italic;"&gt;n&lt;/span&gt;-1:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;y&lt;/span&gt; = &lt;span style="font-style: italic;"&gt;a&lt;sub&gt;n&lt;/sub&gt;x&lt;sup&gt;n&lt;/sup&gt;&lt;/span&gt; + &lt;span style="font-style: italic;"&gt;a&lt;sub&gt;n&lt;/sub&gt;&lt;/span&gt;&lt;sub&gt;-1&lt;/sub&gt;&lt;span style="font-style: italic;"&gt;x&lt;sup&gt;n&lt;/sup&gt;&lt;/span&gt;&lt;sup&gt;-1&lt;/sup&gt; + … + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;&lt;sup&gt;2&lt;/sup&gt; + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;span style="font-style: italic;"&gt;x&lt;/span&gt; + &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt;&lt;br /&gt;&lt;/blockquote&gt;We call this type of equation, a &lt;span style="font-weight: bold; font-style: italic;"&gt;polynomial&lt;/span&gt;, where &lt;span style="font-style: italic;"&gt;poly&lt;/span&gt; means &lt;span style="font-style: italic;"&gt;many&lt;/span&gt;, and &lt;span style="font-style: italic;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;nomial&lt;/span&gt;&lt;/span&gt; means &lt;span style="font-style: italic;"&gt;term&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;We call the most significant index the &lt;span style="font-weight: bold; font-style: italic;"&gt;degree&lt;/span&gt; of the polynomial.  In the last equation, the degree is &lt;span style="font-style: italic;"&gt;n&lt;/span&gt;, and in the 21,988 example, the degree is 4.&lt;br /&gt;&lt;br /&gt;It will be noted, that because our least significant index number is 0 (that is we count from 0 and not 1), &lt;span style="font-style: italic;"&gt;n&lt;/span&gt; will always be 1 less than the maximum number of digits in the number.&lt;br /&gt;&lt;br /&gt;We now have an abstract representation of any number.&lt;br /&gt;&lt;br /&gt;To bring all of this full-circle, if we set &lt;span style="font-style: italic;"&gt;x&lt;/span&gt; to 10, &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;4&lt;/sub&gt; to 2, &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;3&lt;/sub&gt; to 1, &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;2&lt;/sub&gt; to 9, &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;1&lt;/sub&gt; to 8 and &lt;span style="font-style: italic;"&gt;a&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt; to 8, we get:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;y&lt;/span&gt; = (2 × 10&lt;sup&gt;4&lt;/sup&gt;) + 10&lt;sup&gt;3&lt;/sup&gt; + (9 × 10&lt;sup&gt;2&lt;/sup&gt;) + (8 × 10) + 8&lt;br /&gt;&lt;/blockquote&gt;In our 21,988 example, &lt;span style="font-style: italic;"&gt;x&lt;/span&gt; was always 10.  This does not always have to be the case.  On page &lt;a href="http://dbmasswriting.blogspot.com/"&gt;XX (&lt;span style="font-style: italic;"&gt;fragment 77&lt;/span&gt;)&lt;/a&gt;, when we introduce &lt;span style="font-style: italic; font-weight: bold;"&gt;bits&lt;/span&gt;, we will be dealing with powers of 2 and 16.&lt;br /&gt;&lt;br /&gt;We shall now look at a number of different polynomial equations, by plotting the resultant value of &lt;span style="font-style: italic;"&gt;y&lt;/span&gt; for various values of &lt;span style="font-style: italic;"&gt;x&lt;/span&gt;.&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-5425840016197770817?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/5425840016197770817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=5425840016197770817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/5425840016197770817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/5425840016197770817'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/introducing-polynomials.html' title='Introducing polynomials'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-7203534011787598993</id><published>2008-10-28T16:46:00.007Z</published><updated>2008-11-05T12:08:15.186Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='code formatting'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Formatting of code fragments on blogs</title><content type='html'>I have just left a comment on &lt;a href="http://bookfragments.blogspot.com/2008/10/book-fragment-24.html"&gt;Darrel's blog&lt;/a&gt; regarding formating of code fragments within a blog.  Unfortuantly, the blog commenting facility doesn't allow use of the HTML &lt;span style="font-style: italic;"&gt;pre&lt;/span&gt; tag, and hence the point I was trying to make was somewhat lost!  For clarity, I repeat it here.&lt;br /&gt;&lt;br /&gt;Use of the HTML &lt;span style="font-style: italic;"&gt;pre&lt;/span&gt; tag leaves white space intact, allows direct use of &gt; and &lt;, and uses a courier font. E.g.:&lt;br /&gt;&lt;pre&gt;setup(){&lt;br /&gt;  int x = 0;&lt;br /&gt;  if (x &gt; 0){&lt;br /&gt;    &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;doSomething&lt;/span&gt;();&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-7203534011787598993?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/7203534011787598993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=7203534011787598993' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/7203534011787598993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/7203534011787598993'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/ode-fragments-on-blogs.html' title='Formatting of code fragments on blogs'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-7181008088136038561</id><published>2008-10-28T08:43:00.025Z</published><updated>2008-11-05T20:58:02.140Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='notation'/><category scheme='http://www.blogger.com/atom/ns#' term='quadratic'/><category scheme='http://www.blogger.com/atom/ns#' term='cubic'/><category scheme='http://www.blogger.com/atom/ns#' term='equation'/><category scheme='http://www.blogger.com/atom/ns#' term='coefficient'/><title type='text'>Notation, notation, notation</title><content type='html'>Upon re-reading my &lt;a href="http://barrymasswriting.blogspot.com/2008/10/i-sent-e-mail-to-darrel-earlier-today.html"&gt;last post&lt;/a&gt;, it occurred to me that the notation chosen was likely to be confusing.&lt;br /&gt;&lt;br /&gt;To illustrate, we will take the 4 equations previously stated, and line up all of the terms:&lt;blockquote&gt;&lt;table&gt;&lt;tr&gt;&lt;td style="font-weight: bold;"&gt;Constant&lt;/td&gt;&lt;td&gt;y = &lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;a&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-weight: bold;"&gt;Linear&lt;/td&gt;&lt;td&gt;y = &lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;a&lt;/em&gt;x&lt;/td&gt;&lt;td&gt; + &lt;/td&gt;&lt;td&gt;&lt;em&gt;b&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-weight: bold;"&gt;Quadratic&lt;/td&gt;&lt;td&gt;y = &lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;a&lt;/em&gt;x&lt;sup&gt;2&lt;/sup&gt;&lt;/td&gt;&lt;td&gt; + &lt;/td&gt;&lt;td&gt;&lt;em&gt;b&lt;/em&gt;x&lt;/td&gt;&lt;td&gt; + &lt;/td&gt;&lt;td&gt;&lt;em&gt;c&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-weight: bold;"&gt;Cubic&lt;/td&gt;&lt;td&gt;y = &lt;/td&gt;&lt;td&gt;&lt;em&gt;a&lt;/em&gt;x&lt;sup&gt;3&lt;/sup&gt;&lt;/td&gt;&lt;td&gt; + &lt;/td&gt;&lt;td&gt;&lt;em&gt;b&lt;/em&gt;x&lt;sup&gt;2&lt;/sup&gt;&lt;/td&gt;&lt;td&gt; + &lt;/td&gt;&lt;td&gt;&lt;em&gt;c&lt;/em&gt;x&lt;/td&gt;&lt;td&gt; + &lt;/td&gt;&lt;td&gt;&lt;em&gt;d&lt;/em&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/blockquote&gt;It will be noted that the name of equivalent coefficients changes in each equation.&lt;br /&gt;&lt;br /&gt;If we were to use a generic form for the equation, then this name changing goes away:&lt;blockquote&gt;y = &lt;em&gt;a&lt;sub&gt;n&lt;/sub&gt;&lt;/em&gt;x&lt;sup&gt;n&lt;/sup&gt; + &lt;em&gt;a&lt;sub&gt;n-1&lt;/sub&gt;&lt;/em&gt;x&lt;sup&gt;n-1&lt;/sup&gt; + ... + &lt;em&gt;a&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;x&lt;sup&gt;3&lt;/sup&gt; + &lt;em&gt;a&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt;x&lt;sup&gt;2&lt;/sup&gt; + &lt;em&gt;a&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt;x + &lt;em&gt;a&lt;sub&gt;0&lt;/sub&gt;&lt;/em&gt;&lt;/blockquote&gt;Whilst this looks more complex, if we just concentrate on equations of the cubic order and lower, we get:&lt;blockquote&gt;y = &lt;em&gt;a&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;x&lt;sup&gt;3&lt;/sup&gt; + &lt;em&gt;a&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt;x&lt;sup&gt;2&lt;/sup&gt; + &lt;em&gt;a&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt;x + &lt;em&gt;a&lt;sub&gt;0&lt;/sub&gt;&lt;/em&gt;&lt;/blockquote&gt;If &lt;em&gt;a&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt; is 0, then we get a quadratic equation, and so on:&lt;br /&gt;&lt;blockquote&gt;y = &lt;em&gt;a&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt;x&lt;sup&gt;2&lt;/sup&gt; + &lt;em&gt;a&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt;x + &lt;em&gt;a&lt;sub&gt;0&lt;/sub&gt;&lt;/em&gt;&lt;/blockquote&gt;I think this is potentially less confusing than having the coefficient names change with each order of equation.  It also provides for a cleaner and clearer mapping between the underlying mathematics and Java arrays, if we were to chose that mechanism to store the coefficients.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-7181008088136038561?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/7181008088136038561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=7181008088136038561' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/7181008088136038561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/7181008088136038561'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/notation-notation-notation.html' title='Notation, notation, notation'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-3489255849780610267</id><published>2008-10-27T22:25:00.009Z</published><updated>2008-10-28T09:31:03.403Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='notation'/><category scheme='http://www.blogger.com/atom/ns#' term='quadratic'/><category scheme='http://www.blogger.com/atom/ns#' term='cubic'/><category scheme='http://www.blogger.com/atom/ns#' term='parabola'/><category scheme='http://www.blogger.com/atom/ns#' term='coefficient'/><title type='text'>Initial thoughts</title><content type='html'>Most of the chunks that touch on mathematical subjects are going to be challenging to write.  Our task is to write a book that demonstrates how the various facilities in the &lt;span style="font-style: italic;"&gt;Processing&lt;/span&gt; language can be used to create pictures.  Out task is not to teach mathematics.  That said, it is difficult to use the various facilities effectively if one does not have some basic knowledge as to the underlying theory.  Getting this balance right is &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;potentially&lt;/span&gt; one of the biggest challenges we will face.&lt;br /&gt;&lt;br /&gt;Obviously I need to start with what a polynomial is, and what they look like, in terms of their generic form.  I'd like to use the old joke that a polynomial is a hungry parrot, but I suspect that's a bit too &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Pythonesque&lt;/span&gt; for most people!&lt;br /&gt;&lt;br /&gt;Being &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_3"&gt;restricted&lt;/span&gt; to quadratic and cubic equations simplifies the task slightly.  I can see these equations being a little scary to some:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;y = &lt;em&gt;a&lt;/em&gt;x&lt;sup&gt;2&lt;/sup&gt; + &lt;em&gt;b&lt;/em&gt;x + &lt;em&gt;c&lt;/em&gt; (quadratic)&lt;/li&gt;&lt;li&gt;y = &lt;em&gt;a&lt;/em&gt;x&lt;sup&gt;3&lt;/sup&gt; + &lt;em&gt;b&lt;/em&gt;x&lt;sup&gt;2&lt;/sup&gt; + &lt;em&gt;c&lt;/em&gt;x + &lt;em&gt;d&lt;/em&gt; (cubic)&lt;/li&gt;&lt;/ul&gt;I will probably start off with constants and straight lines, and build up from there:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;y = &lt;em&gt;a&lt;/em&gt; (constant)&lt;/li&gt;&lt;li&gt;y = &lt;em&gt;a&lt;/em&gt;x + &lt;em&gt;b&lt;/em&gt; (&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_5"&gt;linear&lt;/span&gt;)&lt;/li&gt;&lt;/ul&gt;Apart from showing the effects of altering the various coefficients (&lt;span style="font-style: italic;"&gt;a&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;b&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;c&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;d&lt;/span&gt;), and a very brief &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;explanation&lt;/span&gt; of power notation, I can see little to be gained by going into the maths any further.&lt;br /&gt;&lt;br /&gt;I would like, where ever possible, to highlight real world examples of these curves.  For example, the parabola, as described by a quadratic equation, is formed as the result of a conic section, and is also used for reflectors with a focal-point, such as &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;satellite&lt;/span&gt; dishes and light reflectors.&lt;br /&gt;&lt;br /&gt;Whilst waiting for my book to arrive, I will do some background &lt;a href="http://en.wikipedia.org/wiki/Polynomials"&gt;reading&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-3489255849780610267?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/3489255849780610267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=3489255849780610267' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/3489255849780610267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/3489255849780610267'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/i-sent-e-mail-to-darrel-earlier-today.html' title='Initial thoughts'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-442307095133470607</id><published>2008-10-27T22:19:00.003Z</published><updated>2008-10-28T08:34:59.750Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='mass writing'/><title type='text'>Following other mass writing blogs</title><content type='html'>I've noticed that other authors are already following this blog.  So far, I am only following the 3 blogs created by Darrel.  Trying to follow 85 blogs is likely to be virtually impossible.  I will therefore only follow those blogs &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;written&lt;/span&gt; by authors whose subject matter is a prerequisite for my chuck.  I hope that the other authors won't be upset by this decision.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-442307095133470607?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/442307095133470607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=442307095133470607' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/442307095133470607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/442307095133470607'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/following-other-mass-writing-blogs.html' title='Following other mass writing blogs'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-8793709506802021705</id><published>2008-10-27T21:39:00.001Z</published><updated>2008-10-28T08:32:01.458Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Polynomial'/><title type='text'>Polynomials</title><content type='html'>I sent an e-mail to Darrel earlier today listing my 3 preferred chunks to write.  I got my third choice, which is fine.  So, my brief is:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;CHUNK 55&lt;/span&gt;&lt;br /&gt;TITLE Polynomials&lt;br /&gt;DESCRIPTION Describe the general form of quadratic and cubic polynomials and show how they can be drawn using the techniques in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Greenberg&lt;/span&gt; 262--267. Describe a simple program that shows the various curves that are generated by such polynomials&lt;br /&gt;OUTCOME&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Describe the general form of a polynomial&lt;/li&gt;&lt;li&gt;Develop code that draws a particular polynomial.&lt;/li&gt;&lt;/ul&gt;REFERENCE &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Greenberg&lt;/span&gt; 262-267&lt;br /&gt;HINT Keep the programs simple.&lt;br /&gt;PROGRAM No program required.&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-8793709506802021705?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/8793709506802021705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=8793709506802021705' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/8793709506802021705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/8793709506802021705'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/polynomials.html' title='Polynomials'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-3518982937849111189</id><published>2008-10-27T15:49:00.001Z</published><updated>2008-10-28T08:32:58.794Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Waterstone&apos;s'/><category scheme='http://www.blogger.com/atom/ns#' term='Ira Greenberg'/><category scheme='http://www.blogger.com/atom/ns#' term='eBay'/><category scheme='http://www.blogger.com/atom/ns#' term='Amazon'/><title type='text'>Book availability, or rather lack thereof</title><content type='html'>Just popped into my local &lt;a href="http://www.waterstones.com/"&gt;Waterstone's&lt;/a&gt; to order a copy of &lt;a href="http://www.processing.org/learning/books/index.html#ira"&gt;Ira Greenberg's book&lt;/a&gt;, only to be told that is currently reprinting, and won't be available until the end of November.  Waterstone's have just 3 copies in the country, so if your local store is Kingston University, Scarborough or Worcester, you may be in luck.&lt;br /&gt;&lt;br /&gt;There are 2 suppliers on &lt;a href="http://www.ebay.co.uk/"&gt;eBay&lt;/a&gt; with over 30 copies between them (&lt;a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;amp;ssPageName=STRK:MEWAX:IT&amp;amp;item=250310205256"&gt;here&lt;/a&gt; and &lt;a href="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;amp;ssPageName=STRK:MEWAX:IT&amp;amp;item=250308170486"&gt;here&lt;/a&gt;), but I've just ordered a copy from &lt;a href="http://www.amazon.co.uk/"&gt;Amazon&lt;/a&gt; for £28 including p&amp;amp;p.&lt;br /&gt;&lt;br /&gt;Please note that I am &lt;span style="font-weight: bold;"&gt;not&lt;/span&gt; connected in any way to any of the suppliers mentioned above.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-3518982937849111189?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/3518982937849111189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=3518982937849111189' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/3518982937849111189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/3518982937849111189'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/book-availability-or-rather-lack.html' title='Book availability, or rather lack thereof'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2657764165367928128.post-8379862220477632686</id><published>2008-10-26T20:31:00.009Z</published><updated>2008-10-28T16:42:09.750Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Open University'/><category scheme='http://www.blogger.com/atom/ns#' term='Processing'/><category scheme='http://www.blogger.com/atom/ns#' term='OU'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Ira Greenberg'/><category scheme='http://www.blogger.com/atom/ns#' term='MSc'/><category scheme='http://www.blogger.com/atom/ns#' term='Darrel Ince'/><category scheme='http://www.blogger.com/atom/ns#' term='PGDip'/><category scheme='http://www.blogger.com/atom/ns#' term='mass writing'/><title type='text'>In the beginning ...</title><content type='html'>... I, along with many other &lt;a href="http://www.open.ac.uk/"&gt;Open University&lt;/a&gt; students, was sent an e-mail by &lt;a href="http://mcs.open.ac.uk/dci2/"&gt;Professor Darrel &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Ince&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; seeking volunteers to join a &lt;a href="http://incemasswriting.blogspot.com/"&gt;mass writing project&lt;/a&gt;.  The aim? Very simple! Take approximately 85 individuals, who prior to signing up for this project, in the main, are unknown to each other, and get them to write a book about &lt;a href="http://www.processing.org/"&gt;Processing&lt;/a&gt;, a  Java-based computer-art environment.&lt;br /&gt;&lt;br /&gt;OK, so why am I doing this?&lt;br /&gt;&lt;br /&gt;Well, a number of reasons:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;It is a good opportunity to explore new ways of working; collaborating with individuals mainly via the Internet has many potential advantages and disadvantages.  This is an ideal opportunity to gain experience first hand.&lt;/li&gt;&lt;li&gt;To get used to academic writing.  I will (hopefully) be writing a &lt;a href="http://www3.open.ac.uk/courses/bin/p12.dll?C01M801"&gt;dissertation&lt;/a&gt; for my &lt;a href="http://www3.open.ac.uk/courses/bin/p12.dll?Q01F26"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;MSc&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; in a few years time, so any writing experience I can get in the mean time will be useful.  I just need to finish the &lt;a href="http://www3.open.ac.uk/courses/bin/p12.dll?Q01F26"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;PGDip&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; first!&lt;/li&gt;&lt;li&gt;To attempt to explain technical and mathematical subject matter in manner that those with little or no technical or mathematical &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_3"&gt;knowledge&lt;/span&gt; can understand.  Techies are notoriously bad at being able to explain themselves in simple language, and I include &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_4"&gt;myself&lt;/span&gt; in that.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;To learn a new technology; I had never even heard of &lt;span style="font-style: italic;"&gt;Processing&lt;/span&gt; prior to this project.&lt;/li&gt;&lt;li&gt;I am hoping to tie this project in to the next unit of my &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;PGDip&lt;/span&gt;&lt;/span&gt;, which is &lt;a href="http://www3.open.ac.uk/courses/bin/p12.dll?C01M865"&gt;Project management&lt;/a&gt;.  I need to e-mail my course tutor to check if he deems this to be a suitable project, in terms of the course requirements and objectives.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;To have some fun!&lt;/li&gt;&lt;/ol&gt;So, what next?&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download, install and play with the &lt;a href="http://www.processing.org/download/"&gt;Processing environment&lt;/a&gt;. &lt;span style="font-weight: bold;"&gt;Done&lt;/span&gt;.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Order &lt;a href="http://www.processing.org/learning/books/index.html#ira"&gt;Ira &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Greenberg's&lt;/span&gt; book&lt;/a&gt; that the &lt;a href="http://www.open.ac.uk/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;OU&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; is very kindly buying for each of us. &lt;a style="font-weight: bold;" href="http://barrymasswriting.blogspot.com/2008/10/book-availability-or-rather-lack.html"&gt;Done&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Choose a &lt;a href="http://bookfragments.blogspot.com/"&gt;chunk&lt;/a&gt; to write. &lt;a href="http://barrymasswriting.blogspot.com/2008/10/polynomials.html"&gt;&lt;span style="font-weight: bold;"&gt;Done&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Obviously, there is loads of other stuff to do (like write some words and code), but the above will keep my busy for a while.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2657764165367928128-8379862220477632686?l=barrymasswriting.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://barrymasswriting.blogspot.com/feeds/8379862220477632686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=2657764165367928128&amp;postID=8379862220477632686' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/8379862220477632686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2657764165367928128/posts/default/8379862220477632686'/><link rel='alternate' type='text/html' href='http://barrymasswriting.blogspot.com/2008/10/in-beginning.html' title='In the beginning ...'/><author><name>Barry</name><uri>http://www.blogger.com/profile/15123071315558788656</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15632398911643322584'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>