Elementary.Powers Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Powers(Double, Int32) Returns a sequence of powers of a real number.
Powers(Double, Int32, Int32) Returns a sequence of powers of a real number.

Powers(Double, Int32)

Returns a sequence of powers of a real number.
C#
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.
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