[math-fun] integration by parts for numerical computation