update doc
This commit is contained in:
@@ -7,7 +7,7 @@ commands
|
||||
- `eng-plate`: central deflection and min. thickness of a circular plate
|
||||
- `eng-tube`: bubkling stress of a tube
|
||||
|
||||
libs
|
||||
lib functions
|
||||
- `engineering.area.area(vertices)`
|
||||
- `engineering.awg.diameter(number)`
|
||||
- `engineering.awg.area(number)`
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""\
|
||||
Determine the area of a simple polygon
|
||||
Determine the area of a simple polygon.
|
||||
"""
|
||||
from builtins import input
|
||||
import builtins
|
||||
import sys
|
||||
import re
|
||||
|
||||
@@ -78,7 +78,7 @@ def main():
|
||||
choice = 'q'
|
||||
try:
|
||||
while choice not in ('q', 'quit', 'exit'):
|
||||
choice = input(" %i Points, area: " % len(points) +
|
||||
choice = builtins.input(" %i Points, area: " % len(points) +
|
||||
info("%.2f ") % a + "> " + csi(Style.NOBOLD, FGColor.COMMAND))
|
||||
sys.stdout.write(reset())
|
||||
choice = " ".join(choice.split()) # replace multiple spaces with single one
|
||||
|
||||
Reference in New Issue
Block a user