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

  Implement linear support vector machine to classify data

code to implement linear Support vector machine to classify data (without using matlab built in function).

  Cell array named carray that will hold numbers and text

In MATLAB, write a program to create a cell array named CArray that will hold numbers and text. Create a loop that first asks for an 'n' to be entered for a number or an 's' to be entered for a text string. If neither an n nor an s is entered, end..

  Write a user-defined matlab function

Write a user-defined MATLAB function that calculate the condition number of an (nxn) matrix by using the 1-norm. for the function name and arguments use c = condNum_one(A).

  Write a matlab program segment

Plot the given function in MATLAB for x ranging from -1 to 1. Put a proper title of the plot, also label the axes appropriately.

  Write mass balance equations for the remaining reactors

Write mass balance equations for the remaining 4 reactors. Put the known values in the 5 equations and convert each equation into a form where left hand side contains all the variables and the right hand side the constant term.

  Write the command and assign it to variable

Write the command and assign it to variable , Write a function named function_test

  Table of hurricane categories and associated wind speeds

Review the following table of Hurricane categories and associated wind speeds (miles per hour) and storm surge levels (feet above normal).

  Matlab has a built-in ability to perform mathematical

MATLAB has a built-in ability to perform mathematical operations on complex numbers. However, there are times when it is useful to treat complex numbers as a structure. Write a set of functions with the following capability and a script to verify ..

  One-dimensional steady-state heat flow

A one-dimensional steady-state heat flow, the mathematical formulation of problem - find out the temperature differences at each locations and calculate the temperatures at each locations

  Calculate the value of the sum

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

  Simulate rigid body mechanics

Write a MATLAB code to simulate rigid body mechanics. Create a video file of a free falling rod. Neglect effects from drag or loss of kinetic energy. Make sure the rod falls onto one end showing how the rigid body reacts to hitting the ground. Cannot..

  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