how to calculate curvature - Search