Skip to main content

A Euclidean Geometry based library

Project description

Euclipy

PyPI version

PyPI downloads

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

# PyPi Installation

pip install euclipy

Sample Code (With Comments):

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

euclipy-0.3.1.tar.gz (15.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page