def is_cardano_triplet(a, b, c):
    f = lambda x: x ** (1.0 / 2)
g = lambda x: (-1 if x < 0 else 1) * abs(x) ** (1.0 / 3)
return abs(g(a + b * f(c)) + g(a - b * f(c)) - 1) < 1e-10
How do I write this equation in Python?