import numpy as np

a = 0.28
b = np.sqrt(1 - a**2)
for candidate in (b, -b):
    print(f"b = {candidate:.2f}  a² + b² = {a**2 + candidate**2:.3f}")
