next | previous | forward | backward | up | top | index | toc | Macaulay2 website
ConvexInterface :: mIsSubcone

mIsSubcone -- Test whether a cone is a subcone of another cone.

Synopsis

Description

Test whether C1 is a subcone of C2.

-- -*- M2-comint -*- {* hash: 1070301369 *}
--loading configuration for package "ConvexInterface" from file /home/member/dgrayson/.Macaulay2/init-ConvexInterface.m2
--loading configuration for package "MapleInterface" from file /home/member/dgrayson/.Macaulay2/init-MapleInterface.m2
i1 : L1={{1,0},{0,1}};
i2 : L1=apply(L1,vector)

o2 = {| 1 |, | 0 |}
      | 0 |  | 1 |

o2 : List
i3 : L2={{1,2},{2,1}};
i4 : L2=apply(L2,vector)

o4 = {| 1 |, | 2 |}
      | 2 |  | 1 |

o4 : List
i5 : mIsSubcone(L1,L2)

o5 = false

Ways to use mIsSubcone :

For the programmer

The object mIsSubcone is a method function with options.