Oct. 14, 2017 Coding for the Love of Mathematics Richard A
Total Page:16
File Type:pdf, Size:1020Kb
Session Outline: Oct. 14, 2017 Coding for the Love of Mathematics Richard A. Clausi **cartoon IMAGES are courtesy of New Vision Technologies Task Force ClipArt © 1995 (wannapik.com) Other images are acknowledged in the Resource list and in context. 17/10/2017 Slides (c) 2017 Richard A. Clausi 1 • Session 3 • Title: Coding, For the Love of Mathematics Presenter: Richard Clausi, OCT – Elmira District S.S. (retired 2012) • Currently: Instructor, EU420D, Faculty of Education, Wilfrid Laurier University • : Owner, RC Software and Data (registered 1981) • Slides will be available at: http://www.kw.igs.net/~raclausi/coding.pdf Session Description: Coding, a new player in the elementary school curriculum, offers teachers and students a new way to explore mathematics. This session is a light overview of entry‐level programming (code.org, scratch and LOGO) as a way to engage and nurture mathematical thinking. This new tool for problem solving allows us to use simple programming to understand and apply “tough” concepts such as recursion, modularity and multi‐tasking to ARDUINO programming and Mouse Mazes, calculating TT, Newton’s Method for Square Roots, Fractals and Mandelbrot Set. • I hope that you will leave with inspiration and ideas that you can use to explore your own personal mathematical adventures. • ** This slide will be the last slide in my presentation so you can copy down the web address, later, if you wish. 17/10/2017 Slides (c) 2017 Richard A. Clausi 2 Warnings… • An intelligent, silicon‐based life‐form….. • And of Websites that evaporate… 17/10/2017 Slides (c) 2017 Richard A. Clausi 3 A code…. “In a code, a word or phrase is replaced with a word, number or symbol. For example, secret agents have codenames, words that are used instead of their real names in order to mask their identities. Similarly, the phrase ‘Attack at Dawn’ could be replaced by the codeword ‘Jupiter’ and this word would be sent to the commander in the field” from: The Code Book by Simon Singh, page xvi ISBN 0‐385‐49532‐3 17/10/2017 Slides (c) 2017 Richard A. Clausi 4 17/10/2017 Slides (c) 2017 Richard A. Clausi 5 • From a fund‐raising letter, June 2017: • Richard. Look at this: • You're looking at the Pong inspired game that Justin Trudeau created at Code.org's "Hour of Code" event back in December. Built using a beginner‐friendly block based approach, this technique is commonly used to teach new programmers (youth and university students alike) how to write code. • It may look simple, but the reality is that, by 2021, the Information and Communications Technology Council forecasts that over 200,000 digital jobs could go unfilled by Canadian talent –and that's something we need to fix, because the global economy is becoming increasingly digital. • From buying groceries, and managing our kid's sports teams, to the computer programs and technology used in workplaces across Canada, more and more aspects of our lives are touched by technology on a daily basis. • It is important that Canadians of all walks of life have the skills needed to navigate this new economy, so they are prepared for the jobs of today, and tomorrow. 17/10/2017 Slides (c) 2017 Richard A. Clausi 6 Session Description: Coding, a new player in the elementary school curriculum, offers teachers and students a new way to explore mathematics. This session is a light overview of entry‐ level programming code.org Or http://code.org Scratch and LOGO as a way to engage and nurture mathematical thinking. • So, let us start with code.org and the “Hour of Code” • ( that is, just tap on the code.org address, above) 17/10/2017 Slides (c) 2017 Richard A. Clausi 7 • https://studio.code.org/projects/playlab/G4by 28DEj‐Yqhe_Z06tSU1aOZU5NjeVsN4‐ EDNX7FNc/view 17/10/2017 Slides (c) 2017 Richard A. Clausi 8 • What about “Scratch”? 17/10/2017 Slides (c) 2017 Richard A. Clausi 9 • Getting‐Started‐Guide‐Scratch2.pdf • http://scratch.mit.edu Address: • http://scratch.mit.edu 17/10/2017 Slides (c) 2017 Richard A. Clausi 10 • Getting in the mood….. 17/10/2017 Slides (c) 2017 Richard A. Clausi 11 The Beaver Computer Contest for grades 7,8,9,10 sponsored by University of Waterloo, CEMC http://www.cemc.uwaterloo.ca/contests/bcc.html 17/10/2017 Slides (c) 2017 Richard A. Clausi 12 Frog Jump A frog gets exercise by jumping around a pond. It jumps from lily pad to lily pad in the sequence shown in the picture below. It starts at the lily pad labelled S. It ends on the lily pad as shown (i.e., the frog shown has finished jumping). Each black dot marks a lily pad on which the frog has landed. The legend below labels each of the 8 possible directions of a jump with an integer from 0 to 7. Which sequence describes the frog's path? 17/10/2017 Slides (c) 2017 Richard A. Clausi 13 Samplers.... http://www.cemc.uwaterloo.ca/contests/computing/bcc_sample_problems/frogjump.html 17/10/2017 Slides (c) 2017 Richard A. Clausi 14 • The thinking is “algorithmic” and “sequence” thinking… Like creating a recipe that a mindless (??) machine can follow. • PS: This aligns nicely with the problem‐solving frame of mind we want students to acquire. 17/10/2017 Slides (c) 2017 Richard A. Clausi 15 • This session is a light overview of • entry‐level programming (code.org, scratch and LOGO) • as a way to engage and nurture mathematical thinking. • This new tool for problem solving allows us to use simple programming to understand and apply “tough” concepts such as recursion, modularity and • multi‐tasking to ARDUINO programming and Mouse Mazes, • calculating TT, Newton’s Method for Square Roots, Fractals and Mandelbrot Set 17/10/2017 Slides (c) 2017 Richard A. Clausi 16 • http://www.alexshen.ca/maze‐bot/ This web access is courtesy of Alex Shen, a finalist in the Canadian Competition Contest Round 2, May 2017 17/10/2017 Slides (c) 2017 Richard A. Clausi 17 17/10/2017 Slides (c) 2017 Richard A. Clausi 18 • Putin reveals fears that robots with artificial intelligence will one day 'eat us' and asks head of Russia's largest tech firm how soon it will happen • Russian president was speaking to Arkady Volozh, chief of internet firm Yandex • He baffled Volozh by asking how long it will be till artificial intelligence 'eats us' • Volozh said he hopes 'never' and sounded optimistic note but Putin unconvinced • Earlier this month, Putin said whoever becomes master of AI will rule the world • By Iain Burns For Mailonline • PUBLISHED: 09:12 BST, 22 September 2017 | UPDATED: 11:40 BST, 22 September 2017 • From the Daily Mail, UK • The Russian president was speaking to Arkady Volozh, chief of internet firm Yandex, during a tour at the company's Moscow HQ. It comes after Putin said whoever masters AI will rule the world. • http://www.dailymail.co.uk/news/article‐4909172/Putin‐reveals‐fears‐robots‐one‐day‐eat‐us.html 17/10/2017 Slides (c) 2017 Richard A. Clausi 19 • Milton Bradley was cranking out the electronic toys in the late 70s and Big Trak hit the shelves in early 1979. This was the latest and most advanced toy ever released in mass to date and it was an instant hit. You could enter up to 99 commands ranging from simple movements like forward, back, turn left, turn right to more complicated things like a kind of "stealth mode" where it would delay commands, fire it's weapons or navigate an obstacle avoidance. 17/10/2017 Slides (c) 2017 Richard A. Clausi 20 Approx. 2 feet long…$60 Source: Wikipedia 17/10/2017 Slides (c) 2017 Richard A. Clausi 21 17/10/2017 Slides (c) 2017 Richard A. Clausi 22 17/10/2017 Slides (c) 2017 Richard A. Clausi 23 17/10/2017 Slides (c) 2017 Richard A. Clausi 24 17/10/2017 Slides (c) 2017 Richard A. Clausi 25 Arduino– Physical Computing • “Tinkering is what happens when you try something you don’t quite know how to do, guided by whim, imagination and curiousity. When you tinker, there are no instructions‐ but there are also no failures, no right or wrong ways of doing things. It’s about figuring out how things work and reworking them.” (Getting Started with Arduino, Massimo Banzi, preface: vi) 17/10/2017 Slides (c) 2017 Richard A. Clausi 26 • // provided ARDUINO sample program from the downloadabe and free IDE • /* • Blink • Turns on an LED on for one second, then off for one second, repeatedly. • • This example code is in the public domain. • */ • • // Pin 13 has an LED connected on most Arduino boards. • // give it a name: • int led = 13; • // the setup routine runs once when you press reset: • void setup() { • // initialize the digital pin as an output. • pinMode(led, OUTPUT); • } • // the loop routine runs over and over again forever: • void loop() { • digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) • delay(1000); // wait for a second • digitalWrite(led, LOW); // turn the LED off by making the voltage LOW • delay(1000); // wait for a second • } 17/10/2017 Slides (c) 2017 Richard A. Clausi 27 Other possibilities (to Google)… • These are very powerful, hands‐on platforms: • Raspberry Pi • Parallax Propeller (especially neat with 8 parallel cores running in tandem… multi‐ processing and parallel processing) • Beaglebone Black 17/10/2017 Slides (c) 2017 Richard A. Clausi 28 • Session Description: Coding, a new player in the elementary school curriculum, offers teachers and students a new way to explore mathematics. This session is a light overview of entry‐level programming (code.org, scratch • and LOGO) • as a way to engage and nurture mathematical thinking.