Trancendental functions removed from elbow calculation with the help of a mathy friend