Home Online Manual
Top
Back: isFullSpace
Forward: isSimplicial
FastBack:
FastForward:
Up: gfan_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.13.2.27 isOrigin

Procedure from library gfan.lib (see gfan_lib).

Usage:
isOrigin(c); c cone

Return:
1, if c is the origin; 0 otherwise

Example:
 
LIB "gfan.lib";
cone c1;
isOrigin(c1);
==> 1
intmat M2[2][2]=
1,0,
0,1;
cone c2=coneViaPoints(M2);
isOrigin(c2);
==> 0
intmat M3[4][2]=
1,0,
0,1,
-1,0,
0,-1;
cone c3=coneViaPoints(M3);
isOrigin(c3);
==> 0