Its not a true solution. If I have, for example three points from North to south, with pressures p1=1020 ; p2=1017 and p3=1013. And if I'm in a position that is at south of p3, there, air pressure must be smaller then p3, but with your formula, I have a value near 1014 or 1015.. That's not...