Elementary.Powers Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Powers( | Returns a sequence of powers of a real number. |
Powers( | Returns a sequence of powers of a real number. |
Powers(Double, Int32)
Returns a sequence of powers of a real number.
public static IEnumerable<double> Powers(
double value,
int endExponent
)
Parameters
- value Double
- The base of the powers.
- endExponent Int32
- The exclusive upper bound of the exponent range.
Return Value
IEnumerable<Double>An IEnumerable<T> of Double yielding successive powers of value starting with exponent 0.
Powers(Double, Int32, Int32)
Returns a sequence of powers of a real number.
public static IEnumerable<double> Powers(
double value,
int startExponent,
int endExponent
)
Parameters
- value Double
- The base of the powers.
- startExponent Int32
- The inclusive lower bound of the exponent range.
- endExponent Int32
- The exclusive upper bound of the exponent range.
Return Value
IEnumerable<Double>An IEnumerable<T> of Double yielding successive powers of value.