Course page: http://www.cse.yorku.ca/course/1560 CSE/Math 1560: Introduction to Computing for Mathematics and Statistics Winter 2011 Suprakash Datta datta@cse.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cse.yorku.ca/course/1560 1/16/2019 Math/CSE 1560, Winter 2011 1
Administrivia Lectures: Mon-Wed 2:30 – 3:30 pm (VH B) Office hours: Mon-Wed, 3:30-5:00 pm, or by appointment. TA’s: TBA. http://www.cse.yorku.ca/course/1560 Webpage: All announcements, handouts will be published on the webpage -- check often for updates) Textbook: Maple Introductory Programming Guide, download link on class web page. 1/16/2019 Math/CSE 1560, Winter 2011
Administrivia – contd. Grading: Midterm: 15% Final: 25% Lab/assignments: 60% Grades: will be on online (will be linked from class homepage). 1/16/2019 Math/CSE 1560, Winter 2011
Administrivia – contd. Missed labs: If you have a valid medical reason and proper documentation, the credit will be moved to other labs If you have some other emergency, the credit will be moved at the instructor’s discretion, or the assignment will be assigned zero. Same policy for midterm, but credit will be shifted to final examination. 1/16/2019 Math/CSE 1560, Winter 2011
Course objectives Familiarity with the Maple environment. Ability to "code" 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. 1/16/2019 Math/CSE 1560, Winter 2011
What I expect from you Coming to class on time Your cellular phone(s) should be switched off or in silent mode. Active interest in the course and subject material Being prepared for the labs and assignments 1/16/2019 Math/CSE 1560, Winter 2011
Labs There will be 3-hour labs, every week. Due to the class size, there are 3 sections, Tues, Thurs, Fri 2:30-5:30 pm, all at the Gauss lab, Ross S 100. Getting access to the Lab: The Gauss Lab has a website (link on class web page), containing information about card access. 1/16/2019 Math/CSE 1560, Winter 2011
Labs: contd. Laboratory assignments are crucial to this course Assignments will be completed and submitted in the lab. Math moodle site (http://webct.math.yorku.ca) has one entry for each lab session. You will login to the session you enrolled in. Assignments are individual. You cannot solicit or obtain help from friends, the Internet, or other electronic resources. Academic dishonesty will be dealt with very seriously 1/16/2019 Math/CSE 1560, Winter 2011
Important!! You should do these ASAP: 1. activate AML account through Instructions from the Math software support group You should do these ASAP: 1. activate AML account through Passport York (http://mms.yorku.ca) 2. pickup prox-card from William Small center 1/16/2019 Math/CSE 1560, Winter 2011
What is Maple? A very powerful calculator! Symbolic computation (CAS,…) Interactive programming and debugging High-quality plots Useful for many branches of Mathematics 1/16/2019 Math/CSE 1560, Winter 2011
Resources Software Books, Tutorials Online help Contributed code My notes My slides 1/16/2019 Math/CSE 1560, Winter 2011
Computer programming Computer programs are sequences of commands that implement a solution conceived for a problem. Popular languages: Java, C/C++, Visual Basic. Different languages provide different command sets/ (and expressiveness) translate into binary strings that can be executed by the hardware. 1/16/2019 Math/CSE 1560, Winter 2011
Maple vs other languages Different workflow Interactive development Different manner of execution of code Extent of built-in functions Objective/audience 1/16/2019 Math/CSE 1560, Winter 2011
Maple versions and UI’s Different versions Different user interfaces in different platforms Separating the looks from the functionality Latest version 1/16/2019 Math/CSE 1560, Winter 2011
Samples of Maple at work indigo 196 % maple |\^/| Maple 9 (IBM INTEL LINUX) . _|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2003 \ MAPLE / All rights reserved. Maple is a trademark of <____ ____> Waterloo Maple Inc. | Type ? for help. >.......... > quit bytes used=149896, alloc=196572, time=0.01 indigo 197 % 1/16/2019 Math/CSE 1560, Winter 2011
Samples of Maple at work - 2 > 1+2; 3 > 265!; 481912654518911524985799673096098625153377036633185736895 715661220798628585073783914\ 483646725867739687622506357324016053145562770094251373138 342249823796037665437601\ 798081131855895322030484177741468300007032663150819744184 955559651767542496475389\ 355118285513974736072922389456001325563316207892398101916 582879743108107939148132\ 077795838145760036747741540454073780369029353490610439673 321239056214465847859009\ 884948492595992209201420795641312843663252108238808678400 000000000000000000000000\ 000000000000000000000000000000000000000 1/16/2019 Math/CSE 1560, Winter 2011
Samples of Maple at work - 3 > sqrt(100) > sqrt(100); syntax error, missing operator or `;`: sqrt(100); ^ > sqtr(100); sqtr(100) > ; 10 1/16/2019 Math/CSE 1560, Winter 2011
Samples of Maple at work - 4 10 > b:=a; b := 10 > b:=sqrt(b); 1/2 B := 10 > evalf(b); 3.162277660 > Pi; Pi > evalf(Pi); 3.141592654 1/16/2019 Math/CSE 1560, Winter 2011
Samples of Maple at work - 5 eclipse 190 % xmaple & 1/16/2019 Math/CSE 1560, Winter 2011
Samples of Maple at work - 6 1/16/2019 Math/CSE 1560, Winter 2011
Samples of Maple at work - 7 1/16/2019 Math/CSE 1560, Winter 2011
Using Maple Starting and exiting Getting help Interrupting Maple 1/16/2019 Math/CSE 1560, Winter 2011