\[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
\]
↓
\[\begin{array}{l}
t_1 := \sqrt{z + z}\\
\mathsf{fma}\left(x \cdot 0.5, t_1, t_1 \cdot \left(-y\right)\right) \cdot e^{\frac{t \cdot t}{2}}
\end{array}
\]
(FPCore (x y z t)
:precision binary64
(* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (/ (* t t) 2.0))))
↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (sqrt (+ z z))))
(* (fma (* x 0.5) t_1 (* t_1 (- y))) (exp (/ (* t t) 2.0)))))
double code(double x, double y, double z, double t) {
return (((x * 0.5) - y) * sqrt((z * 2.0))) * exp(((t * t) / 2.0));
}
↓
double code(double x, double y, double z, double t) {
double t_1 = sqrt((z + z));
return fma((x * 0.5), t_1, (t_1 * -y)) * exp(((t * t) / 2.0));
}
function code(x, y, z, t)
return Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * exp(Float64(Float64(t * t) / 2.0)))
end
↓
function code(x, y, z, t)
t_1 = sqrt(Float64(z + z))
return Float64(fma(Float64(x * 0.5), t_1, Float64(t_1 * Float64(-y))) * exp(Float64(Float64(t * t) / 2.0)))
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Exp[N[(N[(t * t), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z + z), $MachinePrecision]], $MachinePrecision]}, N[(N[(N[(x * 0.5), $MachinePrecision] * t$95$1 + N[(t$95$1 * (-y)), $MachinePrecision]), $MachinePrecision] * N[Exp[N[(N[(t * t), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
↓
\begin{array}{l}
t_1 := \sqrt{z + z}\\
\mathsf{fma}\left(x \cdot 0.5, t_1, t_1 \cdot \left(-y\right)\right) \cdot e^{\frac{t \cdot t}{2}}
\end{array}
Alternatives
| Alternative 1 |
|---|
| Accuracy | 72.4% |
|---|
| Cost | 14153 |
|---|
\[\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
t_2 := e^{\frac{t \cdot t}{2}}\\
\mathbf{if}\;x \cdot 0.5 \leq -4 \cdot 10^{-93} \lor \neg \left(x \cdot 0.5 \leq 2 \cdot 10^{+87}\right):\\
\;\;\;\;t_2 \cdot \left(\left(x \cdot 0.5\right) \cdot t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 \cdot \left(y \cdot \left(-t_1\right)\right)\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 53.2% |
|---|
| Cost | 13897 |
|---|
\[\begin{array}{l}
t_1 := e^{\frac{t \cdot t}{2}}\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{-203} \lor \neg \left(y \leq 7 \cdot 10^{-229}\right):\\
\;\;\;\;t_1 \cdot \left(y \cdot \left(-\sqrt{z \cdot 2}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 \cdot \sqrt{\left(x \cdot x\right) \cdot \left(0.5 \cdot z\right)}\\
\end{array}
\]
| Alternative 3 |
|---|
| Accuracy | 99.5% |
|---|
| Cost | 13760 |
|---|
\[e^{\frac{t \cdot t}{2}} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right)
\]
| Alternative 4 |
|---|
| Accuracy | 50.7% |
|---|
| Cost | 13568 |
|---|
\[e^{\frac{t \cdot t}{2}} \cdot \left(y \cdot \left(-\sqrt{z \cdot 2}\right)\right)
\]
| Alternative 5 |
|---|
| Accuracy | 7.6% |
|---|
| Cost | 7232 |
|---|
\[e^{\frac{t \cdot t}{2}} \cdot \left(z \cdot \left(x + y \cdot -2\right)\right)
\]
| Alternative 6 |
|---|
| Accuracy | 7.6% |
|---|
| Cost | 7232 |
|---|
\[e^{\frac{t \cdot t}{2}} \cdot \left(z \cdot \left(x - y \cdot 4\right)\right)
\]
| Alternative 7 |
|---|
| Accuracy | 6.2% |
|---|
| Cost | 192 |
|---|
\[x \cdot z
\]