log function for symbol with power

Hi.
Can somebody help me with finding and using a function that perform log in a specific base for a symbol with power??
For ex, if I write:
syms a;
and have: b=a^15;
I want to do loga(b) and get '15'.
How can I do so??
Thanks.

回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 11 月 22 日

0 投票

Call into MuPAD with feval(symengine) or evalin(symengine) to use its log() function: http://www.mathworks.com/help/symbolic/mupad_ref/log.html
This is not the same as the log() you get at the MATLAB interface level.
Andrei Bobrov
Andrei Bobrov 2012 年 11 月 22 日

0 投票

evalin(symengine,'log(a,a^15)')
feval(symengine,'log',a,a^15)

質問済み:

2012 年 11 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by