-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExtensionMethods.Pow.cs
49 lines (38 loc) · 1.49 KB
/
ExtensionMethods.Pow.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.Pow(double, double)"/>
public static double Pow(this sbyte x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this byte x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this short x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this ushort x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this int x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this uint x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this long x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this ulong x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this float x, double y)
{ return Math.Pow(x, y); }
/// <inheritdoc cref="Math.Pow(double, double)"/>
public static double Pow(this double x, double y)
{ return Math.Pow(x, y); }
}
}