Copyright | [2018..2020] Trevor L. McDonell |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Involutive rings
Synopsis
- class Num a => Conjugate a where
- conjugate :: a -> a
- class Conjugate a => TrivialConjugate a
Documentation
class Num a => Conjugate a where #
An involutive ring
Nothing
Conjugate a value. This defaults to the trivial involution.
>>>
conjugate (1 :+ 2)
1.0 :+ (-2.0)
>>>
conjugate 1
1
Instances
class Conjugate a => TrivialConjugate a #