\[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)
\]
↓
\[\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+154} \lor \neg \left(z \leq 5.8 \cdot 10^{+89}\right):\\
\;\;\;\;x \cdot x - z \cdot \left(z \cdot \left(4 \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot x + \left(4 \cdot y\right) \cdot \left(t - z \cdot z\right)\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (- (* x x) (* (* y 4.0) (- (* z z) t))))
↓
(FPCore (x y z t)
:precision binary64
(if (or (<= z -1.3e+154) (not (<= z 5.8e+89)))
(- (* x x) (* z (* z (* 4.0 y))))
(+ (* x x) (* (* 4.0 y) (- t (* z z))))))
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x * x) - ((y * 4.0d0) * ((z * z) - t))
end function
↓
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((z <= (-1.3d+154)) .or. (.not. (z <= 5.8d+89))) then
tmp = (x * x) - (z * (z * (4.0d0 * y)))
else
tmp = (x * x) + ((4.0d0 * y) * (t - (z * z)))
end if
code = tmp
end function
herbie shell --seed 2023059
(FPCore (x y z t)
:name "Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1, B"
:precision binary64
:herbie-target
(- (* x x) (* 4.0 (* y (- (* z z) t))))
(- (* x x) (* (* y 4.0) (- (* z z) t))))