Final Exam: Review Flashcards
Define a computer program
a set of instructions to perform a task that processes input and output. It is composed of a source code and an executable
List the 5 steps involved in computer programming
- Designing
- writing
- debugging
- validating
- maintaining
dootlite wont drink very much
List the three basic constructs (structures) used to program an any programing language
- sequential
- conditional
- iterative
State the fundamental problem of linear algebra
Ax=b solve for x
Is trapz more accurate than riemann sums?
yes
what is more accurate, diff or gradient
gradient
When solving a linear system of equations, if the rank of the coefficient matrix equals the rank of the augmented matrix, an explicit solution will always exist?
False
When solving a linear system of equations, if the rank of the coefficient matrix doesnt equal the rank of the augmented matrix, the system is undertimined
True
What is an efficient way of solving a system of linear equations when the rank of the coefficient matrix is less than the number of unknowns?
A\b
Can the mean function be used only to determine the mean value of a vector?
No
What is trapz used for?
determine indefinite integral with O(h^2) accuracy
What two commands can be used to calculate least squares solutions?
polyfit and \
What two commands can be used to enable the calculation of intermediate values in a given data set?
ineterp1 and polyfit
Commands to from a large excel file named data.xls assign the contents of cells A1 through A10 to the array my data
MyData=xlsread(‘data.xls’,’A1;A10’)
Commands to test a variable, y, to determine if it is between 0 and 5, inclusive of the end points
if y>1 & y<5
then g=1
end