Python | sympy.combinatoric.Polyhedron() method
With the help of sympy.combinatoric.Polyhedron() method, we can get the value of polyhedron by passing list of characters in it by using sympy.combinatoric.Polyhedron() method.
Syntax:
sympy.combinatoric.Polyhedron()
Return:
Return the value of polyhedron.
Example #1:
In this example, we can see that by using sympy.combinatoric.Polyhedron() method, we are able to get the value of polyhedron by passing list as a parameter.
Python3
from sympy.combinatorics import Polyhedron
from sympy.abc import a, b, c, d, e
gfg = Polyhedron( list ( 'abdce' ))
print (gfg)
|
Output:
Polyhedron((a, b, d, c, e), (), ())
Example #2:
Python3
from sympy.combinatorics import Polyhedron
gfg = Polyhedron([[ 1 , 2 , 3 ], [ 4 , 5 , 6 ]])
print (gfg)
|
Output:
Polyhedron(([1, 2, 3], [4, 5, 6]), (), ())
Last Updated :
11 Aug, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...