Post Reply 
Triple Integral
04-29-2020, 12:47 PM (This post was last modified: 04-29-2020 01:43 PM by Albert Chan.)
Post: #5
RE: Triple Integral
I think it is a real bug.

XCas> f := x^2*log(sqrt(y) + sqrt(y-x^2))
XCas> g := int(f, y = x^2 .. 4)         // keep running this single integral, we get
XCas> subst(g, x=1.5)                     // either 3.76506896552 or 13.7445470629

XCas 1.4.9-57 (Win32) gives 2 different answer from the same integral, g = t1 ± t2 Huh
XCas> t1 := 4*x^2*ln(sqrt(-x^2+4)+2) - x^4*ln(abs(x))
XCas> t2 := -x^2*sqrt(-x^2+4) - x^4*ln(x^2)/4 + x^4*ln(abs(x^2+4*sqrt(-x^2+4)-8))/4

XCas> int(t1+t2, x=-2..2) * 1.     // 8.06580915733 ok
XCas> int(t1+t2, x= 0..2) * 2.     // 8.06580915733 ok
XCas> int(t1+t2, x=-2..0) * 2.     // 8.06580915733 ok
XCas> int(t1-t2, x=-2..2) * 1.     // 28.1720021403 bad
XCas> int(t1-t2, x= 0..2) * 2.     // 28.1720021403 bad
XCas> int(t1-t2, x=-2..0) * 2.     // 28.1720021403 bad

Edit: numerical confirmation from EMU71

>10 P=.000001
>20 DEF FNF(X,Y)=X^2*LN(SQRT(Y)+SQRT(Y-X*X))
>30 DEF FNG(X)=INTEGRAL(X*X,4,P,FNF(X,IVAR))
>40 DEF FNH(A,B)=INTEGRAL(A,B,P,FNG(IVAR))
>RUN
>FIX 6
>FNH(-2,2), FNH(-2,0)*2, FNH(0,2)*2
  8.065809           8.065809           8.065809
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Triple Integral - lrdheat - 04-26-2020, 06:53 PM
RE: Triple Integral - Aries - 04-28-2020, 01:43 PM
RE: Triple Integral - Albert Chan - 04-28-2020, 08:27 PM
RE: Triple Integral - parisse - 04-29-2020, 06:15 AM
RE: Triple Integral - Albert Chan - 04-29-2020 12:47 PM
RE: Triple Integral - parisse - 04-29-2020, 01:57 PM
RE: Triple Integral - lrdheat - 04-29-2020, 02:59 PM
RE: Triple Integral - tom234 - 05-10-2020, 09:06 PM
RE: Triple Integral - Aries - 05-11-2020, 07:07 AM
RE: Triple Integral - tom234 - 05-11-2020, 10:35 AM
RE: Triple Integral - tom234 - 05-11-2020, 02:18 PM



User(s) browsing this thread: 1 Guest(s)