Maxima: How to factor a expression in an expected form -
Maxima: How to factor a expression in an expected form -
i have expression:
(b+2*ab+a+1)/c
i want utilize maxima factor equation treating (b+1) factor.
i.e. want look in next form:
[(b+1)(1+a)+ab]/c
any help appreciated.
well, advice first isolate numerator, quotient , remainder after dividing b + 1
, set pieces together.
(%i1) display2d : false $ (%i2) expr : (b + 2*a*b + + 1)/c $ (%i3) num (expr); (%o3) 2*a*b+b+a+1 (%i4) split (num (expr), b + 1); (%o4) [2*a+1,-a] (%i5) first(%o4) * (b + 1) + second(%o4); (%o5) (2*a+1)*(b+1)-a (%i6) (first(%o4) * (b + 1) + second(%o4)) / denom (expr); (%o6) ((2*a+1)*(b+1)-a)/c (%i7) (equal (%o6, expr)); (%o7) true
note divide
returns 2 values; first quotient , sec remainder.
maxima
Comments
Post a Comment