9. (25 points) Write a MATLAB program in which you set up a loop that will solve the linear system Ax-b below for 1,X2X3 for
9. (25 points) Write a MATLAB program in which you set up a loop that will solve the linear system Ax-b below for 1,X2X3 for pressure values from 15-150 psia in increments of 15 psia A single user function should be written to evaluate the c
onstants for the right hand side of the equation which are a function of the pressure according to the description below 3X1 6X2 X3 bl Sx +8x2 +2x3 = b2 -2x1 +3x + 5x3 = b3 For P>= 10 and P 50 and P 100 bl-0.55 +2.5 x 102p2 b2-0.35 +6.5 x 10pl5 b3-1.5 + 8.0 x 102P03 For P100 and P 150 b1-5 (log10 P) b2-30 (logioP) b3-100 (logioP) For each pressure the following output should be produced giving the solutions. For a Pressure of *** psia The value of x1 is: **** The value of x2 is: **.** The value of x3 is: ** **
9. (25 points) Write a MATLAB program in which you set up a loop that will solve the linear system Ax=b below for X1, X2 & xz for pressure values from 15-150 psia in increments of 15 psia A single user function should be written to evaluate the constants for the right hand side of the equation which are a function of the pressure according to the description below 3x1 + 6x2 - X3 5xi +8x2 + 2x3 -2x1 + 3x2 + 5x3 - 61 12 b3 For P >= 10 and P 50 and P 100 and PStep by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started