combinat-0.2.8.1: Generate and manipulate various combinatorial objects.
Math.Combinat.Sign
Description
Signs
Synopsis
data Sign Source
Constructors
Instances
isPlus :: Sign -> Bool Source
isMinus :: Sign -> Bool Source
signValue :: Num a => Sign -> a Source
+1 or -1
+1
-1
paritySign :: Integral a => a -> Sign Source
Plus if even, Minus if odd
Plus
Minus
oppositeSign :: Sign -> Sign Source
mulSign :: Sign -> Sign -> Sign Source
productOfSigns :: [Sign] -> Sign Source