如何在 pine 脚本中对变量进行求幂

发布于 2025-01-20 05:18:14 字数 68 浏览 1 评论 0原文

抱歉,如果问题很琐碎,但我完全是松树新手。如何在 pine 脚本中对变量执行求幂? (在 R 语言中我使用 ^ 运算符)。

Sorry if the question is trivial, but I'm totally newbie in pine. How do I perform exponentiation of a variable in pine script? (in R language I use the ^ operator).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

您可以将Math.pow()用于数学功能函数或Math.exp()需要计算e提高到功率给定的数字。

You can use math.pow() for mathematical power function or math.exp() when you need to calculate e raised to the power of given number.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文