# HP Forums

Full Version: HP 32S-II Vertical Curve Program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I new a guy from many years ago who wrote a program to solve for the elevation on a vertical curve, given station, elevation at BVC. Grade in and grade out, if you enter station to solve for, the elevation would be given. I forgot his name (its been 15 years and I live in a different state now) Does anyone have a program that they have written?

If you know the horizontal length of the curve:

```LBL E
INPUT I
INPUT G
INPUT H
INPUT X
*
+
INPUT H
RCL- G
2
/
INPUT L
/
RCL X
x^2
*
+
RTN
Where:
LBL E for elevation
I = initial elevation (BVC)
G = grade in as a decimal
X = location of the station
H = grade out as a decimal
L = total horizontal length of the vertical curve
```

Hope this helps, Eddie.

• Why do we have to INPUT H twice?
• Did you ever run that program?
• I think the correct formula to use is:
E= I + G•X + H•(L - X)

Kind regards

Thomas