Skip to content

Commit bebb630

Browse files
committed
fixing int 0
1 parent acb2d55 commit bebb630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylabrobot/resources/height_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def volume_of_spherical_cap(h: float):
7878
return (1/3) * math.pi * h**2 * (3*r - h)
7979

8080
# Binary search to solve for h
81-
low, high = 0, r
81+
low, high = 0.0, r
8282
tolerance = 1e-6
8383
while high - low > tolerance:
8484
mid = (low + high) / 2

0 commit comments

Comments
 (0)