symja_android_library icon indicating copy to clipboard operation
symja_android_library copied to clipboard

[BUG] Int[Sqrt[(4+x)/(4-x)], {x, 0, 4}] returns wrong result

Open tranleduy2000 opened this issue 2 years ago • 3 comments

Input:

Int[ Sqrt((4+x)/(4-x)), {x, 0, 4}] // N
image

Expected result:

image

tranleduy2000 avatar Jun 16 '22 20:06 tranleduy2000

the Limit calculation is wrong for x->4:

image

axkr avatar Jun 16 '22 20:06 axkr

As a workaround you can use function NIntegrate, which doesn't calculate an intermediate "symbolic result".

  • https://github.com/axkr/symja_android_library/blob/master/symja_android_library/doc/functions/NIntegrate.md
NIntegrate[ Sqrt[(4+x)/(4-x)], {x, 0, 4}] 

axkr avatar Nov 03 '23 16:11 axkr

ArcTan limit for the argument Sqrt((4+x)/(4-x)) must be calculated "from above 4" and "from below 4"

axkr avatar May 01 '24 11:05 axkr