m2r (version 1.0.2)

phc: PHCpack

Description

Call PHCpack to solve a zero-dimensional system

Usage

solve_system(mpolyList)

solve_system.(mpolyList)

mixed_volume(mpolyList)

Arguments

mpolyList

An mpolyList object

Value

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

Details

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

Examples

Run this code
# NOT RUN {
# }
# 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)

# }

Run the code above in your browser using DataLab