next | previous | forward | backward | up | top | index | toc | Macaulay2 website
ReflexivePolytopesDB :: toExternalString(KSEntry)

toExternalString(KSEntry) -- a string suitable for input to Macaulay2

Synopsis

Description

Returns the underlying string of the given entry from the Kreuzer-Skarke database.

i1 : e = KSEntry "4 5  M:53 5 N:9 5 H:3,43 [-80] id:0
       1   0   2   4 -10
       0   1   3   5  -9
       0   0   4   0  -4
       0   0   0   8  -8
       ";
i2 : str = toExternalString e

o2 = KSEntry "4 5  M:53 5 N:9 5 H:3,43 [-80] id:0
       1   0   2   4 -10
       0   1   3   5  -9
       0   0   4   0  -4
       0   0   0   8  -8
       "

The main value of this function, is that one can use this string as input to Macaulay2.

i3 : e1 = value str

o3 = 4 5  M:53 5 N:9 5 H:3,43 [-80] id:0
       1   0   2   4 -10
       0   1   3   5  -9
       0   0   4   0  -4
       0   0   0   8  -8
       

o3 : KSEntry
i4 : e1 === e

o4 = true

See also