Skip to content

Instantly share code, notes, and snippets.

@acid-chicken
Created December 3, 2016 12:50
Show Gist options
  • Save acid-chicken/db6271c3a1416f4b0ccfadc5d83088fd to your computer and use it in GitHub Desktop.
Save acid-chicken/db6271c3a1416f4b0ccfadc5d83088fd to your computer and use it in GitHub Desktop.
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