Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
pep8 cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
jplab committed Mar 17, 2017
1 parent a098bc1 commit 0ff050f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/geometry/polyhedron/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@
sage: triangle = Polyhedron([(0,0), (1,0), (1/2, sqrt(3)/2)], base_ring=AA)
sage: triangle.Hrepresentation()
(An inequality (-1, -0.5773502691896258?) x + 1 >= 0,
An inequality (1, -0.5773502691896258?) x + 0 >= 0,
(An inequality (-1, -0.5773502691896258?) x + 1 >= 0,
An inequality (1, -0.5773502691896258?) x + 0 >= 0,
An inequality (0, 1.154700538379252?) x + 0 >= 0)
Without specifying the ``base_ring``, the ``sqrt(3)`` would be a
Expand All @@ -196,7 +196,7 @@
sage: K.<sqrt3> = NumberField(x^2-3)
sage: Polyhedron([(0,0), (1,0), (1/2, sqrt3/2)])
A 2-dimensional polyhedron in (Number Field in sqrt3 with defining
A 2-dimensional polyhedron in (Number Field in sqrt3 with defining
polynomial x^2 - 3)^2 defined as the convex hull of 3 vertices
If the input consists of decimal numbers and the `base_ring` is not specified,
Expand Down Expand Up @@ -518,7 +518,7 @@ def Polyhedron(vertices=None, rays=None, lines=None,
convert = True

# Add the origin if necesarry
if got_Vrep and len(vertices)==0:
if got_Vrep and len(vertices) == 0:
vertices = [ [0]*ambient_dim ]

# Specific backends can override the base_ring
Expand Down

0 comments on commit 0ff050f

Please sign in to comment.