Skip to content

YEgoR-SHu/geometric_lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

How to use calculator:

  1. Run python calculate.py
  2. Enter the figure name. Available are Circle, Square.
  3. Enter the function: Area or Perimeter.
  4. Enter figure sizes. Radius for circle, one side for square.
  5. Get the answer!

Math formulas

Area

  • Circle: S = πR²
  • Rectangle: S = ab
  • Square: S = a²
  • Triangle: S = sqrt(p * (p-a) * (p-b) * (p-c)) where p is semiperimeter

Perimeter

HEAD

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

Some change for Lesson 6 practice

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

94b208f (L-04: Experimental commit)

About

laba1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%