Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用命令将矩阵提升到一定的幂Math.pow()?我已经编写了一个手动执行的方法,但我想要另一个仅用于测试,使用Math.pow().
Math.pow()
简短的回答 - 你不能。Math#pow需要两个doubles。如果您想对自己的数据类型进行逻辑幂运算,则必须自己实现它。
Math#pow
double