Question: Problem 1 A particular chemical substance is produced from three different ingredients A , B , and C , each of which have be dissolved

Problem 1
A particular chemical substance is produced from three different ingredients A,B, and C, each of which have be dissolved in
water first before they react to form the desired substance. Suppose that a solution containing ingredient A at a concentration
of 3gcm3 is combined with a solution containing ingredient B at a concentration of 4.2gcm3 and with a solution containing
ingredient C at a concentration of 6.1gcm3 to form 22.4g of the substance. If the concentrations of A,B, and C in these
solutions are changed to 5.4gcm3,4.8gcm3, and 5.5gcm3, respectively (while the volumes remain the same), then 28.2g
of the substance is produced. Finally, if the concentrations are changed to 6.2,5.7, and 2.3gcm3, respectively, then 29.1g of
the chemical is produced. Find the volumes (in cubic centimeters) of the solutions containing A,B, and C.
Solve this problem by writing a user-defined function using Gauss method with the matrix A and vector B as input arguments
and the solution x as output, x=Gauss(A,B).
Hint: write down three equations and construct the matrix A and vector B, combine the Gauss forward elimination code and
back substitution code to a function, call the function to get the solution.
Note: No need of pivoting for this code
Write down 3 equations here
3x1+4.2x2+6.1x3=22.4
5.4x1+4.8x2+5.5x3=28.2
6.2x1+5.7x2+2.3x3=29.1
[] import numpy
def Gauss (A, B):
#construct the matrix
#Forward Elimination
#Back Substitution
return
 Problem 1 A particular chemical substance is produced from three different

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!