Calculate the inverse of a function

Assignment Help MATLAB Programming
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:

184_matrix.png

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:

 

1663_matrix 1.png

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.

 

 

Reference no: EM13315761

Questions Cloud

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

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

  Write a matlab function that takes a matrix

Write a MATLAB function that takes a matrix, a row number and a column number. Beginning with the row number passed to the function, scan down the column passed to the function and return the row number that contains the largest absolute value in ..

  Does the root directory have any subdirectories

Does the root directory have any subdirectories you cannot search as an ordinary user? Does the root directory have any subdirectories you cannot read as a regular user? Explain.

  Determine and explain cost function and decision variables

Determine and explain the cost function and decision variables and define a problem of your choice which can be tackled by Biologically Inspired Methods.

  Plot way forms for the subsequent modulation schemes

Plot way forms for the subsequent modulation schemes using Matlab

  Determine the size for variables used in matlab program

If b=3, a=6 how many loops would the given program do? what will be the out put for z(4)? what would be size (in rows and columns) for variables z, i and b?

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Write a system program for bus arbiter

The bus arbiter is a device used in multi-master system with shared bus. It is used to allocate the control of the shared system bus to one master at a time depending priority.

  Beginning with the row number passed

Write a MATLAB function that takes a matrix, a row number and a column number. Beginning with the row number passed to the function, scan down the column passed to the function and return the row number that contains the largest absolute value in ..

  Integration and random numbers

assemble 1,000 bolt + hole combinations. The bolts have a mean diameter of 1.000 cm, normally distributed with standard deviation of 0.010 cm. The holes have a mean diameter of 1.030 cm, normally distributed with standard deviation of 0.015 cm.

  Mobile robot control and potential field

Write a MATLAB code to compute forces due to each obstacle and goal. Compute total force on vehicle at point(x,y).

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd