Skip to content

AgA101/geometric_lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geometric_lib

Geometric_lib contains various functions for working with geometric shapes.

Features

Geometric_lib has the ability to work with the following geometric shapes:

Circle

Link to the code

Usage examples:

import circle
area(1) // 3,14159
perimeter(2) // 12,56637

Rectangle

Link to the code

Usage examples:

import Rectangle
area(1, 2) // 2
perimeter(1, 3) // 8

Square

Link to the code

Usage examples:

import Square
area(3) // 9
perimeter(3) // 12

Triangle

Link to the code

Usage examples:

import Triangle
area(3, 2) // 3
perimeter(3, 4, 5) // 12

Math formulas used in project

Area

  • Circle: S = πR²
  • Rectangle: S = ab
  • Square: S = a²
  • Triangle: S = ½ ah

Perimeter

  • Circle: P = 2πR
  • Rectangle: P = 2a + 2b
  • Square: P = 4a
  • Triangle: P = a + b + c

Project history

Project creation date: 9/09/2023
Last commit: 29/09/2023

Commits

Hash commit Branch and HEAD Text Commit
- 5e7802c747ca82b7c06e0f1853e3fd5c490402b6 (HEAD -> main, origin/main, origin/HEAD) fix: fixed the perimeter function
- 8e3376788a9c6974a1986abbc7f6d7cb2b29cd3c feat: add triangle.py
- 817fb1454dc9b06096dbf1d30230545c755ecf6b feat: add rectangle.py
- d078c8d9ee6155f3cb0e577d28d337b791de28e2 L-03: Docs added
- 8ba9aeb3cea847b63a91ac378a2a6db758682460 L-03: Circle and square added
- 054ca9bd12319e001477c2a18961243e9943fc33 Add description of functions
- 03820d2606f1d1d6360cc4c42606e2282611a636 feat: typo fixed
- 176089e305a7be8fa5cafdb50f26ff6d1e268605 feat: typo fixed
- 41b59edbe769712bd6638a778214facecd5cd23d feat: typo fixed
- 11bdd25861246236d0c55bfe679cf5c9ad7ceec0 feat: typo fixed
- c33ecb587919a02114b0fe687b92e059ba86d39c Add: description of functions
- acbff82f9a1a8150ecba4659b8ca524e62e37569 Add: description of functions
- 8075cb7c52233c0e408fe7b7bdc09c0990fbc869 Add: description of functions
- 78d895b34ad67e591a37604d0e2d7482baf2cb2a Add: All project documentation has been done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%