Introduction To Computing Using Matlab: CS 1112 Fall 2013 (CS1142) Dr. K.-Y. Daisy Fan
Introduction To Computing Using Matlab: CS 1112 Fall 2013 (CS1142) Dr. K.-Y. Daisy Fan
Using Matlab
CS 1112 Fall 2013
(CS1142)
Dr. K.-Y. Daisy Fan
http://www.cs.cornell.edu/courses/cs1112/
Todays lecture
An illuminating problem
CS1112 philosophies & syllabus
What is computer programming?
Choosing between CS1112 & CS1110
Course logistics/policies (highlights)
How about CS1115? Introduction to
Computational Science and Engineering Using
Matlab Graphical User Interfaces
Lecture 1
Suppose A > 0
Observation: If A is the area of a square, then I can just
measure the side lengththat is A
Idea: Make a square with area A
Real task: Make a sequence of increasingly square
rectangles, each with area A
Lecture 1
Lecture 1
An improvement strategy
A/L
Current:
L
Recipe:
Lnew = (L + A/L) / 2
The average of
the length and
width.
A/Lnew
Next:
Lnew
Lecture 1
11
Course Goals
Lecture 1
12
A sense of geometry
Lecture 1
13
A sense of complexity
14
A sense of complexity
About a century
Lecture 1
16
Random walk
Brownian motion in water
Lecture 1
17
Course Goals
Lecture 1
18
Computer problem-solving
Key: Algorithmic thinking
Algorithm:
A step-by-step procedure that takes you from a
prescribed set of inputs to a prescribed set of
outputs
Program:
The algorithm expressed in a specific language, e.g.,
Matlab
Lecture 1
19
Lecture 1
20
Reference: iTunes
Lecture 1
21
Lecture 1
22
Reference: iTunes
Lecture 1
23
Lecture 1
24
Computer programming is
Lecture 1
25
Develop programs
28
Lecture 1
29
Lecture 1
31
100
200
300
400
500
600
700
800
900
Lecture 1
100
200
300
400
500
600
700
800
900
32
1000
33
CS1112
No prior
programming
experience
One semester of
Calculus
Focus on
computational
science & engineering
Matlab
CS1110
Lecture 1
No prior
programming
experience
No Calculus
Focus on software
development
Python
35
36
CS1112 requirements
Attend lecture
Attend discussionget individual attention/help on
weekly exercises!
Monitor course announcements on website
Do homework: best 5 of 6 programming projects
Take 2 prelims and a final exam at their scheduled times
Answer in-class quizzes (use your clicker)
Adhere to the Code of Academic Integrity
Lecture 1
41
Grading
Lecture 1
42
Course Materials
An iClicker clicker
MATLAB Student Version (2008 or
later) optional because you can use
it in the public labs
Lecture 1
43
Upson B-7
ACCEL
44
What to do now?
Pick a course
Take CS1112, CS1110, or CS1115
(add/drop: lecture and discussion and AEW)
45
Time
Room
201
T 12:20-1:10p
202
T 1:25-2:15p
203
T 2:30-3:20p
204
T 3:35-4:25p
205
W 10:10-11:00a
206
W 11:15a-12:05p
207
W 12:20-1:10p
208
W 1:25:2:15p
209
W 2:30-3:20p
210
W 3:35-4:25p
48