Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Intersection of a Cube with two planes and resulting polyhedron

Hi,

I am new to sage and trying to solve a problem where I have two planes cutting a cube. How can I find the resulting polytope/polyhedron as a result of this cut.

cube = polytopes.n_cube(3) cube.Hrepresentation()

plane1 = Polyhedron(eqns=[(0,1,0,0)]) plane2 = Polyhedron(eqns=[(1,0,0,-1)])

Please also tell me that what is meant by eqns=[(0,1,0,0)] in sage? what equality it represent? similarly eqns=[(1,0,0,-1)] ?

Thanks

click to hide/show revision 2
No.2 Revision

Intersection of a Cube with two planes and resulting polyhedron

Hi,

I am new to sage and trying to solve a problem where I have two planes cutting a cube. How can I find the resulting polytope/polyhedron as a result of this cut.

cube = polytopes.n_cube(3)
cube.Hrepresentation()

cube.Hrepresentation()

plane1 = Polyhedron(eqns=[(0,1,0,0)]) plane2 = Polyhedron(eqns=[(1,0,0,-1)])

Polyhedron(eqns=[(1,0,0,-1)])

Please also tell me that what is meant by eqns=[(0,1,0,0)] eqns=[(0,1,0,0)] in sage? what equality it represent? similarly eqns=[(1,0,0,-1)] eqns=[(1,0,0,-1)] ?

Thanks