FactoredFunctions M¶
manip.spad line 1 [edit on github]
computes various functions on factored arguments.
- log: Factored M -> List Record(coef: NonNegativeInteger, logand: M)
log(f)
returns[(a1, b1), ..., (am, bm)]
such that the logarithm off
is equal toa1*log(b1) + ... + am*log(bm)
.
- nthRoot: (Factored M, NonNegativeInteger) -> Record(exponent: NonNegativeInteger, coef: M, radicand: List M)
nthRoot(f, n)
returns(p, r, [r1, ..., rm])
such that then
th-root off
is equal tor * pth-root(r1 * ... * rm)
, wherer1
, …,rm
are distinct factors off
, each of which has an exponent smaller thanp
inf
.