Skip to main content

solve euclid geometry

Project description

GeometryAI

Example 1: Finding an Angle

from geometryai import *
draw_triangle()
process()
given_equal_angle("ABC", "BCA")
given_equal_angle("CAB", "BCA")
process2()
print(check_angle_value("ABC"))

Output

60

Example 2: NCERT class 9 chapter triangles

from geometryai import *
example_3 = """
construct:
    triangle
    extend AC
    extend BC
    join DE
given:
    parallel_line AB DE
    line_eq AC CD
prove:
    congruent_triangle ECD BCA
    cpct
query:
    congruent_triangle ECD BCA
    line_eq BC CE
"""
exercise_7_1 = """
construct:
    quadrilateral
    join BD
given:
    angle_eq BDA BDC
    line_eq CD AD
prove:
    congruent_triangle BDC BDA
    cpct
query:
    congruent_triangle BDC BDA
    line_eq AB BC
"""
exercise_7_2 = """
construct:
    quadrilateral
    join AC BD
given:
    angle_eq ADC BAD
    line_eq CD AB
prove:
    congruent_triangle ADC DAB
    cpct
query:
    congruent_triangle ADC DAB
    line_eq BD AC
"""
exercise_7_3 = """
construct:
    triangle
    extend AC
    extend BC
    join DE
given:
    angle_val ADE 90
    angle_val BAC 90
    line_eq AB DE
prove:
    congruent_triangle CBA CED
    cpct
query:
    line_eq AC CD
"""
exercise_7_4 = """
construct:
    quadrilateral
    join BD
given:
    parallel_line AB CD
    parallel_line AD BC
prove:
    congruent_triangle CBD ADB
query:
    congruent_triangle CBD ADB
"""
god(example_3)
god(exercise_7_1)
god(exercise_7_2)
god(exercise_7_3)
god(exercise_7_4)

Output

True
True
True
True
True
True
True
True

Incomplete documentation

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

geometryai-0.1.5.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geometryai-0.1.5-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file geometryai-0.1.5.tar.gz.

File metadata

  • Download URL: geometryai-0.1.5.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for geometryai-0.1.5.tar.gz
Algorithm Hash digest
SHA256 97ea53fb042a68888092636c80892272888ac6a9e074fb5b4a6b7275b82878e9
MD5 ad44c72be77eff93fd8cc64ed0eb8503
BLAKE2b-256 c7e6cef8878a6842c88855488fb728232a8d14b02746df20aaad67a1453905a3

See more details on using hashes here.

File details

Details for the file geometryai-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: geometryai-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for geometryai-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ecfa5ef7c7158f5d26a1b2e86d8bea0cefa7743a9d8961639678be940aec7a79
MD5 5f23a82e83ed60065436c15a832e53ed
BLAKE2b-256 3089aafff81022c84fa795f1e7320cd253b5113558041ca691e646eb2d556aa9

See more details on using hashes here.

Supported by

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