Name:
G Number:
CDS 130 - Session 001- Fall 2013
Computing for Scientists
Quiz 1
Date: September 03, 2013
1. Use one or two sentences to characterize your understanding about computing?
2. Why do you take this class?
3. Describe your level of math prepara

CDS 130 - Session 001- Fall 2013
Computing for Scientists
Homework Assignment 02 - Solution
Assignment Date: September 12, 2013
Due Date: September 19, 2013
There are 100 points in total in this homework set. For each question, do not simply
write down th

CDS 130 - Session 001- Fall 2013
Computing for Scientists
Homework Assignment 06 - Solution
Assignment Date: October 10, 2013
Due Date: October 17, 2013
Print out this homework set, and write your answers on the space provided in the
printed pages.
1 (50p

CDS 130
Department of Computational and Data Sciences
4400 University Drive, MSN 6A12
Phone: 703-993-5836, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 1
Max Points: 100%
Due Date: 1/28
Method of Delivery: Befo

CDS 130 Exam Review Spring Semester 2016
1.) Produce output:
clear; clc
a = [1, 3, -5, -7, 0];
b = [-4, 2, -10, 8, -6];
for m = 2:4
if mod(m,2) = 1
a(m) = a(m) - b(m-1);
else
b(m+1) = b(m) - a(m+1);
end
end
a
b
2.) Produce output:
clear; clc
a = 3;
b = 2;

CDS 130
Department of Computational and Data Science
4400 University Drive, MS 6C3, Fairfax, Virginia 22030
Phone: 703-993-3807, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 9
Max Points: 200%
Due Date: 4/14
Method of De

CDS 130
Department of Computational and Data Sciences
4400 University Drive, MSN 6A12
Phone: 703-993-5836, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 2
Max Points: 100%
Due Date: 2/4
Method of Delivery: Hard

CDS 130
Department of Computational and Data Science
4400 University Drive, MS 6C3, Fairfax, Virginia 22030
Phone: 703-993-3807, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 7
Max Points: 100%
Due Date: 3/24
Method of De

CDS 130
Department of Computational and Data Sciences
4400 University Drive, MSN 6A12
Phone: 703-993-5836, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 3
Max Points: 100%
Due Date: 2/11
Method of Delivery: Turn

CDS 130
Department of Computational and Data Sciences
4400 University Drive, MSN 6A12
Phone: 703-993-5836, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 8
Max Points: 100%
Due Date: 4/7
Method of Delivery: Hard copy turn

CDS 130
Department of Computational and Data Science
4400 University Drive, MS 6C3, Fairfax, Virginia 22030
Phone: 703-993-3807, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 10
Max Points: 100%
Due Date: 04/21

CDS 130
Department of Computational and Data Science
4400 University Drive, MS 6C3, Fairfax, Virginia 22030
Phone: 703-993-3807, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 5
Max Points: 100%
Due Date: 3/3
Met

CDS 130
Department of Computational and Data Science
4400 University Drive, MS 6C3, Fairfax, Virginia 22030
Phone: 703-993-3807, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 6
Max Points: 100%
Due Date: 3/17
Method of De

CDS 130
Department of Computational and Data Sciences
4400 University Drive, MSN 6A12
Phone: 703-993-5836, Fax: 703-993-9300
Web: cos.gmu.edu/cds
CDS 130 - Assignment 4
Max Points: 100%
Due Date: 2/25
Method of Delivery: Hard

CDS 130 Programming Review Exercises
The ability to program is one of the most useful skills you can develop. It doesnt matter so much what programming
language you use, the real skill is a way of thinking about solving a problem.
The only way to develop

1. function [firstind] = firstbig(x,big)
for i = 1:length(x)
if (x(i) >= big)
firstind = i;
else
firstind = 0;
end
end
2. > help firstbig
No help found for firstbig.m.
3. > x = [3, 1, -7, 5, 8];
> firstbig(x,5)
ans = 4
> x = [3, 1, -7, 5, 8];
> firstbig(x

CDS 130 - Session 001- Fall 2013
Computing for Scientists
Homework Assignment 05 - Solution
Assignment Date: October 03, 2013
Due Date: October 10, 2013
Print out this homework set, and work directly on the pages printed.
For the following homework questi

CDS 130 - Session 001- Fall 2013
Computing for Scientists
Homework Assignment 03 - Solution
Assignment Date: September 19, 2013
Due Date: September 26, 2013
There are 100 points in total in this homework set. For each question, do not simply
write down th

CDS 130 - Session 001- Fall 2013
Computing for Scientists
Homework Assignment 04 - Solution
Assignment Date: September 26, 2013
Due Date: October 03, 2013
The following work requires the usage of Matlab.
Print out this homework, and work directly on the p

Name:
G Number:
CDS 130 - Session 001- Fall 2013
Computing for Scientists
Quiz 3 - Solution
Date: October 08, 2013
1 (30 pts). What is the value of A?
> A = mod (13, 5)
Answer: 3
2 (40 pts). What is the result of A?
> A=[1, 4, 7, 6, 10, 5];
>A(1) = A(2) +

CDS 130-001 Computing for Scientists
Final Exam Review
Final Exam on December 17, 2013
1. Review Sheet
2. Sample Final Exam
CDS 130-001 Computing for Scientists
Final Exam - Review Sheet
The following is a complete list of topics that will be covered in t

CDS 130-001 Computing for Scientists
Midterm Exam - Solution
October 22, 2013
This is a closed-book closed-computer exam. Calculators are not allowed. You should
show your work and the answer on the space provided immediately below or beside each
question

CDS 130-001 Computing for Scientists
Midterm Exam Review
Midterm Exam on October 22, 2013
1. Review Sheet
2. Sample Midterm Exam
CDS 130-001 Computing for Scientists
Midterm Exam - Review Sheet
The following is a complete list of topics that will be cover

CDS 130-001 Computing for Scientists
Midterm Exam - Sample Midterm Exam - Key
Midterm Exam October 22, 2013
This is a closed-book closed-computer exam. Calculators are not allowed. Your answer should
be on the space provided immediately following each que

CDS 130-001 Computing for Scientists
Midterm Exam Review
Midterm Exam on October 22, 2013
1. Review Sheet
2. Sample Midterm Exam
CDS 130-001 Computing for Scientists
Midterm Exam - Review Sheet
The following is a complete list of topics that will be cover

CDS 130-001 Computing for Scientists
Final Exam Review
Final Exam on December 17, 2013
1. Review Sheet
2. Sample Final Exam
CDS 130-001 Computing for Scientists
Final Exam - Review Sheet
The following is a complete list of topics that will be covered in t

CDS 130 - Session 001- Fall 2013
Computing for Scientists
Homework Assignment 11 - Solution
Assignment Date: December 03, 2013
Due Date: December 10, 2013
(Note: There is no class on December 10, Tuesday. You can submit your homework
anytime before or on

CDS 130-001 Computing for Scientists
Final Exam Review
Final Exam on December 17, 2013
1. Review Sheet
2. Sample Final Exam
CDS 130-001 Computing for Scientists
Final Exam - Review Sheet
The following is a complete list of topics that will be covered in t