Returns -1 raised to the specified power.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static int MinusOnePow(
int n
)
Public Shared Function MinusOnePow (
n As Integer
) As Integer
public:
static int MinusOnePow(
int n
)
static member MinusOnePow :
n : int -> int
Parameters
- n
- Type: SystemInt32
An integer.
Return Value
Type:
Int321 if
n is even; otherwise -1.
Reference