pH and composition functions complete - electrochemistry work in
progress