与JavaScript的Math.pow相反的是什么? [英] What's the opposite of JavaScript's Math.pow?
本文介绍了与JavaScript的Math.pow相反的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这里有一个心理障碍,代数不是我的东西,你能告诉我如何重新编写下面的JavaScript代码来导出变量, c
,就 a
而 b
?:
I'm having a mental block here, and algebra not really being my thing, can you tell me how to re-write the JavaScript code below to derive the variable, c
, in terms of a
and b
?:
a = Math.pow(b, c);
c = ?
谢谢!
推荐答案
c = Math.log(a)/Math.log(b)
这篇关于与JavaScript的Math.pow相反的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文