Skip to content

dxlxb/geometric_lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math formulas

Area

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

Perimeter

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

Unit tests

Unit tests are implemented using Python unittest:

  • test_circle.py — tests for circle.py
  • test_square.py — tests for square.py

Run all tests

python3 -m unittest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%