2015F001
From CDS 130
The final exam is rescheduled on Thurs. 12/17 1:30 pm  4:15 pm
Final exam is on Mon. 12/14, 1:30 pm  4:15 pm
1. Thursday, Decomber 10th
 Review session
2. Tuesday, December 8th
 Population growth (Additional learning materials have been uploaded to Blackboard).
 Example:
Consider the following model of population
Every year, population increases a value of 10% of the population in the previous year. However, if the predicted population is over 100,
a disease outbreak instantly kills 80% of this predicted population value. For example, if the predicted population is 110, then the next year the population is 0.2*110. Use Matlab to plot population as a function of time for 40 years. Assume that the initial population is 20.
3. Thursday, December 3rd
Continue to cover
4. Tuesday, December 1st
 while loops
 Integration
 Assign Homework #10 Due on December 10th
5. Tuesday, November 24th
 if statements, relational operators and logical operators
 Assign Homework #9 due on December 1st before class
Relational operators: >, <, >=, <=, ==, ~= Logical operators: ~,  , & precedence of the operators: 1. parenthesis () 2. ~ 3. math operators: ^, *, /, +,  4. relational operators: > <, >=, <=, ==, ~= 5. and operator: & 6. or operator:  For example: ab&c is evaluated as a(b&c); a > b + c & d is evaluated as (a > (b + c) ) & d
6. Thusday, November 19th
continue to cover
7. Tuesday, November 17th
 Matrices as images
 Shapes, Text and making 2D Plots
 Homework #8 is assigned. Due on Nov. 24th before class.
 Code to draw circles
clear all; clc; theta = linspace(0, 2*pi, 1000); r = 1.0; x = r* cos(theta); y = r* sin(theta); plot (x,y, 'b', 'MarkerSize', 16); axis off axis square print dpng 'circle.png'
Draw a circle in animation
theta = 0:2*pi/60:2*pi; r = 1.0; x = r* cos(theta); y = r* sin(theta); for i = 1:60 plot (x(i), y(i), 'or', 'MarkerSize',20) plot (0.8*x(i), 0.8*y(i), '*g') hold on axis square axis off axis ([1 1 1 1]) drawnow pause(1) end
8. Thursday, November 12th
9. Tuesday, November 10th

Matrices as images 
Shapes, Text and making 2D Plots 
Homework #8 is assigned. Due on Nov. 17th before class.
10. Thursday, November 5th
 Matrices as images
 Download the Data file to your directory, name it as data.dat, and load it into your MATLAB session by: >> load data.dat
Announcement: An inclass quiz will be given next Thursday (11/12) to cover Matlab assignment, builtin functions, userdefined functions, iterations and creating images.
11. Tuesday, November 3rd
12. Thursday, October 29th
13. Tuesday, October 27th
 Iteration
 nested forloops
 Matrices as images
 Load data
 Assign Homework #7 (Due on November 10th before class)
14. Thursday, October 22nd
continue to cover
Download the Data file to your directory, name it as data.dat, and load it into your MATLAB session by: >> load data.dat;
15. Tuesday, October 20th
Download the Data file to your directory, name it as data.dat, and load it into your MATLAB session by: >> load data.dat;
 Assign Homework 6 due on next Tuesday, Oct. 27th, before class.
16. Thursday, October 15th
17. Thursday, October 8th
 Continue to cover Assignment and built in functions
 study guide
 sample midterm exam , answer key
18. Tuesday, October 6th
 Matlab: Assignment and built in functions
 Assign Homework #5 (due on
next Tuesday, Oct. 13thThursday, Oct. 15th, before class)
19. Thursday, October 1st
 continue to cover A basic computer
 Review homework problems.
 short inclass quiz, solution
20. Tuesday, September 29th
 Logic Gates
 A basic computer
 A binary adder configured with logic gates.
21. Thursday, September 24th
22. Tuesday, September 22nd
 Encoding and Computer Memory.

Logic Gates 
A basic computer  Assign Homework#4 Due on Oct. 6th before class
23. Thursday, September 17th
 Binary representation of negative numbers
 Encoding and Computer Memory.
24. Tuesday, September 15th
 Binary Arithmetic
 Binary representation of negative numbers
 Assign Homework#3 Due on Sep. 22nd (next Tuesday) before class
25. Thursday, September 10th
continue to cover
26. Tuesday, September 8th
 Binary representation of numbers
 Binary addition
 Assign Homework#2 Due on September 15th before class
27. Thursday, September 3rd
 Give a broad overview of computing (Introduction).
 Introduction to Matlab; example: anidemo.m
 Access the virtual computing lab at mason
 Binary representation of numbers
28. Tuesday, September 1st
 I will go over the Syllabus.
 Give a broad overview of computing (Introduction).
 Introduce MediaWiki.
 Assign Homework#1. Due on September 8th (next Tuesday) before class.
29. Syllabus
My syllabus is everything stated at Syllabus along with the following additions and notes.
29.1. Format
This is a threecredit course. Active learning techniques will be used during my lectures. After presenting a major concept I will pose a question which you will think about, discuss with your neighbor, and then possibly present your answers.
29.2. Evaluation
Each student will be responsible to cover the material taught in class, do the assigned homework exercises. There will be midterm and final exams. Class attendance will also be counted into their final grades (see below).
29.2.1. Composition of Final Grades
10% attendance and inclass quizzes
35% homeworks
25% midterm exam
30% final exam
Two of the exams are 2 ~ 2.5 hour quizzes given during lecture sessions, the last exam will fall during finals' week.
29.2.2. Final Letter Grades
Final letter grades will be determined by total weighted scores from the composition o the final grades. The approximate score breakdown will be:
90 and above  A 
8089.999  B 
7079.999  C 
5569.999  D 
Less than 55  Failing 
Note that these are the approximate score assignments: if your score falls at the border (e.g., between an A and B), your effort will decide the final grade: improvement over the course of the term; attitude in doing the problem sets; interactions with the lecturer during class etc.
29.3. Homeworks
 Are 35% of your grade!
 Weekly Homeworks. Assigned on Tuesday due on next Tuesday before class
 Will partially work many difficult problems in class
 Most homeworks will be turned in electronically
 Late penalty = 20% if late by less than 7 days; 40% if more than 7 days late; 0 credit if more than two weeks late
30. Important Dates
 http://registrar.gmu.edu/calendars/Fall2015/
 Midterm Exam: Thursday, 10/15/2015, 3:00 pm  4:15 pm (Innovation Hall, Room 223)
 Final Exam: Mon. 12/14, 1:30 pm  4:15 pm (Innovation Hall, Room 223)
 Last class: Thursday, Dec. 10th , 2015
31. FAQ
31.1. Exactly what kind of problems will I be able to solve?
To get a taste of it, here are two examples students worked on later in the last semester Tumor  Antialias.
31.2. Am I qualified for this course?
If you are concerned with math, most likely you are qualified for this course, provided that you understand
 Trigonometry and Transcendental Functions
 Some mathematical concepts to simplify science problems
31.3. How much programming is needed?
There is no requirement on programming languages.
In this course, a highlevel computing language Matlab will be taught. Matlab is a powerful mathematical tool that offers a computing environment for numerical computation, graphics and visualization.
Students may access and use MATLAB without charge either on campus or from any computer with an internet connection. There are three ways to use Matlab at Mason:
 Via access to the virtual computing lab at Mason
 Matlab is installed on all computers in various computer labs on campus. Simply log on, and there is Matlab.
 Install Matlab on your personal computer. A $109dollar student version of MATLAB may be purchased at Patriot Computers.
Tutorials on accessing and using Matlab will be given to students as class progresses.
31.4. What if I have a question about homeworks and am having difficulty understanding the course content?
 My office hours will be held following each class or by appointment (hsheng@gmu.edu). My office is located in Planetary Hall, Room 211. Usually I will be available after class and would like to interact with students. There are two learning assistants for this course. Both the learning assistants and I will grade your homeworks, exams, and quizzes. Over the semester, several tutoring sections will be held to work on difficult problems.
 Contact info of the learning assistants:
Josiah Eidson, jeidson@masonlive.gmu.edu (7032681040) Brandon Laufer, blaufer@gmu.edu Note the phone numbers are only provided for making appointments. Do not ask difficult questions by text.
 Special announcements will be made through Blackboard, such as assignments, due dates, upcoming exams, tutorials, etc.
31.5. Do we have a textbook for this course?
None. The course "Computing for Scientists" was newly approved as a general education course at GMU. It has been codeveloped by several faculty members at the CDS department. A wiki page ([1]) was created. All course materials covered in the current section can be obtained from http://cds130.org/2015F001.
The wiki page was designed to facilitate student interaction and to fulfill the IT requirements.
IMPORTANT: Additional course materials (lecture notes and problem sets) will be posted on Blackboard.
31.6. Draft Schedule
(Red links are for pages that are not complete)
 Week 1: Course Introduction, Syllabus and course logistics,Entry survey,Introduction to MediaWiki, Screenshots
 Week 2: Binary representation of numbers
 Week 3: Binary addition, Matlab.
 Week 4: Binary Arithmetic, Binary_representation_of_negative_numbers
 Week 5: Assignment and built in functions
 Week 6: Transistors, Logic_Gates,A basic computer.
 Week 7: Midterm review
 Week 8: Midterm exam
 Week 9: Matrices,images
 Week 10: Shapes, Text and 2D Plots Iteration
 Week 11: Nested_For_Loops
 Week 12: if statements
 Week 13: Numerical_Integration
 Week 14: Population growth
 Week 15: Final exam review
 Week 16: Final Exam.