Simulation working

The sqrt function must take a positive value.
I am taking an abs on the delta.
The gate should be stopping this but the call is made before the result
is known.