Midpoint Method For Elasticity Calculator