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

Safe HaskellNone
LanguageHaskell2010

Polynomial.Hypersurface

Synopsis

Documentation

type Polygon = [Point2D] Source #

The tropical hypersurface of a polynomial f is the n-1 skeleton of the Newton polyotpe of f with a regular subdivision induced by a vector w in R^n. The hypersurface will be stored as a set of points.

mapTermPoint :: (IsMonomialOrder ord, Ord k, Integral k) => Polynomial k ord n -> Map Point2D (Monomial ord n, k) Source #

This function produces a key-value map of the terms of a polynomial with their corresponding coordinates for the Newton polytope

computeIntersection :: Integral k => (Monomial ord n, k) -> (Monomial ord n, k) -> (Monomial ord n, k) -> Point2D Source #

Finds the vertex of a tropical line which corresponds to the intersection of the polyhedral fan of a triangle. The output is the result of the systems of equations given by: ax + by +c = 0; dx + ey f = 0; gx + hy + i = 0.