Macaulay2 » Documentation
Packages » TropicalToric :: polymakeConeContains
next | previous | forward | backward | up | index | toc

polymakeConeContains -- Check if a vector is contained in a cone using polymake

Synopsis

Description

This method checks if a vector, given as a list, is contained in a cone, where the cone is given as a list containing lists representing the vectors spanning the cone.

i1 : v = {1,0,0};
i2 : C = {{1,0,0},{0,1,0},{0,0,1}};
i3 : polymakeConeContains(v,C)

o3 = true
i4 : v = {1,0,0};
i5 : C = {{2,1,0},{0,1,0},{0,0,1}};
i6 : polymakeConeContains(v,C)

o6 = false

Ways to use polymakeConeContains:

For the programmer

The object polymakeConeContains is a method function.