Determine the level of absolute approximate relative error

Assignment Help MATLAB Programming
Reference no: EM13309453

Include all your programs and their input and output in ONE .doc or .pdf file. Also, include all your comments on the same file. Submit the file using turn-it-in to be found in the assessment menu on your L@G account. Please be reminded that turn-it-in allows submission only once. The marks for the two questions are 10 + 10.

1. Engineers often use thermodynamics extensively in their work. The following polynomial can be used in relating the zero-pressure specific heat of dry air cp kJ/(kg K) to temperature (K):

cp = 0.99403 + 1.671 * 10-4T + 9.7215 * 10-8T2 - 9.5838* 10-11T3 + 1.9520 * 10-14T4.

Write a MATLAB program that does the following things.

a) Convert the equation into f(T) = 0 when cp of 1.1kJ/kgK. In our MATLAB program, develop a plot of f(T) versus a range of T = 0 to 1200 K. MATLAB. On the axes, put proper labelling.

b) Use your plot to graphically select two points that bracket a solution. In your program write a bisection algorithm to find the value of T such that f(T) = 0 using the two selected points as your initial values.

c) Your algorithm will find the value of T up to 10 decimal places. Determine the level of the absolute approximate relative error to be achieved in this case. Use the error level as the stopping condition in your program.

d) In each iteration, your program should display the current root and the current value of relative approximate error.

e) Show your selected points and the root in the plot as well with their x values.

2. Consider the following system of linear equation:
2x1 - 6x2 - x3 = -38
-3x1 -x2 + 7x3 = -34
-8x1 + x2 - 2x3 = -20

a) Check whether system has no solution, infinite number of solutions or ill-conditions. Perform this checking from the coefficient and constant matrices.

b) Manually solve the system of linear equation using Gauss elimination method with partial pivoting.

Consider 3 decimal places. Show all steps of your computation in detail.

c) Once you obtain the solution, go to MATLAB's command window to compute the solutions by using Cramer's Rule and verify the correctness of the solution.

d) Considering the values obtained from MATLAB as true value, compute the absolute relative errors for the values that you manually calculated for each of variables.

e) Include all your computation details, and MATLAB command window activities in your file to be submited.

Reference no: EM13309453

Questions Cloud

Find the distance of the image of the virtual object : A virtual object is located to the right of a diverging lens whose focal length is -f cm. Find the distance of the image of the virtual object measured with respect to the the lens
Three different partnership interests : Consider three people with three different partnership interests, and determine each individual's basis for partnership interest in the following three independent situations.
Define what is the rate constant of a first-order reaction : What is the rate constant of a first-order reaction that takes 5.80 minutes for the reactant concentration to drop to half of its initial value
Find the radius at which the magnetic field is zero : A wire of radius a is surrounded by a cylindrical conductor of inner radius a and outer radius 2a,. find the radius at which the magnetic field is zero
Determine the level of absolute approximate relative error : 2006ENG Numerical and Data Analysis. Convert the equation into f(T) = 0 when cp of 1.1kJ/kgK. In our MATLAB program, develop a plot of f(T) versus a range of T = 0 to 1200 K. MATLAB. On the axes, put proper labelling.
Find in which direction will current flow in each loop : A long straight wire carries a current that is increasing at the rate of one ampere per microsecond. find In which direction will current flow in each loop
Explain what was the molarity of the ga(oh)3 solution : Pretend that the HCl of this reaction is used in the neutralization of 45mL of a solution of Ga(OH)3. What was the molarity of the Ga(OH)3 solution
What is the voltage across the gap in the broken wire : The negative terminals of three batteries (3V, 6V, 9V) are each connected to a 150 ohm resistor. what is the voltage across the gap in the broken wire
Compute the amount of hno2 present in solution : Can you please show me how to solve this. I do not need just a numerical answer! Thank you! A solution containing HNO2 has pH=3.40 at equilibrium. Calculate the amount of HNO2 present in 575ml of this solution Ka=4.0x10exp-4

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Calculate an approximation to the energy consumed

Calculate an approximation to the energy consumed over the period and calculate an approximation to the energy consumed over the period t = a to t = b.

  Using matlab and for loops

Using MATLAB and for loops, provide an animation that follows the below steps: Start with a square at the origin with each side being 5 units long. Imagine someone kicked the box and animate it moving on a projectile motion trajectory. Hint: look at ..

  Implement the finite difference method

Write a computer program to implement the finite difference method. The program can be in any computer language that is available within the school. Set up the code to find the potential for a parallel plate capacitor in the box shown below, all dime..

  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).

  Develop a simulation program

Develop a simulation program

  Writing a matlab script to approximate exp(x)

writing a matlab script to approximate exp(x) at exp(.05) using ""Taylor series"" ""and"" a ""while loop"".

  Modify the functions for the bisection and false-position

Modify the functions for the bisection and false-position techniques of finding a root of an equation (see below questions) so that the number of iterations can be determined and displayed. (The count should only be displayed after the loop is com..

  Write a script to solve the following systems of equations

Write a script to solve the following systems of equations using both matrix left division (\) and the inverse matrix method and Show that you have tested your MATLAB code appropriately

  Secant method to tryt to find out the root

create a function that will use the secant method to tryt to find out the root

  Write project report and provide cross-synthesis

Write project report and provide Cross-synthesis.

  Linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM.

  Computes the stiffness matrix for one bilinear element with

write Matlab code that computes the stiffness matrix for one bilinear element with 4 nodes

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