tropical-geometry-0.0.0.1: A Tropical Geometry package for Haskell

Safe HaskellSafe
LanguageHaskell2010

Arithmetic.Numbers

Contents

Synopsis

Types

data Tropical a Source #

Constructors

Tropical 

Fields

Inf 
Instances
Functor Tropical Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

fmap :: (a -> b) -> Tropical a -> Tropical b #

(<$) :: a -> Tropical b -> Tropical a #

(Num a, Ord a, Rig a) => LeftModule Natural (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

(.*) :: Natural -> Tropical a -> Tropical a #

(Num a, Ord a, Rig a) => RightModule Natural (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

(*.) :: Tropical a -> Natural -> Tropical a #

Enum (Tropical Integer) Source # 
Instance details

Defined in Arithmetic.Numbers

Eq a => Eq (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

(==) :: Tropical a -> Tropical a -> Bool #

(/=) :: Tropical a -> Tropical a -> Bool #

Integral (Tropical Integer) Source # 
Instance details

Defined in Arithmetic.Numbers

(Ord a, Num a) => Num (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Ord (Tropical Integer) Source # 
Instance details

Defined in Arithmetic.Numbers

Real (Tropical Integer) Source # 
Instance details

Defined in Arithmetic.Numbers

Show a => Show (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

showsPrec :: Int -> Tropical a -> ShowS #

show :: Tropical a -> String #

showList :: [Tropical a] -> ShowS #

(Rig a, Num a, Ord a) => Rig (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

fromNatural :: Natural -> Tropical a #

(Num a, Ord a, Rig a) => DecidableZero (Tropical a) Source #

Not neccesary to implement since it is already defined

Instance details

Defined in Arithmetic.Numbers

Methods

isZero :: Tropical a -> Bool #

Num a => Commutative (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Num a => Unital (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

one :: Tropical a #

pow :: Tropical a -> Natural -> Tropical a #

productWith :: Foldable f => (a0 -> Tropical a) -> f a0 -> Tropical a #

Num a => Multiplicative (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

(*) :: Tropical a -> Tropical a -> Tropical a #

pow1p :: Tropical a -> Natural -> Tropical a #

productWith1 :: Foldable1 f => (a0 -> Tropical a) -> f a0 -> Tropical a #

(Ord a, Num a) => Semiring (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

(Num a, Ord a, Rig a) => Monoidal (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

zero :: Tropical a #

sinnum :: Natural -> Tropical a -> Tropical a #

sumWith :: Foldable f => (a0 -> Tropical a) -> f a0 -> Tropical a #

Ord a => Additive (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

Methods

(+) :: Tropical a -> Tropical a -> Tropical a #

sinnum1p :: Natural -> Tropical a -> Tropical a #

sumWith1 :: Foldable1 f => (a0 -> Tropical a) -> f a0 -> Tropical a #

Ord a => Abelian (Tropical a) Source # 
Instance details

Defined in Arithmetic.Numbers

(IsMonomialOrder ord, KnownNat n) => Fractional (Polynomial (Tropical Integer) ord n) # 
Instance details

Defined in Polynomial.Prelude

(IsMonomialOrder ord, KnownNat n) => Num (Polynomial (Tropical Integer) ord n) # 
Instance details

Defined in Polynomial.Prelude