vb.net - vb.net 中是否有替代的“电源”功能
问题描述
Imports System.Numerics
Module Module1
Sub Main()
Dim term As BigInteger
Const Phi As Double = (1 + (5 ^ 0.5)) / 2
Const phi_ As Double = (1 - (5 ^ 0.5)) / 2
For count As BigInteger = 2 To 99999999
term = ((Phi ^ count) - (phi_ ^ count)) / (5 ^ 0.5)
Next
End Sub
End Module
解决方案
导入System
命名空间和使用Math.Pow(double x, double y)
函数。此处的详细信息:
https ://docs.microsoft.com/en-us/dotnet/api/system.math.pow?view=netframework-4.8
推荐阅读
- python - rabbitmq 在生产 php 或 python 中
- java - className 变量名是什么意思;java中的变量声明?
- python - Kubernetes python客户端:线程响应问题
- ballerina - Ballerina - 我们可以检查像 www.google.com 这样的 URL 的响应状态代码吗?
- imagemagick - imagemagick montage:插入不同大小的图像
- java - 我写了这样的实体,我得到了删除='false'的数据。我应该如何被删除='true'
- python - DataFrame 从字符串中提取整数/数字值?
- c - 为什么我们需要在 execvp 之前在管道上调用 close?
- reactjs - Firebase admin auth listAllUsers give - 无法确定项目 ID
- c# - (System.ArgumentException)值不在uwp中的另一个弹出窗口中打开弹出窗口时抛出的预期范围异常