Created
December 3, 2016 12:50
-
-
Save acid-chicken/db6271c3a1416f4b0ccfadc5d83088fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Main() | |
Console.Title = "ACID CALC" | |
Dim Result As Decimal | |
Dim Count As Long | |
Parallel.For(1, CLng(Math.Pow(Decimal.MaxValue, 1D / 3D) - Math.Pow(Decimal.MaxValue, 1D / 9D)), | |
Sub(index) | |
Count += 1 | |
Result += 2 / (index + index ^ 3) | |
Console.WriteLine("{0} Count:{1}", Result, Count) | |
End Sub) | |
Console.ReadKey(True) | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment