I suppose I could estimate it. However, I wanted to get an accurate value.
@Bab, Ha and A- are equivalent species @ pH = pKa.
At pH 1 is the compound > 99% in the form of HA or A
-? How much does this absorb?
At ph 13 is the compound > 99% in the form of HA or A
-? How much does this absorb?
I give my students an exercise that is similar to this. We use nonlinear regression, and we first estimate pKa much as you are doing (nonlinear regression requires initial estimates of parameters). Then from the regression exercise what we obtain is an estimate of pKa ± error. One does not obtain a single number without an error bar, if that is what you mean by an accurate answer.