Skip to main content

This package calculates simple properties of geometric objects such as spheres, rectangular prisms, cylinders, and cones.

Project description

Geometric Calculator

Description

This package aims to allow its users to seamlessly calculate simple properties of geometric objects such as spheres, rectangular prisms, cylinders, and cones. By using this package, an user can simply enter the basic dimensions of their object and receive the surface area or volume of the object. This package can be used so that coders do not have to clog up their code with mathematical geometry formulas.

Instructions

Setting Up

Ensure you already have pipenv on your machine. Type this into a cmd: pipenv install -i https://test.pypi.org/simple/ ndnGeometryCalc == 0.0.1

Using the Package

To import our package, simply include the following line in the program:

from ndnGeometryCalc import geoCalc

Then you can use any of the functions in our package.

#Parameters: radius of the sphere
#Returns: Volume and surface area of given sphere
sphere(radius)

#Example
geoCalc.sphere(5)
#Parameters: radius, height of the cylinder
#Returns: Volume and surface area of given cylinder
cylinder(radius, height)

#Example
geoCalc.cylinder(4,6)
#Parameters: length, width, height of the rectangular prism
#Returns: Volume and surface area of given rectangular prism
rectangularPrism(length, width, height)

#Example
geoCalc.rectangularPrism(6,5,7)
#Parameters: radius, height of the cone
#Returns: Volume and surface area of given cone
cone(radius, height):

#Example
geoCalc.cone(4,7)

Example program

Team Members

Noah Zhou

Daniel Pang

Niket Gautam

Package Page

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

ndnGeometryCalc-0.0.1.tar.gz (39.8 kB view hashes)

Uploaded Source

Built Distribution

ndnGeometryCalc-0.0.1-py3-none-any.whl (27.5 kB view hashes)

Uploaded Python 3

Supported by

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