We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acb2d55 commit bebb630Copy full SHA for bebb630
pylabrobot/resources/height_functions.py
@@ -78,7 +78,7 @@ def volume_of_spherical_cap(h: float):
78
return (1/3) * math.pi * h**2 * (3*r - h)
79
80
# Binary search to solve for h
81
- low, high = 0, r
+ low, high = 0.0, r
82
tolerance = 1e-6
83
while high - low > tolerance:
84
mid = (low + high) / 2
0 commit comments