update doc

This commit is contained in:
2024-07-20 16:06:28 +02:00
parent 3a5045a49b
commit 2b4394b09a
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ commands
- `eng-plate`: central deflection and min. thickness of a circular plate - `eng-plate`: central deflection and min. thickness of a circular plate
- `eng-tube`: bubkling stress of a tube - `eng-tube`: bubkling stress of a tube
libs lib functions
- `engineering.area.area(vertices)` - `engineering.area.area(vertices)`
- `engineering.awg.diameter(number)` - `engineering.awg.diameter(number)`
- `engineering.awg.area(number)` - `engineering.awg.area(number)`

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- 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 sys
import re import re
@@ -78,7 +78,7 @@ def main():
choice = 'q' choice = 'q'
try: try:
while choice not in ('q', 'quit', 'exit'): 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)) info("%.2f ") % a + "> " + csi(Style.NOBOLD, FGColor.COMMAND))
sys.stdout.write(reset()) sys.stdout.write(reset())
choice = " ".join(choice.split()) # replace multiple spaces with single one choice = " ".join(choice.split()) # replace multiple spaces with single one