Integer Math.Minus One Pow Method
Returns -1 raised to the specified power.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
1 if n is even; otherwise -1.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static int MinusOnePow(
int n
)
Parameters
- n Int32
- An integer.
Return Value
Int321 if n is even; otherwise -1.