# template for solving equilibrium problems # 1: provide equilibrium constants for all equilibrium reactions # 2: provide total concentrations for all mass balance equations # 3: set up master variable # 4: calculate concentrations for all species in system # 5: define an error function using charge or mass balance # 6: find index for the minimum error (error closest to zero) # 7: report out all values # 8: plot error function (if of interest)