diff --git a/solve_cylinder_rt.py b/solve_cylinder_rt.py index ee315cd..3bb85f0 100755 --- a/solve_cylinder_rt.py +++ b/solve_cylinder_rt.py @@ -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')