From: Richard F. <fa...@gm...> - 2024-08-15 18:40:42
|
*factorlist(r) := map(lambda([k], if listp(k) then k else [k,1]),* * psubst([ "^"="[","*"="[" ], factor(r)))* factorlist(24) returns [[2,3],[3,1]] v:ratexpand(x^2*(y+z)^3) ; factorlist(v) returns [[x,2],[z+y,3]] ifactors() works only on integers. |