Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions

Question

What are the key steps in diagnosing a conflict situation?

Answered: 1 week ago

Question

2. Describe how technology can impact intercultural interaction.

Answered: 1 week ago

Question

7. Define cultural space.

Answered: 1 week ago