(log(x^2*y)).simplify_full()

Robert

On 19 čvn, 23:02, Daniel Dvorkin <[email protected]> wrote:
> This is a newbie question that has probably been asked and answered
> before, but I can't find it in the archives.  I'd like a log function
> that "knows" the basic properties of logarithms with respect to
> exponentiation and multiplication; IOW, if I enter:
>
> (x^2 * y).log()
>
> what I get is:
>
> log(x^2*y)
>
> but what I'd like is:
>
> 2*log(x) + log(y)
>
> Is there a function that will do this, or an easy way to write my
> own?  Thanks!

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to