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

  Determine the volume of the pyramid

Determine the volume of the pyramid. When the user enters every value, they will then be prompted also for either 'i' for inches, or 'c' for centimeters.

  The concentration of medication in the blood declines

After a dose, the concentration of medication in the blood declines due to metabolic processes. The half-life of a medication is the time required after an initial dosage for the concentration to be reduced by one-half.

  Script that will graphically show the range of frequency

the script that will graphically show the range of frequencies for which the ouput amplitude is less than 70% of the input amplitude. The original problem statement

  Function that will use the secant method to try to find

Create a function that will use the Secant method to try to find a root. (Hint modify the posted version of False Position.) Because this method may diverge

  Design and fir filter in matlab

What does the pole-zero diagram tells you about the filter

  Generate a sphere of diameter 3. create 3 vectors

Generate a sphere of diameter 3. Create 3 vectors representing the translation of this sphere along the x, y, and z axes. Generate the correct vectors given the description below: The sphere should be translated to (-10, -10, -10).

  Plot the lines using the inputted vector of x values and x

Write a function named solveSystem that has three inputs: two vectors consisting of coefficients [a b c] of two line equations of the form ax + by = c and a vector of x values.

  Error between the exact solution and explicit solution

Calculate the error between the exact solution and explicit solution and draw the exact solution and compare the results.

  Calculate the value of the sum

Using matlab-Write the function [M.] = suma(x) that calculates the sum for the left(M) and right

  Create a vector in matlab

Create a three dimensional diagram of function.

  Matlab program which will determine your vehicle fuel usage

Create a MATLAB program which will determine your vehicle fuel usage (MPG, miles/gallon) rating for a user defined number of trips ('for' repetition structure). Review the voiceover supplied for an example of the required input/output from this progr..

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