non-trigonometric function calculation