Assuming: pH (potentia hydrogenii) = - log10(H+ ionic concentration in mol/Liter). For a buffer solution containing acetic acid and sodium acetate, according to Henderson-Hasselbalch equation, the solution will have pH = 4.7 + log10(concentration of acetic acid / concentration of sodium acetate). If some sodium hydroxide (NaOH) is added that much (in mol for mol) acetic acid will be converted to sodium acetate. Your function should output final pH for a small input of NaOH in mol.
For example, when NaOH added is 0 mol to a solution containing 0.1 mol acetic acid and 0.1 mol sodium acetate then final pH is 4.7.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers53
Suggested Problems
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
558 Solvers
-
Return unique values without sorting
999 Solvers
-
Split a string into chunks of specified length
2058 Solvers
-
Create matrix of replicated elements
397 Solvers
-
Penny flipping - calculate winning probability (easy)
196 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!