Unformatted text preview: What is on the exam? Writing functions in C Writing functions in Matlab Doing the same things in both I.e. 1 dimensional vectors and 1 dimensional arrays A loop and some IF statements Solving problems with summations Dealing with character codes and text Explaining why one might be better than the other for a particular problem
March 2005 R. Smith - University of St Thomas - Minnesota 6 Looking at the Cheat Sheet Studying: you should know how to use EVERYTHING on the Cheat Sheet. C Matlab Summations Function Formats Other Syntax March 2005 R. Smith - University of St Thomas - Minnesota 7 Sum of integers 1 through N
int sumi (int n) { int i; // index for the for loop int t; // total of the sum t = 0; for (i = 1; i <= n; i++) { t = t + i; } return t; }
March 2005 R. Smith - University of St Thomas - Minnesota 8 Sum of a vector K...
View
Full Document
- Fall '08
- SMITH
- Summation, St Thomas, R. Smith, University of St Thomas
-
Click to edit the document details