Exemple #1
0
 /// <summary>
 /// The natural logarithm, ln(x) (log base e)
 /// </summary>
 /// <remarks>This is a very slow function, despite repeated attempts at optimisation.
 /// To make it any faster, different strategies would be needed for integer operations.
 /// It does, however, scale well with the number of bits.
 /// </remarks>
 /// <param name="n1">The number to find the natural logarithm of</param>
 public static BigFloat Log(BigFloat n1)
 {
     BigFloat res = new BigFloat(n1);
     n1.Log();
     return n1;
 }