From d28ccef701e423230869a84dda62b25f20deb5cc Mon Sep 17 00:00:00 2001 From: "Ryan C. Cooper" Date: Fri, 15 Nov 2019 10:24:34 -0500 Subject: [PATCH] changed solve_cylinder function --- solve_cylinder_rt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')