IntegerMath.MinusOnePow Method

Returns -1 raised to the specified power.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static int MinusOnePow(
	int n
)

Parameters

n  Int32
An integer.

Return Value

Int32
1 if n is even; otherwise -1.

See Also