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

  Find the roots using matlab built-in functions roots & fzero

the following equation, what is the modified equation for a fixed-point iteration method. The roots of the function are x = -2.2020235, -0.4088152, and 1.11083871, how would you determine whether or not the method will converge on a root? If the tech..

  Consider the predator-prey models

Consider the predator-prey models developed early part of the 20 th  century in which the number of predators and preys may be predicted using the pair of ODEs

  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.

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

  Write a function that collects integers from the user until

Write a function that collects integers from the user until a 0 is encountered and returns them in a list in the order they were input (ML only).

  Create a function that will determine the total resistance

Create a function that will determine the total resistance of a number of resistors that are connected in parallel. This function should accept a row vector for input,

  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.

  Fourier transform and biosignal analysis

Fourier Transform and Biosignal Analysis - series data into its frequency components for the purpose of signal analysis and processing.

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

  F data into matlab using only the textread function?

load the following type of data into mathlab using ONLY the textread funcion? Need to import it and plot it using boxplot.

  Determine the specular component

Reparemeterizing each pixel point using spherical coordinates and rotation RGB color space to SUV color space in the paper

  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.

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