Question: How to extract the division part

January 21 2014 asa12 355

f := x1^2/((x2^3)*(x3^2));

would like to extract 1/x2 from 1/(x2^3) and 1/x3 from 1/(x3^2)

and then assign 1/x2 to x2b and assign 1/x3 to x3b

and then replace 1/(x2^3) with x2b^3 and 1/(x3^2) with x3b^2 in f


only in this example has x2 and x3, in real case, it is unknown how many variables all division part

how to automatically to do above for equations with division


Please Wait...