|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
/*
* This file:
* http://anggtwu.net/MAXIMA/2025-1-MV-abril.mac.html
* http://anggtwu.net/MAXIMA/2025-1-MV-abril.mac
* (find-angg "MAXIMA/2025-1-MV-abril.mac")
* Author: Eduardo Ochs <eduardoochs@gmail.com>
*
* (defun e () (interactive) (find-angg "MAXIMA/2025-1-MV-abril.mac"))
* (defun l () (interactive) (find-angg "MAXIMA/2025-1-MV-abril.lisp"))
* (find-angg ".maxima/maxima-init.mac" "align_eqs")
* (c2m251dip 15 "MVDs-MVIs")
* (c2m251dia "MVDs-MVIs")
*
* «.applys» (to "applys")
* «.applys-tests» (to "applys-tests")
* «.MVDs-MVIs» (to "MVDs-MVIs")
* «.maio» (to "maio")
*/
/* (find-fline "~/MAXIMA/2025-1-MV-abril.lisp")
* (find-fline "~/MAXIMA/dim-antideriv.lisp")
* (find-fline "~/MAXIMA/2025-1-s.mac")
*/
load("2025-1-MV-abril.lisp");
load("dim-antideriv.lisp");
load("2025-1-s.mac");
Integrate (f,x,a,b) := Integrate_(f,x,x=a,x=b);
Integrate_I(f,x,a,b) := Integrate_(f,x);
At2(f,x,a,b) := matrix(["", "|", x=b],
[f, "|", ""],
["", "|", x=a]);
At2(f,x,a,b) := antideriv(f, x, a, b);
texput(antideriv, antideriv_tex);
antideriv_tex(o) :=
block([fx,x,a,b], [fx,x,a,b]:args(o),
format("\\left.~a\\right|_{~a=~a}^{~a=~a}",
tex1(fx), tex1(x),tex1(a), tex1(x),tex1(b)));
/*
* (eepitch-maxima)
* (eepitch-kill)
* (eepitch-maxima)
load("2025-1-MV-abril.mac");
Integrate_(f,x,a,b);
Integrate (f,x,a,b);
At2 (F,x,a,b);
*/
/* «applys» (to ".applys")
*/
"_a_" (fs,x) := block([result:x],
for kk : length(fs) thru 1 step -1 do result : fs[kk](result),
result)$
infix("_a_",99,101);
/* «applys-tests» (to ".applys-tests")
* (eepitch-maxima)
* (eepitch-kill)
* (eepitch-maxima)
load("2025-1-MV-abril.mac");
[f,g,h] _a_ (xx);
*/
gradef(f(x), fp(x));
gradef(g(x), gp(x));
gradef(h(x), hp(x));
gradef(k(x), kp(x));
texput(fp, "f'");
texput(gp, "g'");
texput(hp, "h'");
texput(kp, "k'");
Integrate3 (fg,hk,vv) := Integrate (diff(fg _a_ vv, vv), vv, hk _a_ a, hk _a_ b);
Diff3 (fg,hk,vv) := At2 ( fg _a_ vv, vv, hk _a_ a, hk _a_ b);
Diff2 (fghk, vv) := (fghk _a_ b) - (fghk _a_ a);
Integrate3_I(fg,hk,vv) := Integrate_I(diff(fg _a_ vv, vv), vv, hk _a_ a, hk _a_ b);
Diff3_I (fg,hk,vv) := fg _a_ vv;
/*
* (eepitch-maxima)
* (eepitch-kill)
* (eepitch-maxima)
load("2025-1-MV-abril.mac");
Integrate3_I([f,g],[h,k],x);
Diff3_I([f,g],[h,k],x);
*/
/* «MVDs-MVIs» (to ".MVDs-MVIs")
*/
MVDs_fgh : [Integrate3([f,g,h],[],x),
Integrate3([f,g], [h],u),
Integrate3([f], [g,h],v),
Diff3 ([f], [g,h],v),
Diff3 ([f,g], [h],u),
Diff3 ([f,g,h],[],x)];
MVIs_fgh : [Integrate3_I([f,g,h],[],x),
Integrate3_I([f,g], [h],u),
Integrate3_I([f], [g,h],v),
Diff3_I ([f], [g,h],v),
Diff3_I ([f,g], [h],u),
Diff3_I ([f,g,h],[],x)];
MVDs_fghk : [Integrate3([f,g,h,k],[],x),
Integrate3([f,g,h], [k],u),
Integrate3([f,g], [h,k],v),
Integrate3([f], [g,h,k],w),
Diff3 ([f], [g,h,k],w),
Diff3 ([f,g], [h,k],v),
Diff3 ([f,g,h], [k],u),
Diff3 ([f,g,h,k],[],x)];
MVIs_fghk : [Integrate3_I([f,g,h,k],[],x),
Integrate3_I([f,g,h], [k],u),
Integrate3_I([f,g], [h,k],v),
Integrate3_I([f], [g,h,k],w),
Diff3_I ([f], [g,h,k],w),
Diff3_I ([f,g], [h,k],v),
Diff3_I ([f,g,h], [k],u),
Diff3_I ([f,g,h,k],[],x)];
/*
(find-angg ".maxima/maxima-init.mac" "align_eqs")
* (eepitch-maxima)
* (eepitch-kill)
* (eepitch-maxima)
load("2025-1-MV-abril.mac");
align_eqs_1c(MVDs_fgh);
align_eqs_1c(MVIs_fgh);
align_eqs_1c(MVDs_fghk);
align_eqs_1c(MVIs_fghk);
*/
S_g(gx) := [g (x) = gx,
gp(x) = diff(gx,x)];
S_fg(fx,gx) := [f (x) = fx,
fp(x) = diff(fx,x),
g (x) = gx,
gp(x) = diff(gx,x)];
S_fgh(fx,gx,hx) := [f (x) = fx,
fp(x) = diff(fx,x),
g (x) = gx,
gp(x) = diff(gx,x),
h (x) = hx,
hp(x) = diff(hx,x)];
/* «maio» (to ".maio")
* (eepitch-maxima)
* (eepitch-kill)
* (eepitch-maxima)
** (find-fline "~/MAXIMA/2025-1-s.mac")
load ("~/MAXIMA/2025-1-s.mac");
load("2025-1-MV-abril.mac");
S3 : S_fgh(sin(x), x^4, log(x));
align_eqs_1c(MVIs_fgh _s_ S3);
MVI1;
MVI1 _s_ S_g(log(x));
MVI1 _s_ S_g(log(x)) _s_ [fp(u)=4*u^3*cos(u^4)];
MVI1 _s_ [x=u,u=v];
MVI1 _s_ [x=u,u=v] _s_ S_g(x^4);
MVI1 _s_ [x=u,u=v] _s_ S_g(x^4) _s_ [fp(v)=cos(v)];
MVI3 _s_ [x=u,u=v] _s_ S_g(x^4) _s_ [fp(v)=cos(v)];
MVI3 _s_ [x=u,u=v] _s_ S_g(x^4) _s_ [fp(v)=cos(v), f(v)=sin(v)];
*/