assistant= 0.9sph = ((0.5 - t) * (0.5 - t) - r ** 2) if t < 0.5 else 0if sph > 0:val = sph ** 0.5else:val = 0.0