This uses negative amplitudes to make the waves "go up and down" so to speak. It took a day for me to figure out that the efficient signed distance field implementation that I was using can't handle that. (I did try to find out why but gave up.)
Anyway, with a SDF function that does not use Newton-Raphson, this worked.