Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Latest commit 3115ca2 Nov 15, 2019 History
1 contributor

Users who have contributed to this file

Convert parallipiped dimesions to equivalent axisymmetric cylinder dimensions

For a given w x t x L block

Return the equivalent r x h cylinder

maintaining surface area and volume

Running the code (2 options):

  1. open a terminal and type:

$ python solve_cylinder_rt 1 2 3

returns

A 1.00 x 2.00 x 3.00 parallelipiped has the same surface area and volume as a cylinder that is r=0.6104 and t=5.1257

  1. In a jupyter notebook,

a. import solve_cylinder_rt as sc

b. sc.solve_cylinder(1,2,3)

output: A 1.00 x 2.00 x 3.00 parallelipiped has the same surface area and volume as a cylinder that is r=0.6104 and t=5.1257