Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
changed solve_cylinder function
  • Loading branch information
rcc02007 committed Nov 15, 2019
1 parent 3115ca2 commit d28ccef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solve_cylinder_rt.py
Expand Up @@ -19,7 +19,7 @@ def matchAV(dim_cyl,dims):
AVc=cylinder(r,t)
return AVp-AVc

def return_hr(w,h,L):
def solve_cylinder(w,h,L):
r,t=fsolve(matchAV,[1,2],args=[w,h,L])
print('A %1.2f x %1.2f x %1.2f parallelipiped'%(w,h,L) )
print('has the same surface area and volume as a cylinder')
Expand Down

0 comments on commit d28ccef

Please sign in to comment.