Subst Ignored



Hello,

I wanted to use Maxima to so me some calculations.
In     " subst(h,s,    eq11);  "
a substitution is done,
but this substitution does not stay  really.
When giving me the answer (%o8) ,
the variable s occurs again, though in (%o7)
the result is as expected.

Thanks in advance
Egon



(%i2) [globalsolve: true, programmode: true];
eq10: c= h*l1/2 + (h+h2)*(l-l1)/2;
linsolve(eq10,[h]);
eq11: 0=-s/l1 - (s-h2)/l2;
[globalsolve: true, programmode: true];
subst(h,s,    eq11);
linsolve(eq11,[h2]);
(%o2)                            [true, true]
                             h l1   (h2 + h) (l - l1)
(%o3)                    c = ---- + -----------------
                              2             2
                                h2 l1 - h2 l + 2 c
(%o4)                      [h : ------------------]
                                        l
                                     s - h2   s
(%o5)                          0 = - ------ - --
                                       l2     l1
(%o6)                            [true, true]
                    h2 l1 - h2 l + 2 c
                    ------------------ - h2
                            l                 h2 l1 - h2 l + 2 c
(%o7)         0 = - ----------------------- - ------------------
                              l2                     l l1
                                    (l2 + l1) s
(%o8)                         [h2 : -----------]
                                        l1
-->  if showtime#false then showtime:false else showtime:all$
-->  set_display('ascii)$
-->  if showtime#false then showtime:false else showtime:all$
(%i1) set_display('ascii)$