Wednesday, November 16, 2016

A little late to the US Election Party

You may have heard about the United States having an election recently.  In fact, all the talk about Florida and racial divisions might have reminded you of other recent elections.

I spent some happy time after the 2004 election gathering data, by county, in a Fathom document.  I was inspired by some fascinating articles with incredible data visualizations:

The changing colors of America (1960-2004)

Maps of the 2016 US presidential election results (it used to be 2004)

and posed a few questions on The Math Forum.

Fathom is licensed by the Ontario Ministry of Education for use in its publicly funded schools and Ontario has an innovative Data Management course at the Grade 12 level.

Here are two of the plots that I created in Fathom which I also think are very cool - not quite as fancy as the ones above however.  These make you wonder where "middle America" has gone...



The comments related to the collection are worth a read.

Tuesday, February 9, 2016

Tribute to Bob Elliott

My dad used to listen to Gilmour's Albums religiously - it was Sunday after all.  Gilmour introduced me to Bob and Ray who I just loved.  Bob Elliott died a week ago, so I am embedding two of my favorites as a tribute.




Smart - like Shakespearean Baseball



Using a CLIPS Activity in SMART Notebook - Redux

In a post from 2009, Giancarlo Brotto explained how to embed .swf downloads from MathCLIPS into SMART Notebook.  This year, SMART Notebook will be moving away from Flash, and so Giancarlo has updated the video with three methods to embed CLIPS activities, games and tools into a Notebook file.  He even added some promotion for other SMART products, I guess that is what you do if you are Global Education Strategist for SMART.




Friday, December 18, 2015

Creating a custom formula in Google Sheets to concatenate a range of values with a delimiter

In the past, I have written a little VBA to create an Excel function to do this.  I use it to take a range of cells containing email addresses and make one string containing those addresses delimited by semi-colons suitable for pasting into the TO: field of an email.

Now that I am using Google Sheets more, I was curious if I could do a similar thing.

With a little investigation, I was able to go to Tools | Script Editor and enter the following:

 function CCAT(range, delimiter) {  
  var returnString = '';  
  var rows = range.length;  
  for (r=0; r<rows;r++){  
   var cols = range[r].length;  
   for (c=0; c<cols; c++){  
    returnString += range[r][c]+delimiter;  
   }  
  }  
  return returnString;  
 }  

Once it is saved I can invoke it from my Sheet using something like:

 =CCAT(C2:C25,";")  

Notice that a range like C2:C25 is automatically converted by Sheets into a two dimensional array.

After successfully creating the function, I searched for a similar solution online and found that there are ways to do it that do not require a custom script - see
https://productforums.google.com/forum/?hl=en#!category-topic/docs/how-do-i/FQbzbVK4-i0 , however my script is illustrative if not elegant.

Wednesday, November 4, 2015

Scratch and Binomial Walks

I am at the #bit15 conference and attended the Coding and Math session with @georgegadanidis.  We learned a little Scratch programming.

We did the requisite square and circle creation tasks.  He had some nice connections to higher level math - including extending a two coin toss scenario to the binomial theorem.  At that point, I worked on my program to make the cat do a binomial walk - not realizing that he would have that example later.  I have shared my project at https://scratch.mit.edu/projects/86529699/ and embedded it below:


The cat should start moving when you click the green flag.  In the offline Scratch editor, you can export the list of horizontal positions where 0 is the centre.  I then imported it into Fathom to make a histogram.


Looks pretty binomial to me!

I am using Twitter as part of our #mmmmECOO presentation - my handle is @rossisen.

Thursday, June 11, 2015

How do I Construct these Loci?

If you have two points, A and B,  in the plane and then determine a third point P by measuring the distances to the original two and having the sum of those distances constant, you define an ellipse.

PA + PB = k

Tracing out such a locus is a fairly standard thing that is done in Sketchpad by defining the sum as a segment, creating a point on the segment to partition the length in 2, creating a circle with each partition as a radius, and tracing out the intersections.




What if you have three points, A, B, and C, in the plane and then determine a fourth point P by measuring the distances to the original three and having the sum of those distances be a constant?

PA + PB + PC = k

Here, I have constructed the Fermat Point P[0] which is the point where the sum is a minimum.  Then I traced out three points with the constant sum approximately 10, 12 and 14 units.



I am looking for a more elegant way to trace out the locus corresponding to any given constant sum of distances to the vertices.  I would also like to know what the curve is called and whether there is a way to graph a relation with that shape.

I am calling on the vast readership and commenters to help!

Tuesday, June 2, 2015

An Interactive Version of the Triangle Investigation

In the previous post, I captured movies of my investigation with The Geometer's Sketchpad. Web Sketchpad allows for including an HTML 5 version of the sketch on a webpage, like this one.

Drag the yellow dot, currently on the triangle to trace out the various positions and area of the triangle.

 

Note that I have enforced the maximum side length of 10 in a very strange way. Can you describe what I have done? Can you do it in a similar or better way?

Where do you have to place the yellow dot in order to have an area of 0?

How can you drag the yellow dot to keep the area the same?

What other patterns do you see in the behaviour? (There are lots more in the previous post)