phc: PHCpack

Description Usage Arguments Details Value Examples

Description

Call PHCpack to solve a zero-dimensional system

Usage

1
2
3
4
5
solve_system(mpolyList)

solve_system.(mpolyList)

mixed_volume(mpolyList)

Arguments

mpolyList

An mpolyList object

Details

Note that solve_system() doesn't take in an input ring because the solver only works over the complex numbers.

Value

(currently) the output of an m2() call (string?)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run:  requires Macaulay2

# for this to work, you need to have modified your
# init-PHCpack.m2 file instead of changing your .bashrc
# file to establish the path of phc
# (**clarify**, maybe checkout algstat::polySolve)

(mpolyList <- mp(c("t^4 - x", "t^3 - y", "t^2 - z", "x+y+z")))
solve_system(mpolyList)
mixed_volume(mpolyList)


## End(Not run)

coneill-math/m2r documentation built on May 28, 2020, 12:30 p.m.