Question: While in the subject

This question is related to the Question The order of variables in an answer

Hi,

Suppose I want to work it a little bit



> eq1 := a = (v-vo)/t;
                                         v - vo
                              eq1 := a = ------
                                           t   
> isolate(eq1, t);
                                     v - vo
                                 t = ------
                                       a   
> eq2 := x = xo+vo*t+(1/2)*a*t^2;

                                               1    2
                        eq2 := x = xo + vo t + - a t 
                                               2     
> subs(%%, eq2);
                                                     2
                               vo (v - vo)   (v - vo) 
                      x = xo + ----------- + ---------
                                    a           2 a   
> expand(%);
                                        2    2 
                                      vo    v  
                             x = xo - --- + ---
                                      2 a   2 a
Now, I would like to have as output the following

> x = xo+(v^2-vo^2)/(2*a);

                                        2     2
                                       v  - vo 
                              x = xo + --------
                                         2 a   


I know it's a little bit fancy but I would like the parenthesis to stay there with the factor

1/(2*a) in front (without distributing it) like I wrote it in the last input.

 

Thanks

mario.lemelin@cgocable.ca

Please Wait...