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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  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