File: example.py

package info (click to toggle)
polymake 4.15-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 35,892 kB
  • sloc: cpp: 168,945; perl: 43,410; 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 (3)
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;"))