version 1.6, 2013/09/21 04:48:36 |
version 1.9, 2020/03/12 07:33:03 |
|
|
% $OpenXM: OpenXM/src/kan96xx/trans/polymake.sm1,v 1.5 2013/09/20 05:12:24 takayama Exp $ |
% $OpenXM: OpenXM/src/kan96xx/trans/polymake.sm1,v 1.8 2013/09/25 07:30:52 takayama Exp $ |
% It is a polymake interface |
% It is a polymake interface |
|
|
/polymake.start { |
/@@@polymake.ask.which 1 def |
|
/polymake.start { polymake.start.local } def |
|
/polymake.start.local { |
(ox.k0.loaded) boundp { } |
(ox.k0.loaded) boundp { } |
{ [(parse) (ox.sm1) pushfile] extension |
{ [(parse) (ox.sm1) pushfile] extension |
/@@@polymake.k0.ccc [ ] def |
/@@@polymake.k0.ccc [ ] def |
|
|
@@@polymake.k0.ccc oxsetmathcap @@@polymake.k0.ccc oxmathcap |
@@@polymake.k0.ccc oxsetmathcap @@@polymake.k0.ccc oxmathcap |
} { } ifelse |
} { } ifelse |
[(parse) ( 1 )] extension pop % BUG, dummy to avoid bus error on mac.2013.09.21 |
[(parse) ( 1 )] extension pop % BUG, dummy to avoid bus error on mac.2013.09.21 |
|
@@@polymake.ask.which { |
[(which) (polymake)] oxshell tag 0 eq { |
[(which) (polymake)] oxshell tag 0 eq { |
[(export) (PATH) (=) (/usr/local/polymake/bin:${PATH})] oxshell |
[(export) (PATH) (=) (/usr/local/polymake/bin:${PATH})] oxshell |
[(which) (polymake)] oxshell tag 0 eq { |
[(which) (polymake)] oxshell tag 0 eq { |
(Polymake is not installed in this system.) error |
(Polymake is not installed in this system.) error |
} { } ifelse |
} { } ifelse |
} { } ifelse |
} { } ifelse |
|
} { } ifelse |
[(which) (polymake2tfb)] oxshell tag 0 eq { |
[(which) (polymake2tfb)] oxshell tag 0 eq { |
(polymake2tfb is not installed in this system.) error |
(polymake2tfb is not installed in this system.) error |
} { } ifelse |
} { } ifelse |
|
|
(polymake, polymake2tfb, ox_k0 must be installed.) |
(polymake, polymake2tfb, ox_k0 must be installed.) |
(cf. @@@polymake.k0.ccc, kan96xx/Doc/oxshell.*, kan96xx/trans/polymake.sm1, oxshell ) |
(cf. @@@polymake.k0.ccc, kan96xx/Doc/oxshell.*, kan96xx/trans/polymake.sm1, oxshell ) |
(The variable @@@doPolymake.vars keeps session logs with the polymake) |
(The variable @@@doPolymake.vars keeps session logs with the polymake) |
|
(See also usePolymake.local, usePolymake.OoHG.native and usePolymake.OoHG.curl in cgi.sm1) |
(Example:) |
(Example:) |
% ( [(export) (PATH) (=) (/usr/local/polymake/bin:${PATH})] oxshell ) |
% ( [(export) (PATH) (=) (/usr/local/polymake/bin:${PATH})] oxshell ) |
|
$ usePolymake.OoHG.curl polymake.start ; $ |
$ [(FACETS) (polymake.data(polymake.POINTS([[1,0,0],[1,1,0],[1,0,1],[1,1,1/2]])))]$ |
$ [(FACETS) (polymake.data(polymake.POINTS([[1,0,0],[1,1,0],[1,0,1],[1,1,1/2]])))]$ |
( doPolymake /rr set ) |
( doPolymake /rr set ) |
( Keys---properties are FACETS, CONE_DIM, LINEARITY_DIM, FEASIBLE, AFFINE_FULL, ... ) |
( Keys---properties are FACETS, CONE_DIM, LINEARITY_DIM, FEASIBLE, AFFINE_FULL, ... ) |
]] putUsages |
]] putUsages |
/doPolymake { |
/doPolymake { doPolymake.local } def |
|
/doPolymake.local { |
/arg1 set |
/arg1 set |
[/in-doPolymake /pAction /pData /pNative /ptree |
[/in-doPolymake /pAction /pData /pNative /ptree |
/pResult /pError |
/pResult /pError |