C# BigInteger Log(BigInteger, Double)
Description
BigInteger Log(BigInteger, Double)
Returns the logarithm
of a specified number in a specified base.
Syntax
BigInteger.Log(BigInteger, Double)
has the following syntax.
public static double Log(
BigInteger value,
double baseValue
)
Parameters
BigInteger.Log(BigInteger, Double)
has the following parameters.
value
- A number whose logarithm is to be found.baseValue
- The base of the logarithm.
Returns
BigInteger.Log(BigInteger, Double)
method returns The base baseValue logarithm of value, as shown in the table in the Remarks
section.
Example
using System;/*from w w w . java 2 s .com*/
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger[] values = { 2, BigInteger.Pow(1000, 100), BigInteger.Pow(2, 64) };
foreach (var value in values)
Console.WriteLine(Math.Exp(BigInteger.Log(value, 0.9)));
}
}