2014F001
From CDS 130
This is Sheng's CDS 130 course page. All of the information that you will ever need for this course can be found here or on a page linked to from this page.
Announcements:
Final exam: December 11th (Thursday), 1:30 pm  4:15 pm, Innovation Hall, room 223
1. Thursday, Dec. 4th
Covered by Dr. Weigel
 Integration
 Assign Homework #9 Due on Dec. 9th.
2. Tuesday, Dec. 2nd
Covered by Dr. Zhang
 relational operators and logical operators
 if statements
 Assign Homework #9 Due on Dec. 9th.
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
 powerpoint slides on if statements are uploaded to Blackboard
3. Thursday, Nov. 25th
 Shapes, Text and making 2D Plots
 Homework #8 is assigned. Due on Dec. 2nd 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 animaiton
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
4. Thursday, Nov. 20th
 Matrices as images
 Shapes, Text and making 2D Plots
 Assign Homework #8 Due on Dec. 2nd before class.
5. Tuesday, Nov. 18th
 Matrices as images
 Shapes, Text and making 2D Plots
6. Tuesday, Nov. 11th
 inclass quiz.
7. Thursday, Nov. 6th
Continue to cover
 nested forloops
 Matrices as images
Forloop example given in class
8. Tuesday, Nov. 4th
Continue to cover
 nested forloops
 Matrices as images
9. Thursday, Oct. 30 th
 Iteration
 nested forloops
 Matrices as images
 Assign Homework #7 (Due on Nov. 6th, before class)
 Announcement: The makeup exam will be given in Room 249, Research I Hall, 4:10  5:25 PM
10. Tuesday, Oct. 28th
Continue to cover
11. Thursday, Oct. 23rd
 Matlab Matrices
 Iteration
 Assign Homework #6 Due on next Thursday before class (Oct. 30)
12. Tuesday, Oct. 21st
Average 80.23 GRADE DISTRIBUTION Greater than 100: 5 90  100: 14 80  89: 9 70  79: 11 60  69: 6 50  59: 5
13. Thursday, Oct. 16th
14. Thursday, Oct. 9th
 Arrays in Matlab;
[[
media:matlab_vector.doc  exercise]]
 Study guide for the midterm. Study guide
 midterm sample test Answer key
15. Tuesday, Oct. 7th
 Matlab
 datatype, input and display information media: matlab_datatype.ppt
 Arrays in Matlab
16. Thursday, Oct. 2nd
 Encoding and Computer Memory.
 Matlab
 formatting numbers
 input and display information
 Arrays in Matlab
 Assign Homework#5, due next Thursday (Oct 9th) before class.
17. Tuesday, September 30th
 Continue to cover Binary representation of negative numbers
 Userdefined Matlab functions ( powerpoint slides )
 Encoding and Computer Memory.
18. Thursday, September 25th
 Quiz
 Binary representation of negative numbers

Userdefined Matlab functions ( powerpoint slides )
19. Tuesday, September 23rd
Continue to cover
 Binary representation of negative numbers

How to build userdefined Matlab functions ( powerpoint slides )  Announcement: An inclass quiz will be given this Thursday to cover Binary arithmetic and Matlab functions.
 Homework 4 is now extended to next Thursday.
20. Thursday, September 18th
Continue to cover
 Binary representation of negative numbers
 How to build userdefined Matlab functions ( powerpoint slides )
 Assign Homework#4 Due on September 25th before class
 Announcement: An inclass quiz will be given on next Thursday (9/25).
21. Tuesday, September 16th
 Matlab: Assignment and built in functions
 Binary representation of negative numbers
 Powerpoint slides of the lecture notes can be downloaded from Blackboard.
22. Thursday, September 11th
 cover Binary Arithmetic
 Assign Homework#3 Due on September 18th before class
23. Tuesday, September 9th
 Access the virtual computing lab at mason
 Introduction to Matlab Demo: anidemo.m
 Binary representation of numbers
 Binary addition
24. Thursday, September 4th
Continue to cover
 Assign Homework#2 Due on September 11th before class
25. Tuesday, September 2nd
 MediaWiki markup help
 Binary representation of numbers
 Access the virtual computing lab at mason
 Introduction to Matlab
 Announcements: Learning Assistant Office Hours
Christopher Tan, ctan5@masonlive.gmu.edu Exploratory Hall 4102, Fridays 10 AM  2 PM Brandon Laufer, blaufer@gmu.edu Exploratory Hall 4104 Wednesdays from noon to 2 pm
26. Thursday, August 28th
 Introduce MediaWiki.

Binary representation of numbers  Assign Homework#1. Due on September 4th (next Thursday) before class.
27. Tuesday, August 26th
 I will go over the Syllabus.
 Give a broad overview of computing (Introduction).
28. Syllabus
My syllabus is everything stated at Syllabus along with the following additions and notes.
28.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.
28.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).
28.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.
28.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.
28.3. Homeworks
 Are 35% of your grade!
 Weekly Homeworks. Assigned on Thursday due on next Thursday 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
29. Important Dates
 http://registrar.gmu.edu/calendars/fall2014/
 Midterm Exam: Thursday, Oct. 16th 2014
Sep. 18th, 2014  Final Exam: Thursday, Dec. 11th, 2014
 Last class: Tuesday, Dec. 9th, 2014
30. FAQ
30.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.
30.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
30.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.
30.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 Research I, Room 225. 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. We are able to answer your questions by email or text. Over the semester, several tutoring sections will be held to work on difficult problems.
 Contact info of the learning assistants:
Christopher Tan, ctan5@masonlive.gmu.edu (7033146406) Brandon Laufer, blaufer@gmu.edu (3523289731)
 Special announcements will be made through Blackboard, such as assignments, due dates, upcoming exams, tutorials, etc.
30.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/2014F001.
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.
30.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.