From: Eduardo O. <edu...@gm...> - 2022-06-24 05:01:51
|
Perfect! Thanks!!! Then this generates all the intermediate expressions that I need: ex0 : 'integrate((3*cos(2 + sqrt(3*x+4))) / (2*sqrt(3*x+4)), x); ex1 : integrate((3*cos(2 + sqrt(3*x+4))) / (2*sqrt(3*x+4)), x); ex2 : changevar(ex0, u=3*x, u, x); ex3 : changevar(ex2, v=u+4, v, u); assume(w>0); ex4 : changevar(ex3, w=sqrt(v), w, v); ex5 : changevar(ex4, y=2+w, y, w); display2d : false; ex5 ; ex6 : ev(ex5, integrate); ex6 : ev(ex5, nouns); ex7 : subst([y=2+w], ex6); ex8 : subst([w=sqrt(v)], ex7); ex9 : subst([v=u+4], ex8); ex10 : subst([u=3*x], ex9); ex1; ex10 - ex1; Cheers =), Eduardo Ochs http://angg.twu.net/eev-maxima.html On Thu, 23 Jun 2022 at 22:56, Stavros Macrakis <mac...@al...> wrote: > > ev(...,integrate) or ev(...,nouns) > > On Thu, Jun 23, 2022, 21:48 Eduardo Ochs <edu...@gm...> wrote: >> >> Hi list, >> >> I'm trying to write code that will solve some basic problems of >> integration by change of variables "step by step"... my first example >> starts with: >> >> ex0 : 'integrate((3*cos(2 + sqrt(3*x+4))) / (2*sqrt(3*x+4)), x); >> ex1 : integrate((3*cos(2 + sqrt(3*x+4))) / (2*sqrt(3*x+4)), x); >> ex2 : changevar(ex0, u=3*x, u, x); >> ex3 : changevar(ex2, v=u+4, v, u); >> assume(w>0); >> ex4 : changevar(ex3, w=sqrt(v), w, v); >> ex5 : changevar(ex4, y=2+w, y, w); >> display2d : false; >> ex5 ; >> >> but how do I make Maxima integrate ex5? Its value is: >> >> 'integrate(cos(y),y) >> >> I know how to use the quote to make Maxima _avoid solving_ an integral >> - see ex0 and ex1 above - but how do I maka Maxima solve the integral >> in ex5? I made several attempts using ev, simp:true, and quote-quote, >> but none of them worked... >> >> Thanks in advance! >> Eduardo Ochs >> http://angg.twu.net/eev-maxima.html >> >> >> _______________________________________________ >> Maxima-discuss mailing list >> Max...@li... >> https://lists.sourceforge.net/lists/listinfo/maxima-discuss |