Question: Can you kind solve this problem in MATLAB? he dissolution of copper sulfide in aqueous nitric acid is described by the following hemical equation here

Can you kind solve this problem in MATLAB? he dissolution of copperCan you kind solve this problem in MATLAB?

he dissolution of copper sulfide in aqueous nitric acid is described by the following hemical equation here a, b, c, d, e,f, and g are the numbers of the various molecules participating in t eaction. They can be determined by balancing each atom on left and right side of the eaction and then balancing the ionic charge. The resulting equations are -b + c = 2d Which can be rewritten as a-d=0, a-e=0, b-f=0, 3b-4e-f-g=0, c-2g = 0, There are 7 unknowns (a, b, c, d, e, f, and g) and only 6 equations. A solution can still b obtained, however, by taking advantage of the fact that all the coefficients must be po integers. A seventh equation can be added by assuming a value of a and solve the syst equations. For example, your seventh equation can be a - k where k is a positive int 1, 2,3 ...etc. The solution is valid only if all the coefficients (a, b, c, d, e, f, and g) are pos integers. If this is not the case, repeat the solution using different value for k. By hand, rewrite your system of equations in matrix format Ax b where A is the m of the coefficients of a, b, c, d, e, f and g in the equations above, x is the column vector d 7 unknowns a, b, c, d, e, f, and g and b is a column vector of the right hand side. Then, w a script file HW4P1.m that does the following: Prompts the user to enter a value for k as a positive integer and assign it to a variable 1. 2. Creates matrix A, column vectors x and b. Noting that k will be the last element i 3. Solves the system of equation using left division 4. When it runs, it uses fprintfO to display the output in the format " When a XX, b=xx, c = XX, d=XX, e=XX, f=XX, and g = XX". Noting that a, b, c, d, e, f, and g are the elements of x. Use f format for the data wi 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 ou must run the program one more time entering another value for k until the values a

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!