A related program can be found below.
Approximation of pH and associated error in monoprotic acid and base solutions
https://community.wolfram.com/groups/-/m/t/3008305
Taweetham Limpanuparb, Junming Ho. Visualization of Validity Ranges for Acid Approximations: Error Contour Plots as a Function of Concentration and Ka. Journal of Chemical Education 2023, 100 (12) , 4884-4889. https://doi.org/10.1021/acs.jchemed.3c00751