I tried the 'overlay' method in pixelmath, and even substituting '*' for 'x', and 0.5 for 1/2 it throws an error!
David, I should've made clear that the expressions aren't meant to be entered exactly as I indicated.
Each software may have a different syntax depending on their particular PixelMath implementation.
For PixInsight, it would be something like this:
(($T > 0.5) * 1 - (1-2*($T-0.5)) * (1-BI)) ($T <= 0.5) * (2*$T) * BI
Where BI is the blending image.
Also note that all the expressions that use "if..." are approximate.