Answered step by step
Verified Expert Solution
Question
1 Approved Answer
follow the instruction plz and answer completely ( MatLab) The dissolution of copper sulfide in aqueous nitric acid is described by the following chemical equation:
follow the instruction plz and answer completely ( MatLab)
The dissolution of copper sulfide in aqueous nitric acid is described by the following chemical equation: where the coefficients a, b, c, d, e,f, and g are the numbers of the various molecules participating in the reaction and are unknown. The unknown coefficients are determined by balancing each atom on left and right and then balancing the ionic charge. The resulting equations are: a=d, a=e, b=f, 3b = 4e + f + g, c=29. b+c=2d-2e There are 7 unknowns 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. Add a seventh equation by guessing the value of a and solve the system of equations. For example, your seventh equation can be a = K where K is 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. If this is not the case, repeat the solution for a different value of the coefficient a. Rewrite your system of equations in matrix format Ax - b and then write a script file named HW4P4 that asks the user to input a value of K as a positive integer. The progranm then should solve the system of equations and compute the values of the coefficients a to g The program should display the output for in the format "When a-X. XX , b-X. c_ X.XX, d= X. XX, e-x.xx, f= x.xx, and g-x.xx". If, the values of all coefficients are positive integers this means you have a solution. Otherwise, run the program again and enter another value for K until the coefficients are all positive integers. The dissolution of copper sulfide in aqueous nitric acid is described by the following chemical equation: where the coefficients a, b, c, d, e,f, and g are the numbers of the various molecules participating in the reaction and are unknown. The unknown coefficients are determined by balancing each atom on left and right and then balancing the ionic charge. The resulting equations are: a=d, a=e, b=f, 3b = 4e + f + g, c=29. b+c=2d-2e There are 7 unknowns 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. Add a seventh equation by guessing the value of a and solve the system of equations. For example, your seventh equation can be a = K where K is 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. If this is not the case, repeat the solution for a different value of the coefficient a. Rewrite your system of equations in matrix format Ax - b and then write a script file named HW4P4 that asks the user to input a value of K as a positive integer. The progranm then should solve the system of equations and compute the values of the coefficients a to g The program should display the output for in the format "When a-X. XX , b-X. c_ X.XX, d= X. XX, e-x.xx, f= x.xx, and g-x.xx". If, the values of all coefficients are positive integers this means you have a solution. Otherwise, run the program again and enter another value for K until the coefficients are all positive integersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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