Elementary.Powers(Double, Int32, Int32) Method

Returns a sequence of powers of a real number.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
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.

See Also