Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Safe-Inferred |
Involutive rings
- class Num a => Conjugate a where
- conjugate :: a -> a
- class Conjugate a => TrivialConjugate a
Documentation
class Num a => Conjugate a whereSource
An involutive ring
Conjugate a value. This defaults to the trivial involution.
>>>
conjugate (1 :+ 2)
1.0 :+ (-2.0)
>>>
conjugate 1
1
class Conjugate a => TrivialConjugate a Source