我想简化log(8)/log(2)
我知道
log(8)/log(2) = log(2^3)/log(2) = 3*log(2)/log(2) = 3
在Maxima中可能是可以的,但对我来说却不起作用:
Maxima 5.41.0 http://maxima.sourceforge.net
using Lisp GNU Common Lisp (GCL) GCL 2.6.12
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) log(8)/log(2);
log(8)
(%o1) ------
log(2)
(%i2) logexpand;
(%o2) true
(%i3) log(2^3)/log(2);
(%o3) log(8)
------
log(2)
(%i4) logexpand;
(%o4) true
我使用:
round(float(log(8)/log(2));
但我认为这不是最好的解决方案(我使用整数)
问题:
- 如何做到这一点?
- 为什么它在Maxima文档中有效,但在我的Maxima中无效?