Ask Your Question

What is the opposite of log_expand

asked 2018-01-28 06:13:58 -0600

Harald gravatar image

log_expand does converts log(x*y) to log(x)+log(y). Is there a function which explicitly reverts this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-01-28 11:20:33 -0600

tmonteil gravatar image

Yes, log_simplify:

sage: e = log(x*y) ; e
sage: f = e.log_expand() ; f
log(x) + log(y)
sage: f.log_simplify()

Note that given an sage object e, you can see all methods that can be applied to it, by typing e.<TAB_BUTTON>, and the methods that start with blah by typing e.blah<TAB_BUTTON>, in particular, you could discover both methods by typing:

sage: e.log<TAB_BUTTON>
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-01-28 06:13:58 -0600

Seen: 18 times

Last updated: Jan 28