I understand that you are not happy with
double a = ...;
double b = ...;
double c = Math.Pow(a,b);
How about
...
double c = a.Pow(b);
If this is what you want, create an extension method for
double
type named
Pow
. E.g.
public static class DoubleExtension
{
public static double Pow(this double a, double b) { return Math.Pow(a, b); }
}
You may of course use other names than
Pow
for the extension method.
Cheers
Andi