Method Deck / geometry

Slope grade percent and angle from rise and run

Computes the percent grade and the angle from horizontal for a given rise and run.

Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.

Try it

Inputs

Outputs

Steps

  1. Percent grade = (rise / run) * 100.
  2. Angle in degrees = atan(rise / run) converted from radians to degrees.
  3. Round both to 2 decimals.

Constants

None.

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"rise":1,"run":4}grade 25.00%, angle 14.04 degrees
test vector: 45-degree slope{"rise":3,"run":3}grade 100.00%, angle 45.00 degrees

Published card