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