Menu

How to get to the expected result in wxMaxima

ckl67
2016-12-15
2016-12-16
  • ckl67

    ckl67 - 2016-12-15

    Hello All,

    The problem seems to be simple, but I don't know how to get the solution

    Entered in wxMaxima

    xt:xm-w/2;
    z:w/(xmax-xmin+2*ma);
    xa:xt/z;
    x:xa+xmax/2+xmin/2;
    
    expand(x);
                  -(xm*xmin)/w + xmin + (xm*xmax)/w + (2*ma*xm)/w - ma
    

    This is OK, but we can simplify a bit deeper.

    Simplified by myself

    x =  -(xm*xmin)/w + xmin + (xm*xmax)/w + (2*ma*xm)/w - ma
    x = xm/w * (xmax-xmin + 2*ma) + xmin - ma
    or
    z = w/(xmax-xmin+2*ma)
    

    So
    x = xm/z + xmin - ma
    Question:

    Is there a possibility in wxMaxima to get this result ?

    x = xm/z + xmin - ma

    Thanks in advance

    Christian

     
  • Joseph Cusumano

    Joseph Cusumano - 2016-12-16

    This does it:

    solve('z=z,w)[1];
    subst(%,x);
    expand(factor(%));
    
     
  • ckl67

    ckl67 - 2016-12-16

    Joseph

    Whaouuu !
    Many many thanks

    Great

    Christian

     
  • ckl67

    ckl67 - 2016-12-16

    There is something which is strange.

    I have run the sequence the first time and it worked well.
    Now there is something which is blocking, and I don't understand why..
    I run wxMaxima several times, and same issue

    What do I do wrong ??

    Thanks in advance

     

    Last edit: ckl67 2016-12-16
  • Joseph Cusumano

    Joseph Cusumano - 2016-12-16

    You have to be more careful. You lost the division operator in your definion of z. It should be:

    z:w/(xmax-xmin+2*ma);
    
     
  • ckl67

    ckl67 - 2016-12-16

    Oh no..
    I'm verry verry sorry to bother you for such stupid quest.

    Many thanks ...
    Christian