简体   繁体   English

如何在破折号中制作多维数据集根计算器

[英]How to make a cube root calculator in dashcode

有人可以将javascript发布到dashcode中的多维数据集根

I don't know what Dashcode is, but assuming it uses standard JavaScript, just turn it into a power calculation (like you learned at school) and use Math.pow : 我不知道Dashcode是什么,但是假设它使用标准JavaScript,只需将其转换为功效计算(就像您在学校学到的一样),然后使用Math.pow

> Math.pow(27, 1/3)
  9

The nth root of x is x^(1/n). x的第n个根是x ^(1 / n)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM