euclipy-0.3.1
توضیحات
A Euclidean Geometry based library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows :: Windows 10 |
| نام فایل | euclipy-0.3.1 |
| نام | euclipy |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joshua Varon |
| ایمیل نویسنده | 32440072+joshuavaron@users.noreply.github.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/euclipy/ |
| مجوز | MIT |
# Euclipy
[](https://pypi.org/project/euclipy/)
[](https://pypi.org/project/euclipy/)
### A library used to create, model, and solve figures in Euclidean Geometry.
## Features:
- Create symbolic geometric objects (Triangle(), Segment(), Point(), etc.)
- Implicitly defines segments created by constructions
## Installation
```sh
# PyPi Installation
pip install euclipy
```
## Sample Code (With Comments):
```py
from euclipy.core import Line, Segment, Expression
import euclipy.theorems as theorems
if __name__ == '__main__':
# Construct a line with colinear points: A, B, C, D, E
line = Line('A B C D E')
# Define the lengths of line segments lying on line AE
Segment('A C').measure = 5
Segment('C E').measure = 12
Segment('B E').measure = 15
# Apply the relevant theorem which creates expressions about the sums of
# contiguous subsegments of line segments
theorems.theorem_subsegment_sum(line)
# Solve the system of equations resresented by all of the expressions
# created by theorems
Expression.solve_system()
# Verify one of the solutions found
print(f"Segment('A B').measure = {Segment('A B').measure}") # 2
```
نحوه نصب
نصب پکیج whl euclipy-0.3.1:
pip install euclipy-0.3.1.whl
نصب پکیج tar.gz euclipy-0.3.1:
pip install euclipy-0.3.1.tar.gz