EGR 103/Fall 2016/Lab 7
Jump to navigation
Jump to search
- The first three problems primarily require setting up the appropriate matrix of coefficients of your unknowns and vector of solutions, which can then be used to solve for your unknowns using left divide. In some cases the equations are already given in the right "form" - in others, you will need to get the unknowns on one side and the constant terms on the other.
- Palm 8.5(b) will require you to run a loop that changes
b
based on differing values ofc
. You will also need to pull specific values out of the solution to the linear algebra problem - which will be a 3x1 matrix containing the \(x\), \(y\), and \(z\) values for a particular c - and store them in the right location within thex
,y
, andz
vectors. - The fifth problem is similar to the first three, although you have to come up with equations.
- The sixth problem starts by having you solve a specific case and then asks you to write a function for particular cases. Note that you will have two if trees - one based on the number of input arguments given and one based on the condition number of the system. You can use any condition number you like; typically the condition number based on the 2 norm is used. Chapra p. 39 is useful in terms of the specific plot information.