Mega Code Archive
Returns the natural (base e) logarithm of a specified number
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger[] values = { 2, 100, BigInteger.Pow(2, 64) };
foreach (var value in values)
Console.WriteLine(Math.Exp(BigInteger.Log(value) / 2));
}
}