| Kevin Ryde on Wed, 21 Jan 2015 23:20:00 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: polynomial partial fractions |
I got to these few lines. Limited to exact coefficients due to an add-back self test but maybe that could be loosened if there would be a use for inexact fracs. http://user42.tuxfamily.org/pari-pol-pfrac/index.html When using it with some generating functions I had the urge to print polynomials with powers ascending and the denominator starting 1 (and fractions elsewhere as necessary). Eg. print( (8*x + 3)/(-48*x^2 + 24) ) => (1/8 + 1/3*x)/(1 - 2*x^2) I tried some rough bits for this, but does an option already exist and is hiding?