irexpand.spad line 1 [edit on github]
This package allows a sum of logs over the roots of a polynomial to be expressed as explicit logarithms and arc tangents, provided that the indexing polynomial can be factored into quadratics.
complexExpand(i) returns the expanded complex function corresponding to i.
expand(i, x) returns the list of possible real functions of x corresponding to i.
split(u(x) + sum_P(a)=0 Q(a, x)) returns u(x) + sum_P1(a)=0 Q(a, x) + ... + sum_Pn(a)=0 Q(a, x) where P1, ..., Pn are the factors of P.