Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The dissolution of copper sulfide in aqueous nitric acid is described by the following chemical equation: where a, b, c, d, e,f,andg are the numbers

image text in transcribed

The dissolution of copper sulfide in aqueous nitric acid is described by the following chemical equation: where a, b, c, d, e,f,andg are the numbers of the various molecules participating in the reaction. They can be determined by balancing each atom on left and right side of the reaction and then balancing the ionic charge. The resulting equations are: a=d, a=e, b=f, Which can be rewritten as 3b = 4e + f + g, c=2g, -b + c = 2d-2e 3b-4e-f-g=0, c-2g = 0, -b + c-2d + 2e = 0 There are 7 unknowns (a, b, c, d,e,f,and g) and only 6 equations. A solution can still be obtained, however, by taking advantage of the fact that all the coefficients must be positive integers. A seventh equation can be added by assuming a value of a and solve the system of equations. For example, your seventh equation can be ak where kis a positive integer 1,2, 3 ...etc. The solution is valid only if all the coefficients (a, b, c, d, e, f, and g) are positive integers. Ifthis is not the case, repeat the solution using different value for k. By hand, rewrite your system of equations in matrix format Axbwhere A is the matrix of the coefficients of a, b,c, d,e,f, and g in the equations above, x is the column vector of the 7 unknowns a, b,c,d, e,f,and g and b is a column vector of the right hand side. Then, write a script file HW4P1.m that does the following: 1. Prompts the user to enter a value for kas a positive integer and assign it to a variable. 2. Creates matrix A, column vectors x and b. Noting that k will be the last element in b 3. Solves the system of equation using left division. . When it runs, it uses fprintfO to display the output in the format When a - Noting that a, b, c, d, e,f, and g are the elements of x. Use f format for the data with two decimal digits. You must then inspect the values of a, b,c, d, e,f, and g as displayed in the command window. If the values are all positive integers, this means you have a solution. Otherwise, you must run the program one more time entering another value for k until the values are all positive integers. The dissolution of copper sulfide in aqueous nitric acid is described by the following chemical equation: where a, b, c, d, e,f,andg are the numbers of the various molecules participating in the reaction. They can be determined by balancing each atom on left and right side of the reaction and then balancing the ionic charge. The resulting equations are: a=d, a=e, b=f, Which can be rewritten as 3b = 4e + f + g, c=2g, -b + c = 2d-2e 3b-4e-f-g=0, c-2g = 0, -b + c-2d + 2e = 0 There are 7 unknowns (a, b, c, d,e,f,and g) and only 6 equations. A solution can still be obtained, however, by taking advantage of the fact that all the coefficients must be positive integers. A seventh equation can be added by assuming a value of a and solve the system of equations. For example, your seventh equation can be ak where kis a positive integer 1,2, 3 ...etc. The solution is valid only if all the coefficients (a, b, c, d, e, f, and g) are positive integers. Ifthis is not the case, repeat the solution using different value for k. By hand, rewrite your system of equations in matrix format Axbwhere A is the matrix of the coefficients of a, b,c, d,e,f, and g in the equations above, x is the column vector of the 7 unknowns a, b,c,d, e,f,and g and b is a column vector of the right hand side. Then, write a script file HW4P1.m that does the following: 1. Prompts the user to enter a value for kas a positive integer and assign it to a variable. 2. Creates matrix A, column vectors x and b. Noting that k will be the last element in b 3. Solves the system of equation using left division. . When it runs, it uses fprintfO to display the output in the format When a - Noting that a, b, c, d, e,f, and g are the elements of x. Use f format for the data with two decimal digits. You must then inspect the values of a, b,c, d, e,f, and g as displayed in the command window. If the values are all positive integers, this means you have a solution. Otherwise, you must run the program one more time entering another value for k until the values are all positive integers

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

Step: 3

blur-text-image

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions