Skip to content
Prev 393550 / 398503 Next

Problem with integrate(function(x) x^3 / sin(x), -pi/2, pi/2)

You're dividing 0 by 0, giving you NaN, perhaps you should try

function(x) ifelse(x == 0, 0, x^3/sin(x))

On Sat, Jan 7, 2023, 22:24 Leonard Mada via R-help <r-help at r-project.org>
wrote: