SlideShare a Scribd company logo
1 of 1
Download to read offline
Code using Python
HW6_3 For a system of nine interconnected tanks (shown at right), the massbalance equations
are: r 01 c 01 + r 41 c 4 r 02 c 02 + r 12 c 1 + r 52 c 5 r 03 c 03 + r 23 c 2 r 04 c 04 + r 74 c 7 r 15
c 1 + r 45 c 4 r 06 c 06 + r 26 c 2 + r 36 c 3 r 07 c 07 + r 87 c 8 r 08 c 08 + r 58 c 5 + r 48 c 4 r 59
c 5 + r 69 c 6 + r 89 c 8 = ( r 12 + r 15 ) c 1 = ( r 23 + r 26 ) c 2 = r 36 c 3 = ( r 41 + r 48 + r 45 )
c 4 = ( r 52 + r 58 + r 59 ) c 5 = r 69 c 6 = r 74 c 7 = ( r 87 + r 89 ) c 8 = r 9 The concentration of
chemical inflow into tank T i is designated c i and the initial concentration in tank T i is
designated c 0 i . The flow rate from tank T i to T j is designated r ij . Furthermore, the total flow
into each tank must equal the flow out, r (from tank 9 ). Given initial concentrations: c 01 = 1 , c
02 = 2 , c 03 = 1 , c 04 = 2 , c 06 = 1 , c 07 = 1 and c 08 = 1 , in g / L given flow rate between
tanks: r 12 = 6 , r 15 = 2 , r 23 = 5 , r 26 = 5 , r 36 = 8 , r 41 = 5 , r 45 = 1 , r 48 = 1 , r 52 = 1 , r
58 = 2 , r 59 = 1 , r 69 = 15 , r 74 = 4 , r 87 = 2 , r 89 = 3 , in L / min and given external flow
rates (i.e., inflow into the tanks from outside): r 01 = 3 , r 02 = 3 , r 03 = 3 , r 04 = 3 , r 06 = 2 , r
07 = 2 , r 08 = 3 , in L / min Note: r = r 01 + r 02 + r 03 + r 04 + r 06 + r 07 + r 08 With these
given parameters we can solve for the concentrations in the tanks. Write a PYTHON code to
solve for these concentrations using Gauss-Seidel, to an accuracy of 5 sig figs. Use print
statement to print the final answer for the concentrations.

More Related Content

More from akdavinderhosiery

COB 2 - There are three main genes that control sweetness in corn- the.pdf
COB 2 - There are three main genes that control sweetness in corn- the.pdfCOB 2 - There are three main genes that control sweetness in corn- the.pdf
COB 2 - There are three main genes that control sweetness in corn- the.pdfakdavinderhosiery
 
Clostridium difficile is an HAl- Discuss what factors are promoting th.pdf
Clostridium difficile is an HAl- Discuss what factors are promoting th.pdfClostridium difficile is an HAl- Discuss what factors are promoting th.pdf
Clostridium difficile is an HAl- Discuss what factors are promoting th.pdfakdavinderhosiery
 
Climate forcings and feedbacks are similar in that they both have the.pdf
Climate forcings and feedbacks are similar in that they both have the.pdfClimate forcings and feedbacks are similar in that they both have the.pdf
Climate forcings and feedbacks are similar in that they both have the.pdfakdavinderhosiery
 
Client Information- Julia Swanson and her now ex-husband- Kevin- were.pdf
Client Information- Julia Swanson and her now ex-husband- Kevin- were.pdfClient Information- Julia Swanson and her now ex-husband- Kevin- were.pdf
Client Information- Julia Swanson and her now ex-husband- Kevin- were.pdfakdavinderhosiery
 
Click the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdfClick the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdfakdavinderhosiery
 
Click on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdfClick on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdfakdavinderhosiery
 
Click the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdfClick the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdfakdavinderhosiery
 
Click and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdfClick and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdfakdavinderhosiery
 
Click the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdfClick the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdfakdavinderhosiery
 
Click here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdfClick here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdfakdavinderhosiery
 
Classify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdfClassify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdfakdavinderhosiery
 
Classifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdfClassifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdfakdavinderhosiery
 
Classification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdfClassification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdfakdavinderhosiery
 
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdfClassifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdfakdavinderhosiery
 
Classification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdfClassification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdfakdavinderhosiery
 
Classification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdfClassification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdfakdavinderhosiery
 
Clara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdfClara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdfakdavinderhosiery
 
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdfClarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdfakdavinderhosiery
 
choose the one correct answer - 33- A good surveillance system shoul.pdf
choose the one correct answer -   33- A good surveillance system shoul.pdfchoose the one correct answer -   33- A good surveillance system shoul.pdf
choose the one correct answer - 33- A good surveillance system shoul.pdfakdavinderhosiery
 
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype  SARS-.pdfCladogram or phylogram- What do the colors represent- virustype  SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdfakdavinderhosiery
 

More from akdavinderhosiery (20)

COB 2 - There are three main genes that control sweetness in corn- the.pdf
COB 2 - There are three main genes that control sweetness in corn- the.pdfCOB 2 - There are three main genes that control sweetness in corn- the.pdf
COB 2 - There are three main genes that control sweetness in corn- the.pdf
 
Clostridium difficile is an HAl- Discuss what factors are promoting th.pdf
Clostridium difficile is an HAl- Discuss what factors are promoting th.pdfClostridium difficile is an HAl- Discuss what factors are promoting th.pdf
Clostridium difficile is an HAl- Discuss what factors are promoting th.pdf
 
Climate forcings and feedbacks are similar in that they both have the.pdf
Climate forcings and feedbacks are similar in that they both have the.pdfClimate forcings and feedbacks are similar in that they both have the.pdf
Climate forcings and feedbacks are similar in that they both have the.pdf
 
Client Information- Julia Swanson and her now ex-husband- Kevin- were.pdf
Client Information- Julia Swanson and her now ex-husband- Kevin- were.pdfClient Information- Julia Swanson and her now ex-husband- Kevin- were.pdf
Client Information- Julia Swanson and her now ex-husband- Kevin- were.pdf
 
Click the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdfClick the icon to view the data for the four projects Fill in the tabl.pdf
Click the icon to view the data for the four projects Fill in the tabl.pdf
 
Click on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdfClick on the Nash Equilibria (one or more) of this game (click on the.pdf
Click on the Nash Equilibria (one or more) of this game (click on the.pdf
 
Click the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdfClick the icon to view the interest and annuity table for discrete com.pdf
Click the icon to view the interest and annuity table for discrete com.pdf
 
Click and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdfClick and drag the terms on the left to fill in the blanks in the sent (1).pdf
Click and drag the terms on the left to fill in the blanks in the sent (1).pdf
 
Click the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdfClick the icon to view the interest factors for discrete compounding w (1).pdf
Click the icon to view the interest factors for discrete compounding w (1).pdf
 
Click here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdfClick here to access StatKey- Round your answer for the intercept to o (1).pdf
Click here to access StatKey- Round your answer for the intercept to o (1).pdf
 
Classify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdfClassify each description according to the correct spinal cord structu.pdf
Classify each description according to the correct spinal cord structu.pdf
 
Classifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdfClassifying Cash Flows Identify whether each of the following would be.pdf
Classifying Cash Flows Identify whether each of the following would be.pdf
 
Classification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdfClassification- The following items are part of the cytoskeleton- Resp.pdf
Classification- The following items are part of the cytoskeleton- Resp.pdf
 
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdfClassifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
Classifying Intangible Costs on the Balance Sheet The adjusted trial b.pdf
 
Classification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdfClassification- The following items are organelles found in animal cel (1).pdf
Classification- The following items are organelles found in animal cel (1).pdf
 
Classification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdfClassification- The following are basic building blocks of biopolymers.pdf
Classification- The following are basic building blocks of biopolymers.pdf
 
Clara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdfClara did very well on her Biology midterm- The Biology midterm scores.pdf
Clara did very well on her Biology midterm- The Biology midterm scores.pdf
 
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdfClarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
Clarice- an 11 year-old girl- was eating her school dinner one lunchti.pdf
 
choose the one correct answer - 33- A good surveillance system shoul.pdf
choose the one correct answer -   33- A good surveillance system shoul.pdfchoose the one correct answer -   33- A good surveillance system shoul.pdf
choose the one correct answer - 33- A good surveillance system shoul.pdf
 
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype  SARS-.pdfCladogram or phylogram- What do the colors represent- virustype  SARS-.pdf
Cladogram or phylogram- What do the colors represent- virustype SARS-.pdf
 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 

Code for Solving Tank Concentrations Using Python

  • 1. Code using Python HW6_3 For a system of nine interconnected tanks (shown at right), the massbalance equations are: r 01 c 01 + r 41 c 4 r 02 c 02 + r 12 c 1 + r 52 c 5 r 03 c 03 + r 23 c 2 r 04 c 04 + r 74 c 7 r 15 c 1 + r 45 c 4 r 06 c 06 + r 26 c 2 + r 36 c 3 r 07 c 07 + r 87 c 8 r 08 c 08 + r 58 c 5 + r 48 c 4 r 59 c 5 + r 69 c 6 + r 89 c 8 = ( r 12 + r 15 ) c 1 = ( r 23 + r 26 ) c 2 = r 36 c 3 = ( r 41 + r 48 + r 45 ) c 4 = ( r 52 + r 58 + r 59 ) c 5 = r 69 c 6 = r 74 c 7 = ( r 87 + r 89 ) c 8 = r 9 The concentration of chemical inflow into tank T i is designated c i and the initial concentration in tank T i is designated c 0 i . The flow rate from tank T i to T j is designated r ij . Furthermore, the total flow into each tank must equal the flow out, r (from tank 9 ). Given initial concentrations: c 01 = 1 , c 02 = 2 , c 03 = 1 , c 04 = 2 , c 06 = 1 , c 07 = 1 and c 08 = 1 , in g / L given flow rate between tanks: r 12 = 6 , r 15 = 2 , r 23 = 5 , r 26 = 5 , r 36 = 8 , r 41 = 5 , r 45 = 1 , r 48 = 1 , r 52 = 1 , r 58 = 2 , r 59 = 1 , r 69 = 15 , r 74 = 4 , r 87 = 2 , r 89 = 3 , in L / min and given external flow rates (i.e., inflow into the tanks from outside): r 01 = 3 , r 02 = 3 , r 03 = 3 , r 04 = 3 , r 06 = 2 , r 07 = 2 , r 08 = 3 , in L / min Note: r = r 01 + r 02 + r 03 + r 04 + r 06 + r 07 + r 08 With these given parameters we can solve for the concentrations in the tanks. Write a PYTHON code to solve for these concentrations using Gauss-Seidel, to an accuracy of 5 sig figs. Use print statement to print the final answer for the concentrations.