# FactoredFunctions M¶

log(f) returns [(a1, b1), ..., (am, bm)] such that the logarithm of f is equal to a1*log(b1) + ... + am*log(bm).
nthRoot(f, n) returns (p, r, [r1, ..., rm]) such that the nth-root of f is equal to r * pth-root(r1 * ... * rm), where r1, ..., rm are distinct factors of f, each of which has an exponent smaller than p in f.