Question: Please don't use any AI ( MATLAB programming ) Consider the system of 2 n + 1 equations: ( a ) ( 6 points )
Please don't use any AI
MATLAB programming Consider the system of equations:
a points Write two function Mfiles to solve this system using the GENP and GEPP approaches, respectively. Your programs
have to make use of the structure of this system so that they do not do unnecessary computations and do not waste storage.
How many flops are involved in your programs?
How many memory locations are needed?
b points Write a script Mfile to test your two programs on the same data: random elements produced by MATLAB
builtin function randn note that should be equal to and defined by for and
Notice that the exact solution dots, Let and be the computed solutions by your two programs,
respectively. Compute and Here for the test purpose in MATLAB, is used
to store the coefficient matrix. In your test, you may take Comment on your results.
Note: Check MTALAB builtin functions or constants norm, cond, ones and eps, which can be used in your programs.
c points Now you change in your previous test example to and correspondingly you change so that still
satisfies Do the same thing as in b
d points Now you make other changes as well in your test example: change to and correspondingly change
so that
still holds. Again do the same thing as in b
Print out the data and computed results.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
