hgdemo API reference

This is a short API file demonstrating the bare essentials.

A not very useful module used in the hgdemo project.

hgdemo.circle.area(r)[source]

Returns the area of the circle with the radius ‘r’

Args:

r (float): radius of the circle

hgdemo.circle.peri(r)[source]

Returns the perimeter of the circle with the radius ‘r’

Args:

r (float): radius of the circle

SQUARE : Another not very useful module used in the hgdemo project.

hgdemo.square.side(A)[source]

Returns the side of the square with the area ‘A’’

Args:

A (float): square area

hgdemo.square.sqarea(r)[source]

Returns the area of the square with the side ‘r’

Args:

r (float): square side