Text this: Method for Calculating Locomotive Traction & Brake Limited Line Based on Binary Search and Lagrange Interpolation