* Ellipse perimeter calculation
Updated the perimeter calculation for the Ellipse class to use Ramanujan's approximation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Improve documentation for Side and ellipse perimeter
Updated docstring for Side class and added reference for ellipse perimeter calculation.
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Added conic construction file
* Conic section code finalized for preliminary review
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixing ISC001 issue
* Fixing variable declaration
* Modify generate method to return a formatted string
Changed the return type of the generate method to str and updated its implementation to return a formatted string instead of printing it.
* updating DIRECTORY.md
* updating DIRECTORY.md
* Clean up comments and improve docstring formatting
Removed commented-out documentation and updated docstring formatting.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add imports for dataclass and numpy
---------
Co-authored-by: AlexB <acbucha@clemson.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: cclauss <cclauss@users.noreply.github.com>
* chore(geometry): add angle conversion, ellipse eccentricity, polygon geometry, and triangle class
- Added `Angle.to_radians()` and `Angle.from_radians()` for degree-radian conversion.
- Improved `Ellipse.perimeter` with Ramanujan’s approximation and added `eccentricity` property.
- Enhanced `Polygon` with vertex generation, perimeter, and area computation.
- Updated `Rectangle` to construct all four sides and support complete vertex/area logic.
- Introduced new `Triangle` class with validation, perimeter, and Heron’s area formula.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Addition to the Geometry Folder with Triangle that calculates the different triangle centers
* Addition to the Geometry Folder with Triangle that calculates the different triangle centers
* Original triangle center w/fixes for automated testing
* triangles, added more fixes for automated testing
* trying to rename triangle.py
* Fixed a documentation error
* Removed a space I suspect is preventing the automated code reviewer from completing
* Fixed a documentation error
* updating DIRECTORY.md
* Apply suggestion from @cclauss
---------
Co-authored-by: AlexB <acbucha@clemson.edu>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: cclauss <cclauss@users.noreply.github.com>
* Add Rotating Calipers algorithm for convex polygon diameter
* refactor: define Point as NamedTuple class to adhere to naming conventions
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
* Add Andrew's Monotone Chain convex hull algorithm
* Apply suggestion from @cclauss
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: add Graham Scan convex hull algorithm
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: address pre-commit issues
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* chore: Algorithm-Keeper's comments addressed
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2026-03-07 22:35:52 +00:00
Ali Alimohammadiandpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add Jarvis March (Gift Wrapping) convex hull algorithm
* Use descriptive parameter names per algorithms-keeper review
* Update jarvis_march.py
* Update jarvis_march.py
* fix: add pytest marker
* Update jarvis_march.py
* feat: removed doctests and created a separate test file for CI to pass
* Update jarvis_march_unit.py
* Update jarvis_march.py
* Update jarvis_march_unit.py
* feat: added test folder with tests to pass CI checks
* fix: duplicate points handled
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: fixed ruff errors
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Implemented doctests for geometry-related classes
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Removed unused noqa directive
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactored sudoku_solver.py
* refactored sudoku_solver.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* context manager for file handling changed too in from_file function
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>