IntegerMath.MinusOnePow Method

Returns -1 raised to the specified power.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static int MinusOnePow(
	int n
)

Parameters

n  Int32
An integer.

Return Value

Int32
1 if n is even; otherwise -1.

See Also