-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExtensionMethods.Log.cs
49 lines (38 loc) · 1.7 KB
/
ExtensionMethods.Log.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// A part of the C# Language Syntactic Sugar suite.
using System;
namespace CLSS
{
public static partial class CommonMathOps
{
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this sbyte a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this byte a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this short a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this ushort a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this int a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this uint a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this long a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this ulong a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this float a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
/// <inheritdoc cref="Math.Log(double, double)"/>
public static double Log(this double a, double newBase = Math.E)
{ return Math.Log(a, newBase); }
}
}