- Prerequisite: cabal and ghc
git clone https://github.com/attacker0211/newton-polygon.git ~/newton-polygon
(or git pull origin master to update)
cd newton-polygon
cabal v2-install
cabal v2-repl
ppNewton x
: pretty-print newton polygons of boundx
ppNewtonL list
: pretty-print newton polygons of bounds from thelist
ppNewtonGen numbranchA numBranchB multiplicativeA multiplicativeA bound
: general case, defaultnumBranchA = 3, numBranchB = 4, sumA = bound*multiplicativeA, sumB = bound*multiplicativeB
ppNewtonGenL numbranchA numBranchB multiplicativeA multiplicativeB list_of_bounds
: general caseppNewtonMonoGen bound ramies
: single case, e.gppNewtonMonoGen 7 [2,4,4,4]
- Degenerate Type:
:l DegenerateGen
ppDeg bound ramies