Reference no: EM13315761
Solve the linear System Ax =b using Gaussian Elimination.
a) Using matlab write the function [Bag,x] = EG(A,b) to solve the system without pivoting. The solution is the vector x and flag is 0 when the algorithm is completed and 1 otherwise.
b) Run with the following two linear systems:

c) Using the tic and toc functions of matlab to estimate the time in the execution of the function of pan (a). Graph n versus time, Using systems of size n = 1000, 2000, 3000 and 4000.
d) Implement the algorithm of the part (a) to calculate the inverse of a function, using a function [B,flagpinverse(A), flag is 0 when is accomplished correctly and 1 otherwise. Run this code for find the inverse of the following matrix:

e) Now, solve the linear system Ax=b, where A is a Hilbert Matrix using the command hilb(n). Use the function of part (a) to solve this system for n 5,10,15,20 and bell^ is such that the exact solution is the vector xoeRa where all of his components are equal to 1. Show the results in a table using the format long e. Comment your results. Also, the command Mb in Matlab solves the system Ax=b, use this command to solve this to show the difference.
Find the focal length of the lens
: The size of the virtual image formed by a lens is 2 times the size of the object. Find the focal length of the lens
|
Write down a mass balance expression for a chemical release
: Write down a mass balance expression for a chemical release in a lake given the following: the lake is completely mixed, in-flow and out-flow are equal, degradation of the chemical is occurring through biodegradation (k1) and chemical transformati..
|
Calculate the image position and height
: A 2.0-cm-tall object is 20 cm in front of a converging lens that has a 10 cm focal length. Calculate the image position and height
|
How can increase the performance of least efficient reactor
: There are three reactors degrading a chemical biologically, at three degradation rates; i.e., 0.2 d^-1, 0.4 d^-1, and 1.0 d^-1. The residence time of the chemical in these reactors are 10 d, 5 d, and 55 d, respectively.
|
Calculate the inverse of a function
: Using matlab write the function [Bag,x] = EG(A,b) to solve the system without pivoting. The solution is the vector x and flag is 0 when the algorithm is completed and 1 otherwise.
|
Which reactor should be preferred for the treatment plant
: Chemical ‘A' is regulated by EPA and the maximum allowable concentration in water is 5 ?g/L. Design a reactor for a water treatment plant where 1000 ppm of chemical ‘A' is introduced at a flow rate of 100 m3/min.
|
Find the rms amplitude of current flowing through circuit
: A series RLC circuit has R = 50 %uF057, L = 2.7 %uF06DH, and C = 52 nF. find the rms amplitude of the current flowing through the circuit
|
Fiscal policy cannot affect output in the long run
: "In the Solow model, an economy that starts with a higher stock of capital per capita will reach a higher steady state level of capital per capita"
|
Calculate the magnetic flux through one turn of the wire
: A circular solenoid contains 100 turns of wire and carries a current of 2 amps. Its radius is 1 cm and its length is 10 cm. Calculate the magnetic flux through one turn of the wire
|