Ask Your Question

ricom's profile - activity

2019-02-24 12:06:53 +0200 received badge  Student (source)
2019-02-24 12:06:18 +0200 asked a question Display Vertex Label a Polytope

I want to display a polytope with labels of vertices. I guess I can do this by using the argument vertex_labels = True in the function show(). However, how can I input the labels of the vertices? More concretely, what should I include/change in the code below so that I can display, for example, A at (1,0), B at (0,1) and C at (1,1)?

P = Polyhedron(vertices = [(1,0), (0,1), (1,1)]) = True)

Additionally, I think the labels when shown will be on top of the vertices. How can I display the labels besides the vertices and hopefully outside of the polytope?


2017-06-12 19:30:11 +0200 received badge  Scholar (source)
2017-06-12 18:25:01 +0200 asked a question How to create a nonzero vector?

Hi. I would like to create a nonzero vector, for example, a vector of 100 elements of 1. I can do this with a for loop, but I'm not sure if there's a faster way to do it, similar to zero_vector(). Thanks.