After loading abs_integrate, expand no longer works with symbolic expressions involving integrals as arguments.
(%i1) assume(L>0);
(%o1) [L>0]
(%i2) (2*integrate((f(xvar)-B*xvar-A)*sin((%pi*(2*n-1)*xvar)/(2*L)),xvar,0,L))/L;
(%o2) (2*integrate((f(xvar)-B*xvar-A)*sin((%pi*(2*n-1)*xvar)/(2*L)),xvar,0,L))/L
(%i3) expand(%);
(%o3) (2*integrate(f(xvar)*sin((%pi*n*xvar)/L-(%pi*xvar)/(2*L))-B*xvar*sin((%pi*n*xvar)/L-(%pi*xvar)/(2*L))-A*sin((%pi*n*xvar)/L-(%pi*xvar)/(2*L)),xvar,0,L))/L
(%i4) load(abs_integrate);
(%o4) "/usr/share/maxima/5.42.2/share/contrib/integration/abs_integrate.mac"
(%i5) (2*integrate((f(xvar)-B*xvar-A)*sin((%pi*(2*n-1)*xvar)/(2*L)),xvar,0,L))/L;
(%o5) (2*integrate((f(xvar)-B*xvar-A)*sin((%pi*(2*n-1)*xvar)/(2*L)),xvar,0,L))/L
(%i6) expand(%);
Message from the stdout of Maxima: Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb>
Message from maxima's stderr stream: Heap exhausted during garbage collection: 0 bytes available, 16 requested.
Gen Boxed Unboxed LgBox LgUnbox Pin Alloc Waste Trig WP GCs Mem-age
0 0 0 0 0 0 0 0 10737418 0 0 0.0000
1 0 0 0 0 0 0 0 10737418 0 0 0.0000
2 0 0 0 0 0 0 0 10737418 0 0 0.0000
3 14301 146 0 0 25 473170048 229248 10737418 14447 0 0.9063
4 8399 120 0 0 72 278862272 288320 2000000 8519 0 0.0000
5 0 0 0 0 0 0 0 2000000 0 0 0.0000
6 736 409 70 72 0 41179792 992624 2000000 1287 0 0.0000
7 8369 146 0 0 0 278985520 34000 2000000 8515 0 0.0000
Total bytes allocated = 1072197632
Dynamic-space-size bytes = 1073741824
GC control variables:
*GC-INHIBIT* = true
*GC-PENDING* = true
*STOP-FOR-GC-PENDING* = false
fatal error encountered in SBCL pid 12358(tid 0x7f5c74640080):
Heap exhausted, game over.
This is my build_info
(%i2) build_info();
(%o2) build_info(version="5.42.2",timestamp="2019-01-24 07:48:00",host="x86_64-pc-linux-gnu",
lisp_name="SBCL",lisp_version="1.4.10.debian")
Diff:
Fixed by Commit [3ca423]. Appended regression test. Closing ticket.
Related
Commit: [3ca423]