File: example.py

package info (click to toggle)
polymake 4.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,888 kB
  • sloc: cpp: 168,933; perl: 43,407; javascript: 31,575; ansic: 3,007; java: 2,654; python: 632; sh: 268; xml: 117; makefile: 61
file content (8 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
import JuPyMake

JuPyMake.InitializePolymake()

print(JuPyMake.ExecuteCommand("print 1+1;"))
print(JuPyMake.ExecuteCommand('application "polytope";'))
print(JuPyMake.ExecuteCommand("$p = cube(4);"))
print(JuPyMake.ExecuteCommand("print $p->VOLUME;"))