Name | euclipy JSON |
Version |
1.1.1
JSON |
| download |
home_page | |
Summary | A Synthetic Euclidean Geometry based library |
upload_time | 2023-12-17 21:45:53 |
maintainer | |
docs_url | None |
author | Joshua Varon |
requires_python | |
license | MIT |
keywords |
geometry
math
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Euclipy
[![PyPI version](https://img.shields.io/pypi/v/euclipy.svg?color=dodgerblue&label=%20latest%20version)](https://pypi.org/project/euclipy/)
[![PyPI downloads](https://img.shields.io/pypi/dm/euclipy.svg?color=limegreen&label=PyPI%20downloads)](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.)
- Gathers implicit information created by previous constructions
- Solves for unknown measures and expressions
## solve():
- Use the solve() function to solve for unknown measures and expressions
- Choose which metric you would like to solve for (measure, area, a ratio, etc.)
## Installation
```sh
# PyPi Installation
pip install euclipy
```
## Sample Code (With Comments):
```py
# Note: This is an implementation of Problem 17 from the 2016 AMC 12B Competition
from euclipy.polygon import Triangle
from euclipy.geometricobjects import Angle, Line, Segment
if __name__ == '__main__':
# Create a triangle
Triangle('A C B')
# Define lines within the triangle
Line('A P Q H')
Line('C P E')
Line('B Q D')
Line('A E B')
Line('B H C')
Line('C D A')
# Define triangle edge measures
Segment('A C').measure = 9
Segment('C B').measure = 8
Segment('A B').measure = 7
# Create an altitude of Triangle(ACB)
Angle('C H A').measure = 90
# Create angle bisectors in Triangle(ACB)
Angle('C B D').measure = Angle('D B A').measure
Angle('E C B').measure = Angle('A C E').measure
# Solve for and print the measure of Segment(PQ)
print(Segment('P Q').solve())
```
Raw data
{
"_id": null,
"home_page": "",
"name": "euclipy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "geometry,math",
"author": "Joshua Varon",
"author_email": "32440072+joshuavaron@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/df/e7/2339c60d05e1a434f2d7d24670b948facdd1121247f35e92a8b0a5125310/euclipy-1.1.1.tar.gz",
"platform": null,
"description": "\n# Euclipy\n\n \n\n[![PyPI version](https://img.shields.io/pypi/v/euclipy.svg?color=dodgerblue&label=%20latest%20version)](https://pypi.org/project/euclipy/)\n\n[![PyPI downloads](https://img.shields.io/pypi/dm/euclipy.svg?color=limegreen&label=PyPI%20downloads)](https://pypi.org/project/euclipy/)\n\n \n\n### A library used to create, model, and solve figures in Euclidean Geometry.\n\n## Features:\n\n \n\n- Create symbolic geometric objects (Triangle(), Segment(), Point(), etc.)\n\n- Gathers implicit information created by previous constructions\n\n- Solves for unknown measures and expressions\n\n## solve():\n\n \n\n- Use the solve() function to solve for unknown measures and expressions\n\n- Choose which metric you would like to solve for (measure, area, a ratio, etc.)\n \n\n## Installation\n\n```sh\n\n# PyPi Installation\n\npip install euclipy\n\n```\n\n## Sample Code (With Comments):\n\n```py\n# Note: This is an implementation of Problem 17 from the 2016 AMC 12B Competition\nfrom euclipy.polygon import Triangle\nfrom euclipy.geometricobjects import Angle, Line, Segment\n\nif __name__ == '__main__':\n # Create a triangle\n Triangle('A C B')\n\n # Define lines within the triangle\n Line('A P Q H')\n Line('C P E')\n Line('B Q D')\n Line('A E B')\n Line('B H C')\n Line('C D A')\n \n # Define triangle edge measures\n Segment('A C').measure = 9\n Segment('C B').measure = 8\n Segment('A B').measure = 7\n \n # Create an altitude of Triangle(ACB)\n Angle('C H A').measure = 90\n \n # Create angle bisectors in Triangle(ACB)\n Angle('C B D').measure = Angle('D B A').measure\n Angle('E C B').measure = Angle('A C E').measure\n \n # Solve for and print the measure of Segment(PQ)\n print(Segment('P Q').solve())\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Synthetic Euclidean Geometry based library",
"version": "1.1.1",
"project_urls": {
"Documentation": "https://joshuavaron.github.io/euclipy/",
"Source Code": "https://github.com/joshuavaron/euclipy"
},
"split_keywords": [
"geometry",
"math"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dfe72339c60d05e1a434f2d7d24670b948facdd1121247f35e92a8b0a5125310",
"md5": "9453ecd3ca68029176d1f15fe040ef95",
"sha256": "7a55c747a0b11246acf222565b0ca18efbcaf31e6f52caf516f0188ec6d4b338"
},
"downloads": -1,
"filename": "euclipy-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "9453ecd3ca68029176d1f15fe040ef95",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 25681,
"upload_time": "2023-12-17T21:45:53",
"upload_time_iso_8601": "2023-12-17T21:45:53.212119Z",
"url": "https://files.pythonhosted.org/packages/df/e7/2339c60d05e1a434f2d7d24670b948facdd1121247f35e92a8b0a5125310/euclipy-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-17 21:45:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "joshuavaron",
"github_project": "euclipy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "euclipy"
}