Keep it simple, don't try to build a railroad where the track gains more than 3 inches in ten feet, much less on curves...that's all you need to know.....no complicated math....very unsophisticated...but it works......."KEEP IT SIMPLE, stupid", is the rule around here