Math/CSE 1560: Introduction to Computing for Mathematics and Statistics
News
Final grades have been approved by the CSE department on May 2 and are posted
here.
Students who missed the final due to illness MUST take the deferred final on
Wednesday  May 4, 2011, 4:007:00pm, Room: CSE B
Course Objectives
 Familiarity with the Maple environment.
 Ability to "code" (implement) solutions to simple problems in Maple.
 Introduction to computer programming, including encapsulation of functionality into procedures
and functions.
 Elements of efficient programming principles, simple algorithm design, debugging programs.
Administrivia
Textbook: Maple Introductory Programming Guide, M. Monagan, K. Geddes, K. Heal, G. Labahn, S. Vorkoetter, J. McCarron, P. DeMarco, Maplesoft, a division of Waterloo Maple Inc. 2010. Available here or from this page
References:
 Getting started with Maple, D. Meade, M. May, CK. Cheung, G. Keough, 3rd edition, Wiley and Sons, 2009.
 Introduction to Maple 8, D. Schwartz, Pearson Education, 2003.
Lectures : MW 2:30  3:30 pm, in VH B
Office hours: MonWed 3:30  5:00 pm, or by appointment, in CSEB 3043
Evaluation: Grades are online, at moodle.math.yorku.ca  but you can only access this site from the Gauss Lab during lab hours (at other times it is
accessible from outside). Midterm grades are here.
Labs
There will be 3hour labs, every week. Because of the class size, there are 3 sections, on Tuesdays, Thursdays and Fridays 2:305:30 pm, all at the Gauss lab, Ross S 110. (Please note that the number is not S 100 as mistakenly written here before).
Getting Maple: You are not required to buy the software, but if you wish to, the
University has site licenses that make it much more affordable for you.
Check out this page. Update: it appears that the University license does not cover undergraduates, but Maplesoft sells student versions at almost an identical price.
How to get access to the Lab:
The Gauss Lab has a website, containing information about card
access.
List of topics and Lecture schedule:
 Jan 5: Introduction. Administrivia. Objectives. Course overview.
My slides are here.
Please read my notes as well.
The tutorial on this page is very useful.
There are no labs the first week (Jan 47).
 Jan 10: Introduction to Maple  continued.
My slides are here.
Some notes.
 Jan 12: No class.
 Jan 17: My slides are here.

Jan 19: My slides are here
(note that several slides are repeated from the last set  we did not get to those in the last class).
 Jan 24: Introduction to writing your own functions. No new slides were used. The worksheet we generated in class is here (pdf). Rightclick on this link and save it and then open it by doubleclicking on it or by using FileOpen in Maple.
 Jan 26: Practice on defining functions. No new slides. The worksheet we generated in class is here ((pdf).
 Jan 31: More on parametrized functions; writing procedures.
The worksheet we generated in
class is here (pdf).
 Feb 2: No class (York declared a snow day).
 Feb 7: More on procedures.
The worksheets we generated in class are here (pdf) and here (pdf).
 Feb 9: Sets. My slides are here.
 Feb 14: Lists. My slides are here. While loops.
 Feb 16: For loops. Midterm question discussion. My slides are here. The worksheet we worked on in class is here (pdf).
 Feb 28: midterm.
 Mar 2: For loops. The worksheet we worked on in class is here (pdf).
 Mar 7:More on for and while loops. My slides are
here.
 Mar 9:More on for and while loops. My slides are
here.
 Mar 14: Recursive programming. My slides are
here.
 Mar 16: Problems on loops and recursion. The worksheet we worked on in class is here (pdf).
 Mar 21: More problems on loops and recursion.
The worksheet we worked on in class is here (pdf).
 Mar 23: (Class shortened due to student course evaluations)
The worksheet we worked on in class is here (pdf).
 Mar 28:
The worksheet we worked on in class is here (pdf).
 Mar 30: More recursion. Solutions to some lab problems.
The worksheet we worked on in class is here (pdf).
 Apr 4: Arrays. The worksheet we worked on in class is here (pdf).
 Apr 5: Last class. My slides are
here.
The worksheet we worked on in class is here (pdf).
Lab/Assignments
NOTE: You can download your submitted labs by coming to the Gauss Lab outside of our lab hours and logging into your Moodle account.
 Lab 1: To be released in the lab. For this lab you will simply follow
instructions and complete and submit a worksheet. Not much thinking is required from you. In later weeks you will be given a sample assignment beforehand that you can work on. The lab assignment will be a little different from that but will use the same commands/skills. The expectation is that if you have done and understood the sample assignment you will be able to do the lab easily.
IMPORTANT:
 You cannot do the lab in a section you are not enrolled in
 If you do not have your accounts set up BEFORE the lab session starts, you may not be able to complete the lab in time. It is your responsibility to log in to AML and Moodle (webct.math.yorku.ca) and make sure you are able to do both.
 You are NOT allowed to submit assignments using someone else's login id.

Lab 2 (Jan 18,20,21): We will do another very simple lab, very similar to lab 1. See
things to practice.
The differences will be
 You will be given higher level instructions than in Lab 1.
 All work will be individual. Collaboration is not permitted.
 If you still do not have an account you will be turned away and given zero for the lab.
 You will have enough time to finish lab 1 if you did not do so last week.
 You can only submit during the lab section you are enrolled in. Please make sure you know your lab section (Tue/Thurs/Fri).
Due to technical difficulties with the server, this lab was completed the following week.
 Lab 3 (Feb 1,3,4): Writing functions and plotting graphs.
 Lab 4: Writing procedures. Some practice problems are here.
 Lab 5: Writing functions and procedures, using ifthen. Some practice problems are here.
 Lab 6: Mar 38 (Note that there is no lab Mar 1). Lists and loops. Some practice problems are here, and the solutions: worksheet,pdf,.
 Lab 7: Mar 1015. For and while loops. Some practice problems are here and the solutions are here and pdf
here.
 Lab 8: (Mar 17,18,22) More loops.
 Lab 9: (Mar 24,25,29) Recursion.
Some practice problems are here and the solutions are here and pdf here. (NOTE: Q1 and 2 have updated solutions).
Solutions:
 Lab 1: worksheet and
pdf.
 Lab 2: worksheet and
pdf Note: the pdf file is 44 pages long.
 Labs 3 onwards are different for each lab section and solutions for your section
will be accessible fron the Moodle page.
NEW: You can download then fron this folder.
Links