That equation no longer works in KSP.  Back in the beta version the scale height, H, was a constant for each planet.  However, starting with v1.0 the atmospheres were changed to a more complex and realistic model.  Since H now varies, you can no longer use a simple equation. Pressure is now computed using a float curve.  Each float curve is made up of a series cubic Hermite splines.  At the bottom of this post you will find the pressure curve data from each atmosphere.  Each set of four num
    • Like
    6