答案 0 :(得分:2)
你必须简化激进分子:
(%i1) log2(x) := log(x) / log(2);
log(x)
(%o1) log2(x) := ------
log(2)
(%i2) radcan(log2(8));
(%o2)
3
答案 1 :(得分:1)
或使用float:
float(log(8)/log(2));
给予:
2.999999999999999