Open BenderBlog opened 1 month ago
I believe it is a "unexpected behaviour":
> integrate(1/sqrt(1-x^2)) integrate(1 / sqrt(1 − x²)) = −i × ln(i × √(1 − x²) − x) + C > integrate(1/sqrt(1-x^2),-1,1) warning: Unable to integrate the expression. integrate(1 / sqrt(1 − x²), −1, 1) = ∫(1 / √(1 − x²), −1, 1)
Since its answer is pi, I believe the author could use this code to give an numeric answer, rather a "Unable to integrate" false...
I tried to port it to another calculator, kalker, and it works pretty well. Ref. here here.
It is a safe-guard against invalid results which fails. integrate(1/sqrt(1-x^2),-0.9999999,0.9999999) works properly. I will investigate this closer.
integrate(1/sqrt(1-x^2),-0.9999999,0.9999999)
I believe it is a "unexpected behaviour":
Since its answer is pi, I believe the author could use this code to give an numeric answer, rather a "Unable to integrate" false...
I tried to port it to another calculator, kalker, and it works pretty well. Ref. here here.