EGR_102_Lab_04A_Solution

# EGR_102_Lab_04A_Solution - %mol c = b; %mol g = c/2; %mol %...

This preview shows pages 1–2. Sign up to view the full content.

Lab 04A Homework Name: Solution Section 1 Spring 2012 The script was saved as CopperSulfide.m % Script 'CopperSulfide.m' % Name, Section # % This script calculates the coefficients in the balanced chemical equation % for the dissolution of Copper Sulfide in Nitric Acid % The initial guess for ‘a’ will be defined outside the script % Calculate the coefficients d and e d = a; %mol e = a; %mol % Rearrange and calculate the coefficient b b = (4*a)/1.5; %mol % Calculate the coefficients f, c and g f = b;

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %mol c = b; %mol g = c/2; %mol % Display the coefficients in order a,b,c,d,e,f,g Command Window Results >> % First Attempt >> a = 1; >> run CopperSulfide a = 1 b = 2.6667 c = 2.6667 d = 1 e = 1 f = 2.6667 g = 1.3333 >> % Second Attempt >> a = 2; >> run CopperSulfide a = 2 b = 5.3333 c = 5.3333 d = 2 e = 2 f = 5.3333 g = 2.6667 >> % Third Attempt >> a = 3; >> run CopperSulfide a = 3 b = 8 c = 8 d = 3 e = 3 f = 8 g = 4 >> % Since all the variables are integers, a = 3 is the correct solution...
View Full Document

## This note was uploaded on 04/02/2012 for the course EGR 100 taught by Professor Hinds during the Fall '08 term at Michigan State University.

### Page1 / 2

EGR_102_Lab_04A_Solution - %mol c = b; %mol g = c/2; %mol %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online