[Date Index] [Thread Index] [Author Index]
Re: Re: Automatic expansion of Log[a^n] for a,n explicit positive integers?
Hi, thanks for your suggestions and help! I also received a very clever and general solution by Erich Mueller <emuelle1 at uiuc.edu>: <quote> How about implementing the rule using pattern substitution, like this: Log + Log[x] /. Log[a_Integer] :> Plus @@ (#2Log[#1] & @@ # & /@ FactorInteger[a]) Which returns 2 Log + Log + Log[x] </quote> Mianlai's solution has its own advantages, as no explicit substitution is required. I may reconsider it when needed. Again, many thanks for your answers. Regards, -Harald