In regard to
"Jim I'll agree with you if you can provide a reference showing that railroads use distance traveled vs horizontal distance for grade calculation. "
I'd be a bit surprised if railroads didn't use horizontal distance. There are some track charts on line that I believe show horizontal distance, elevation and grade on the same page. I'll do some calculations and post them later.
Here's the link.