
(FPCore (x y z t) :precision binary64 (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (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));
}
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 * 0.5d0) - y) * sqrt((z * 2.0d0))) * exp(((t * t) / 2.0d0))
end function
public static double code(double x, double y, double z, double t) {
return (((x * 0.5) - y) * Math.sqrt((z * 2.0))) * Math.exp(((t * t) / 2.0));
}
def code(x, y, z, t): return (((x * 0.5) - y) * math.sqrt((z * 2.0))) * math.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 tmp = code(x, y, z, t) tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * exp(((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]
\begin{array}{l}
\\
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (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));
}
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 * 0.5d0) - y) * sqrt((z * 2.0d0))) * exp(((t * t) / 2.0d0))
end function
public static double code(double x, double y, double z, double t) {
return (((x * 0.5) - y) * Math.sqrt((z * 2.0))) * Math.exp(((t * t) / 2.0));
}
def code(x, y, z, t): return (((x * 0.5) - y) * math.sqrt((z * 2.0))) * math.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 tmp = code(x, y, z, t) tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * exp(((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]
\begin{array}{l}
\\
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
\end{array}
(FPCore (x y z t) :precision binary64 (* (- (* x 0.5) y) (sqrt (* (exp (* t t)) (* z 2.0)))))
double code(double x, double y, double z, double t) {
return ((x * 0.5) - y) * sqrt((exp((t * t)) * (z * 2.0)));
}
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 * 0.5d0) - y) * sqrt((exp((t * t)) * (z * 2.0d0)))
end function
public static double code(double x, double y, double z, double t) {
return ((x * 0.5) - y) * Math.sqrt((Math.exp((t * t)) * (z * 2.0)));
}
def code(x, y, z, t): return ((x * 0.5) - y) * math.sqrt((math.exp((t * t)) * (z * 2.0)))
function code(x, y, z, t) return Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(exp(Float64(t * t)) * Float64(z * 2.0)))) end
function tmp = code(x, y, z, t) tmp = ((x * 0.5) - y) * sqrt((exp((t * t)) * (z * 2.0))); end
code[x_, y_, z_, t_] := N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(N[Exp[N[(t * t), $MachinePrecision]], $MachinePrecision] * N[(z * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot 0.5 - y\right) \cdot \sqrt{e^{t \cdot t} \cdot \left(z \cdot 2\right)}
\end{array}
Initial program 99.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
exp-sqrtN/A
sqrt-unprodN/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6499.8%
Applied egg-rr99.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* x 0.5) y))
(t_2 (* (* t t) 0.020833333333333332))
(t_3 (sqrt (* z 2.0)))
(t_4 (+ 0.5 (* (* t t) (+ 0.125 t_2)))))
(if (<= (* t t) 5e+85)
(*
t_3
(/
(* t_1 (- 1.0 (* (* (* t t) (* t t)) (* t_4 t_4))))
(- 1.0 (* (* t t) t_4))))
(* t_3 (* t_1 (+ 1.0 (* (* t t) (+ 0.5 (* t (* t t_2))))))))))
double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double t_2 = (t * t) * 0.020833333333333332;
double t_3 = sqrt((z * 2.0));
double t_4 = 0.5 + ((t * t) * (0.125 + t_2));
double tmp;
if ((t * t) <= 5e+85) {
tmp = t_3 * ((t_1 * (1.0 - (((t * t) * (t * t)) * (t_4 * t_4)))) / (1.0 - ((t * t) * t_4)));
} else {
tmp = t_3 * (t_1 * (1.0 + ((t * t) * (0.5 + (t * (t * t_2))))));
}
return tmp;
}
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (x * 0.5d0) - y
t_2 = (t * t) * 0.020833333333333332d0
t_3 = sqrt((z * 2.0d0))
t_4 = 0.5d0 + ((t * t) * (0.125d0 + t_2))
if ((t * t) <= 5d+85) then
tmp = t_3 * ((t_1 * (1.0d0 - (((t * t) * (t * t)) * (t_4 * t_4)))) / (1.0d0 - ((t * t) * t_4)))
else
tmp = t_3 * (t_1 * (1.0d0 + ((t * t) * (0.5d0 + (t * (t * t_2))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double t_2 = (t * t) * 0.020833333333333332;
double t_3 = Math.sqrt((z * 2.0));
double t_4 = 0.5 + ((t * t) * (0.125 + t_2));
double tmp;
if ((t * t) <= 5e+85) {
tmp = t_3 * ((t_1 * (1.0 - (((t * t) * (t * t)) * (t_4 * t_4)))) / (1.0 - ((t * t) * t_4)));
} else {
tmp = t_3 * (t_1 * (1.0 + ((t * t) * (0.5 + (t * (t * t_2))))));
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * 0.5) - y t_2 = (t * t) * 0.020833333333333332 t_3 = math.sqrt((z * 2.0)) t_4 = 0.5 + ((t * t) * (0.125 + t_2)) tmp = 0 if (t * t) <= 5e+85: tmp = t_3 * ((t_1 * (1.0 - (((t * t) * (t * t)) * (t_4 * t_4)))) / (1.0 - ((t * t) * t_4))) else: tmp = t_3 * (t_1 * (1.0 + ((t * t) * (0.5 + (t * (t * t_2)))))) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * 0.5) - y) t_2 = Float64(Float64(t * t) * 0.020833333333333332) t_3 = sqrt(Float64(z * 2.0)) t_4 = Float64(0.5 + Float64(Float64(t * t) * Float64(0.125 + t_2))) tmp = 0.0 if (Float64(t * t) <= 5e+85) tmp = Float64(t_3 * Float64(Float64(t_1 * Float64(1.0 - Float64(Float64(Float64(t * t) * Float64(t * t)) * Float64(t_4 * t_4)))) / Float64(1.0 - Float64(Float64(t * t) * t_4)))); else tmp = Float64(t_3 * Float64(t_1 * Float64(1.0 + Float64(Float64(t * t) * Float64(0.5 + Float64(t * Float64(t * t_2))))))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * 0.5) - y; t_2 = (t * t) * 0.020833333333333332; t_3 = sqrt((z * 2.0)); t_4 = 0.5 + ((t * t) * (0.125 + t_2)); tmp = 0.0; if ((t * t) <= 5e+85) tmp = t_3 * ((t_1 * (1.0 - (((t * t) * (t * t)) * (t_4 * t_4)))) / (1.0 - ((t * t) * t_4))); else tmp = t_3 * (t_1 * (1.0 + ((t * t) * (0.5 + (t * (t * t_2)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * t), $MachinePrecision] * 0.020833333333333332), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$4 = N[(0.5 + N[(N[(t * t), $MachinePrecision] * N[(0.125 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 5e+85], N[(t$95$3 * N[(N[(t$95$1 * N[(1.0 - N[(N[(N[(t * t), $MachinePrecision] * N[(t * t), $MachinePrecision]), $MachinePrecision] * N[(t$95$4 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 - N[(N[(t * t), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$3 * N[(t$95$1 * N[(1.0 + N[(N[(t * t), $MachinePrecision] * N[(0.5 + N[(t * N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
t_2 := \left(t \cdot t\right) \cdot 0.020833333333333332\\
t_3 := \sqrt{z \cdot 2}\\
t_4 := 0.5 + \left(t \cdot t\right) \cdot \left(0.125 + t\_2\right)\\
\mathbf{if}\;t \cdot t \leq 5 \cdot 10^{+85}:\\
\;\;\;\;t\_3 \cdot \frac{t\_1 \cdot \left(1 - \left(\left(t \cdot t\right) \cdot \left(t \cdot t\right)\right) \cdot \left(t\_4 \cdot t\_4\right)\right)}{1 - \left(t \cdot t\right) \cdot t\_4}\\
\mathbf{else}:\\
\;\;\;\;t\_3 \cdot \left(t\_1 \cdot \left(1 + \left(t \cdot t\right) \cdot \left(0.5 + t \cdot \left(t \cdot t\_2\right)\right)\right)\right)\\
\end{array}
\end{array}
if (*.f64 t t) < 5.0000000000000001e85Initial program 99.7%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Simplified99.7%
Taylor expanded in t around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6490.2%
Simplified90.2%
flip-+N/A
associate-*r/N/A
/-lowering-/.f64N/A
Applied egg-rr95.2%
if 5.0000000000000001e85 < (*.f64 t t) Initial program 98.1%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around inf
*-commutativeN/A
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64100.0%
Simplified100.0%
(FPCore (x y z t)
:precision binary64
(*
(sqrt (* z 2.0))
(*
(- (* x 0.5) y)
(+
1.0
(*
(* t t)
(+ 0.5 (* t (* t (+ 0.125 (* t (* t 0.020833333333333332)))))))))))
double code(double x, double y, double z, double t) {
return sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * (0.125 + (t * (t * 0.020833333333333332)))))))));
}
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 = sqrt((z * 2.0d0)) * (((x * 0.5d0) - y) * (1.0d0 + ((t * t) * (0.5d0 + (t * (t * (0.125d0 + (t * (t * 0.020833333333333332d0)))))))))
end function
public static double code(double x, double y, double z, double t) {
return Math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * (0.125 + (t * (t * 0.020833333333333332)))))))));
}
def code(x, y, z, t): return math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * (0.125 + (t * (t * 0.020833333333333332)))))))))
function code(x, y, z, t) return Float64(sqrt(Float64(z * 2.0)) * Float64(Float64(Float64(x * 0.5) - y) * Float64(1.0 + Float64(Float64(t * t) * Float64(0.5 + Float64(t * Float64(t * Float64(0.125 + Float64(t * Float64(t * 0.020833333333333332)))))))))) end
function tmp = code(x, y, z, t) tmp = sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * (0.125 + (t * (t * 0.020833333333333332))))))))); end
code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[(1.0 + N[(N[(t * t), $MachinePrecision] * N[(0.5 + N[(t * N[(t * N[(0.125 + N[(t * N[(t * 0.020833333333333332), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{z \cdot 2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(1 + \left(t \cdot t\right) \cdot \left(0.5 + t \cdot \left(t \cdot \left(0.125 + t \cdot \left(t \cdot 0.020833333333333332\right)\right)\right)\right)\right)\right)
\end{array}
Initial program 99.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.1%
Simplified94.1%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6494.1%
Applied egg-rr94.1%
Final simplification94.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* x 0.5) y)))
(if (<= (* z 2.0) 1e-117)
(* (sqrt (* z 2.0)) (* t_1 (+ 1.0 (* 0.5 (* t t)))))
(* t_1 (sqrt (+ (* z 2.0) (* (* t t) (* z (+ (* t t) 2.0)))))))))
double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double tmp;
if ((z * 2.0) <= 1e-117) {
tmp = sqrt((z * 2.0)) * (t_1 * (1.0 + (0.5 * (t * t))));
} else {
tmp = t_1 * sqrt(((z * 2.0) + ((t * t) * (z * ((t * t) + 2.0)))));
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_1 = (x * 0.5d0) - y
if ((z * 2.0d0) <= 1d-117) then
tmp = sqrt((z * 2.0d0)) * (t_1 * (1.0d0 + (0.5d0 * (t * t))))
else
tmp = t_1 * sqrt(((z * 2.0d0) + ((t * t) * (z * ((t * t) + 2.0d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double tmp;
if ((z * 2.0) <= 1e-117) {
tmp = Math.sqrt((z * 2.0)) * (t_1 * (1.0 + (0.5 * (t * t))));
} else {
tmp = t_1 * Math.sqrt(((z * 2.0) + ((t * t) * (z * ((t * t) + 2.0)))));
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * 0.5) - y tmp = 0 if (z * 2.0) <= 1e-117: tmp = math.sqrt((z * 2.0)) * (t_1 * (1.0 + (0.5 * (t * t)))) else: tmp = t_1 * math.sqrt(((z * 2.0) + ((t * t) * (z * ((t * t) + 2.0))))) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * 0.5) - y) tmp = 0.0 if (Float64(z * 2.0) <= 1e-117) tmp = Float64(sqrt(Float64(z * 2.0)) * Float64(t_1 * Float64(1.0 + Float64(0.5 * Float64(t * t))))); else tmp = Float64(t_1 * sqrt(Float64(Float64(z * 2.0) + Float64(Float64(t * t) * Float64(z * Float64(Float64(t * t) + 2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * 0.5) - y; tmp = 0.0; if ((z * 2.0) <= 1e-117) tmp = sqrt((z * 2.0)) * (t_1 * (1.0 + (0.5 * (t * t)))); else tmp = t_1 * sqrt(((z * 2.0) + ((t * t) * (z * ((t * t) + 2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[N[(z * 2.0), $MachinePrecision], 1e-117], N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(t$95$1 * N[(1.0 + N[(0.5 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] * N[(z * N[(N[(t * t), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
\mathbf{if}\;z \cdot 2 \leq 10^{-117}:\\
\;\;\;\;\sqrt{z \cdot 2} \cdot \left(t\_1 \cdot \left(1 + 0.5 \cdot \left(t \cdot t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \sqrt{z \cdot 2 + \left(t \cdot t\right) \cdot \left(z \cdot \left(t \cdot t + 2\right)\right)}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 2 binary64)) < 1.00000000000000003e-117Initial program 97.1%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.9%
Simplified99.9%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6487.8%
Simplified87.8%
if 1.00000000000000003e-117 < (*.f64 z #s(literal 2 binary64)) Initial program 99.8%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
exp-sqrtN/A
sqrt-unprodN/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6499.8%
Applied egg-rr99.8%
Taylor expanded in t around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6495.4%
Simplified95.4%
Final simplification93.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (sqrt (* z 2.0))))
(if (<= (* t t) 3.9e+24)
(* (- (* x 0.5) y) t_1)
(if (<= (* t t) 1.4e+188)
(/ (* t_1 (* y (- 0.0 y))) y)
(* t_1 (* x (+ 0.5 (* (* t t) 0.25))))))))
double code(double x, double y, double z, double t) {
double t_1 = sqrt((z * 2.0));
double tmp;
if ((t * t) <= 3.9e+24) {
tmp = ((x * 0.5) - y) * t_1;
} else if ((t * t) <= 1.4e+188) {
tmp = (t_1 * (y * (0.0 - y))) / y;
} else {
tmp = t_1 * (x * (0.5 + ((t * t) * 0.25)));
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_1 = sqrt((z * 2.0d0))
if ((t * t) <= 3.9d+24) then
tmp = ((x * 0.5d0) - y) * t_1
else if ((t * t) <= 1.4d+188) then
tmp = (t_1 * (y * (0.0d0 - y))) / y
else
tmp = t_1 * (x * (0.5d0 + ((t * t) * 0.25d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = Math.sqrt((z * 2.0));
double tmp;
if ((t * t) <= 3.9e+24) {
tmp = ((x * 0.5) - y) * t_1;
} else if ((t * t) <= 1.4e+188) {
tmp = (t_1 * (y * (0.0 - y))) / y;
} else {
tmp = t_1 * (x * (0.5 + ((t * t) * 0.25)));
}
return tmp;
}
def code(x, y, z, t): t_1 = math.sqrt((z * 2.0)) tmp = 0 if (t * t) <= 3.9e+24: tmp = ((x * 0.5) - y) * t_1 elif (t * t) <= 1.4e+188: tmp = (t_1 * (y * (0.0 - y))) / y else: tmp = t_1 * (x * (0.5 + ((t * t) * 0.25))) return tmp
function code(x, y, z, t) t_1 = sqrt(Float64(z * 2.0)) tmp = 0.0 if (Float64(t * t) <= 3.9e+24) tmp = Float64(Float64(Float64(x * 0.5) - y) * t_1); elseif (Float64(t * t) <= 1.4e+188) tmp = Float64(Float64(t_1 * Float64(y * Float64(0.0 - y))) / y); else tmp = Float64(t_1 * Float64(x * Float64(0.5 + Float64(Float64(t * t) * 0.25)))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = sqrt((z * 2.0)); tmp = 0.0; if ((t * t) <= 3.9e+24) tmp = ((x * 0.5) - y) * t_1; elseif ((t * t) <= 1.4e+188) tmp = (t_1 * (y * (0.0 - y))) / y; else tmp = t_1 * (x * (0.5 + ((t * t) * 0.25))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 3.9e+24], N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[N[(t * t), $MachinePrecision], 1.4e+188], N[(N[(t$95$1 * N[(y * N[(0.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(t$95$1 * N[(x * N[(0.5 + N[(N[(t * t), $MachinePrecision] * 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \cdot t \leq 3.9 \cdot 10^{+24}:\\
\;\;\;\;\left(x \cdot 0.5 - y\right) \cdot t\_1\\
\mathbf{elif}\;t \cdot t \leq 1.4 \cdot 10^{+188}:\\
\;\;\;\;\frac{t\_1 \cdot \left(y \cdot \left(0 - y\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \left(x \cdot \left(0.5 + \left(t \cdot t\right) \cdot 0.25\right)\right)\\
\end{array}
\end{array}
if (*.f64 t t) < 3.8999999999999998e24Initial program 99.7%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Simplified99.7%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6495.9%
Simplified95.9%
if 3.8999999999999998e24 < (*.f64 t t) < 1.3999999999999999e188Initial program 100.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6414.9%
Simplified14.9%
Taylor expanded in x around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6411.6%
Simplified11.6%
sub0-negN/A
*-commutativeN/A
sub0-negN/A
flip--N/A
+-lft-identityN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f6447.2%
Applied egg-rr47.2%
if 1.3999999999999999e188 < (*.f64 t t) Initial program 97.6%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.5%
Simplified94.5%
Taylor expanded in x around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6469.9%
Simplified69.9%
Final simplification80.2%
(FPCore (x y z t) :precision binary64 (* (sqrt (* z 2.0)) (* (- (* x 0.5) y) (+ 1.0 (* (* t t) (+ 0.5 (* t (* t (* (* t t) 0.020833333333333332)))))))))
double code(double x, double y, double z, double t) {
return sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * ((t * t) * 0.020833333333333332)))))));
}
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 = sqrt((z * 2.0d0)) * (((x * 0.5d0) - y) * (1.0d0 + ((t * t) * (0.5d0 + (t * (t * ((t * t) * 0.020833333333333332d0)))))))
end function
public static double code(double x, double y, double z, double t) {
return Math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * ((t * t) * 0.020833333333333332)))))));
}
def code(x, y, z, t): return math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * ((t * t) * 0.020833333333333332)))))))
function code(x, y, z, t) return Float64(sqrt(Float64(z * 2.0)) * Float64(Float64(Float64(x * 0.5) - y) * Float64(1.0 + Float64(Float64(t * t) * Float64(0.5 + Float64(t * Float64(t * Float64(Float64(t * t) * 0.020833333333333332)))))))) end
function tmp = code(x, y, z, t) tmp = sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + ((t * t) * (0.5 + (t * (t * ((t * t) * 0.020833333333333332))))))); end
code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[(1.0 + N[(N[(t * t), $MachinePrecision] * N[(0.5 + N[(t * N[(t * N[(N[(t * t), $MachinePrecision] * 0.020833333333333332), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{z \cdot 2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(1 + \left(t \cdot t\right) \cdot \left(0.5 + t \cdot \left(t \cdot \left(\left(t \cdot t\right) \cdot 0.020833333333333332\right)\right)\right)\right)\right)
\end{array}
Initial program 99.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.1%
Simplified94.1%
Taylor expanded in t around inf
*-commutativeN/A
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6494.0%
Simplified94.0%
(FPCore (x y z t) :precision binary64 (* (sqrt (* z 2.0)) (* (- (* x 0.5) y) (+ 1.0 (* t (* t (+ 0.5 (* (* t t) 0.125))))))))
double code(double x, double y, double z, double t) {
return sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (t * (t * (0.5 + ((t * t) * 0.125))))));
}
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 = sqrt((z * 2.0d0)) * (((x * 0.5d0) - y) * (1.0d0 + (t * (t * (0.5d0 + ((t * t) * 0.125d0))))))
end function
public static double code(double x, double y, double z, double t) {
return Math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (t * (t * (0.5 + ((t * t) * 0.125))))));
}
def code(x, y, z, t): return math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (t * (t * (0.5 + ((t * t) * 0.125))))))
function code(x, y, z, t) return Float64(sqrt(Float64(z * 2.0)) * Float64(Float64(Float64(x * 0.5) - y) * Float64(1.0 + Float64(t * Float64(t * Float64(0.5 + Float64(Float64(t * t) * 0.125))))))) end
function tmp = code(x, y, z, t) tmp = sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (t * (t * (0.5 + ((t * t) * 0.125)))))); end
code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[(1.0 + N[(t * N[(t * N[(0.5 + N[(N[(t * t), $MachinePrecision] * 0.125), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{z \cdot 2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(1 + t \cdot \left(t \cdot \left(0.5 + \left(t \cdot t\right) \cdot 0.125\right)\right)\right)\right)
\end{array}
Initial program 99.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6493.3%
Simplified93.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* x 0.5) y)))
(if (<= (* t t) 4.8)
(* t_1 (sqrt (* (* z 2.0) (+ (* t t) 1.0))))
(* (sqrt (* z 2.0)) (* (* t t) (* 0.5 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double tmp;
if ((t * t) <= 4.8) {
tmp = t_1 * sqrt(((z * 2.0) * ((t * t) + 1.0)));
} else {
tmp = sqrt((z * 2.0)) * ((t * t) * (0.5 * t_1));
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_1 = (x * 0.5d0) - y
if ((t * t) <= 4.8d0) then
tmp = t_1 * sqrt(((z * 2.0d0) * ((t * t) + 1.0d0)))
else
tmp = sqrt((z * 2.0d0)) * ((t * t) * (0.5d0 * t_1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double tmp;
if ((t * t) <= 4.8) {
tmp = t_1 * Math.sqrt(((z * 2.0) * ((t * t) + 1.0)));
} else {
tmp = Math.sqrt((z * 2.0)) * ((t * t) * (0.5 * t_1));
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * 0.5) - y tmp = 0 if (t * t) <= 4.8: tmp = t_1 * math.sqrt(((z * 2.0) * ((t * t) + 1.0))) else: tmp = math.sqrt((z * 2.0)) * ((t * t) * (0.5 * t_1)) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * 0.5) - y) tmp = 0.0 if (Float64(t * t) <= 4.8) tmp = Float64(t_1 * sqrt(Float64(Float64(z * 2.0) * Float64(Float64(t * t) + 1.0)))); else tmp = Float64(sqrt(Float64(z * 2.0)) * Float64(Float64(t * t) * Float64(0.5 * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * 0.5) - y; tmp = 0.0; if ((t * t) <= 4.8) tmp = t_1 * sqrt(((z * 2.0) * ((t * t) + 1.0))); else tmp = sqrt((z * 2.0)) * ((t * t) * (0.5 * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 4.8], N[(t$95$1 * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(0.5 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
\mathbf{if}\;t \cdot t \leq 4.8:\\
\;\;\;\;t\_1 \cdot \sqrt{\left(z \cdot 2\right) \cdot \left(t \cdot t + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{z \cdot 2} \cdot \left(\left(t \cdot t\right) \cdot \left(0.5 \cdot t\_1\right)\right)\\
\end{array}
\end{array}
if (*.f64 t t) < 4.79999999999999982Initial program 99.7%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Simplified99.7%
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
exp-sqrtN/A
sqrt-unprodN/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6499.1%
Simplified99.1%
if 4.79999999999999982 < (*.f64 t t) Initial program 98.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6482.1%
Simplified82.1%
Taylor expanded in t around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6482.1%
Simplified82.1%
Final simplification90.6%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (- (* x 0.5) y)) (t_2 (sqrt (* z 2.0)))) (if (<= (* t t) 2.0) (* t_1 t_2) (* t_2 (* (* t t) (* 0.5 t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double t_2 = sqrt((z * 2.0));
double tmp;
if ((t * t) <= 2.0) {
tmp = t_1 * t_2;
} else {
tmp = t_2 * ((t * t) * (0.5 * t_1));
}
return tmp;
}
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * 0.5d0) - y
t_2 = sqrt((z * 2.0d0))
if ((t * t) <= 2.0d0) then
tmp = t_1 * t_2
else
tmp = t_2 * ((t * t) * (0.5d0 * t_1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (x * 0.5) - y;
double t_2 = Math.sqrt((z * 2.0));
double tmp;
if ((t * t) <= 2.0) {
tmp = t_1 * t_2;
} else {
tmp = t_2 * ((t * t) * (0.5 * t_1));
}
return tmp;
}
def code(x, y, z, t): t_1 = (x * 0.5) - y t_2 = math.sqrt((z * 2.0)) tmp = 0 if (t * t) <= 2.0: tmp = t_1 * t_2 else: tmp = t_2 * ((t * t) * (0.5 * t_1)) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(x * 0.5) - y) t_2 = sqrt(Float64(z * 2.0)) tmp = 0.0 if (Float64(t * t) <= 2.0) tmp = Float64(t_1 * t_2); else tmp = Float64(t_2 * Float64(Float64(t * t) * Float64(0.5 * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (x * 0.5) - y; t_2 = sqrt((z * 2.0)); tmp = 0.0; if ((t * t) <= 2.0) tmp = t_1 * t_2; else tmp = t_2 * ((t * t) * (0.5 * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 2.0], N[(t$95$1 * t$95$2), $MachinePrecision], N[(t$95$2 * N[(N[(t * t), $MachinePrecision] * N[(0.5 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
t_2 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \cdot t \leq 2:\\
\;\;\;\;t\_1 \cdot t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_2 \cdot \left(\left(t \cdot t\right) \cdot \left(0.5 \cdot t\_1\right)\right)\\
\end{array}
\end{array}
if (*.f64 t t) < 2Initial program 99.7%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Simplified99.7%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6498.8%
Simplified98.8%
if 2 < (*.f64 t t) Initial program 98.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6482.1%
Simplified82.1%
Taylor expanded in t around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f6482.1%
Simplified82.1%
Final simplification90.4%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (sqrt (* z 2.0))))
(if (<= (* t t) 1.75e+43)
(* (- (* x 0.5) y) t_1)
(* t_1 (* y (+ -1.0 (* (* t t) -0.5)))))))
double code(double x, double y, double z, double t) {
double t_1 = sqrt((z * 2.0));
double tmp;
if ((t * t) <= 1.75e+43) {
tmp = ((x * 0.5) - y) * t_1;
} else {
tmp = t_1 * (y * (-1.0 + ((t * t) * -0.5)));
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_1 = sqrt((z * 2.0d0))
if ((t * t) <= 1.75d+43) then
tmp = ((x * 0.5d0) - y) * t_1
else
tmp = t_1 * (y * ((-1.0d0) + ((t * t) * (-0.5d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = Math.sqrt((z * 2.0));
double tmp;
if ((t * t) <= 1.75e+43) {
tmp = ((x * 0.5) - y) * t_1;
} else {
tmp = t_1 * (y * (-1.0 + ((t * t) * -0.5)));
}
return tmp;
}
def code(x, y, z, t): t_1 = math.sqrt((z * 2.0)) tmp = 0 if (t * t) <= 1.75e+43: tmp = ((x * 0.5) - y) * t_1 else: tmp = t_1 * (y * (-1.0 + ((t * t) * -0.5))) return tmp
function code(x, y, z, t) t_1 = sqrt(Float64(z * 2.0)) tmp = 0.0 if (Float64(t * t) <= 1.75e+43) tmp = Float64(Float64(Float64(x * 0.5) - y) * t_1); else tmp = Float64(t_1 * Float64(y * Float64(-1.0 + Float64(Float64(t * t) * -0.5)))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = sqrt((z * 2.0)); tmp = 0.0; if ((t * t) <= 1.75e+43) tmp = ((x * 0.5) - y) * t_1; else tmp = t_1 * (y * (-1.0 + ((t * t) * -0.5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 1.75e+43], N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * t$95$1), $MachinePrecision], N[(t$95$1 * N[(y * N[(-1.0 + N[(N[(t * t), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \cdot t \leq 1.75 \cdot 10^{+43}:\\
\;\;\;\;\left(x \cdot 0.5 - y\right) \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \left(y \cdot \left(-1 + \left(t \cdot t\right) \cdot -0.5\right)\right)\\
\end{array}
\end{array}
if (*.f64 t t) < 1.7500000000000001e43Initial program 99.7%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Simplified99.7%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6493.4%
Simplified93.4%
if 1.7500000000000001e43 < (*.f64 t t) Initial program 98.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6486.1%
Simplified86.1%
Taylor expanded in x around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
distribute-lft-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
associate-*r*N/A
metadata-evalN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6463.0%
Simplified63.0%
Final simplification79.5%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (sqrt (* z 2.0))) (t_2 (* t_1 (- 0.0 y)))) (if (<= y -1.45e+124) t_2 (if (<= y 1.8e-127) (* t_1 (* x 0.5)) t_2))))
double code(double x, double y, double z, double t) {
double t_1 = sqrt((z * 2.0));
double t_2 = t_1 * (0.0 - y);
double tmp;
if (y <= -1.45e+124) {
tmp = t_2;
} else if (y <= 1.8e-127) {
tmp = t_1 * (x * 0.5);
} else {
tmp = t_2;
}
return tmp;
}
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = sqrt((z * 2.0d0))
t_2 = t_1 * (0.0d0 - y)
if (y <= (-1.45d+124)) then
tmp = t_2
else if (y <= 1.8d-127) then
tmp = t_1 * (x * 0.5d0)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = Math.sqrt((z * 2.0));
double t_2 = t_1 * (0.0 - y);
double tmp;
if (y <= -1.45e+124) {
tmp = t_2;
} else if (y <= 1.8e-127) {
tmp = t_1 * (x * 0.5);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = math.sqrt((z * 2.0)) t_2 = t_1 * (0.0 - y) tmp = 0 if y <= -1.45e+124: tmp = t_2 elif y <= 1.8e-127: tmp = t_1 * (x * 0.5) else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = sqrt(Float64(z * 2.0)) t_2 = Float64(t_1 * Float64(0.0 - y)) tmp = 0.0 if (y <= -1.45e+124) tmp = t_2; elseif (y <= 1.8e-127) tmp = Float64(t_1 * Float64(x * 0.5)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = sqrt((z * 2.0)); t_2 = t_1 * (0.0 - y); tmp = 0.0; if (y <= -1.45e+124) tmp = t_2; elseif (y <= 1.8e-127) tmp = t_1 * (x * 0.5); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[(0.0 - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.45e+124], t$95$2, If[LessEqual[y, 1.8e-127], N[(t$95$1 * N[(x * 0.5), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
t_2 := t\_1 \cdot \left(0 - y\right)\\
\mathbf{if}\;y \leq -1.45 \cdot 10^{+124}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-127}:\\
\;\;\;\;t\_1 \cdot \left(x \cdot 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.45000000000000011e124 or 1.8e-127 < y Initial program 99.8%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6456.3%
Simplified56.3%
Taylor expanded in x around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6445.8%
Simplified45.8%
sub0-negN/A
neg-lowering-neg.f6445.8%
Applied egg-rr45.8%
if -1.45000000000000011e124 < y < 1.8e-127Initial program 98.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6459.4%
Simplified59.4%
Taylor expanded in x around inf
*-lowering-*.f6445.7%
Simplified45.7%
Final simplification45.7%
(FPCore (x y z t) :precision binary64 (* (sqrt (* z 2.0)) (* (- (* x 0.5) y) (+ 1.0 (* 0.5 (* t t))))))
double code(double x, double y, double z, double t) {
return sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (0.5 * (t * t))));
}
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 = sqrt((z * 2.0d0)) * (((x * 0.5d0) - y) * (1.0d0 + (0.5d0 * (t * t))))
end function
public static double code(double x, double y, double z, double t) {
return Math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (0.5 * (t * t))));
}
def code(x, y, z, t): return math.sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (0.5 * (t * t))))
function code(x, y, z, t) return Float64(sqrt(Float64(z * 2.0)) * Float64(Float64(Float64(x * 0.5) - y) * Float64(1.0 + Float64(0.5 * Float64(t * t))))) end
function tmp = code(x, y, z, t) tmp = sqrt((z * 2.0)) * (((x * 0.5) - y) * (1.0 + (0.5 * (t * t)))); end
code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[(1.0 + N[(0.5 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{z \cdot 2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(1 + 0.5 \cdot \left(t \cdot t\right)\right)\right)
\end{array}
Initial program 99.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6490.6%
Simplified90.6%
Final simplification90.6%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (sqrt (* z 2.0))))
(if (<= t 1900000000000.0)
(* (- (* x 0.5) y) t_1)
(/ (* t_1 (* y (- 0.0 y))) y))))
double code(double x, double y, double z, double t) {
double t_1 = sqrt((z * 2.0));
double tmp;
if (t <= 1900000000000.0) {
tmp = ((x * 0.5) - y) * t_1;
} else {
tmp = (t_1 * (y * (0.0 - y))) / y;
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_1 = sqrt((z * 2.0d0))
if (t <= 1900000000000.0d0) then
tmp = ((x * 0.5d0) - y) * t_1
else
tmp = (t_1 * (y * (0.0d0 - y))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = Math.sqrt((z * 2.0));
double tmp;
if (t <= 1900000000000.0) {
tmp = ((x * 0.5) - y) * t_1;
} else {
tmp = (t_1 * (y * (0.0 - y))) / y;
}
return tmp;
}
def code(x, y, z, t): t_1 = math.sqrt((z * 2.0)) tmp = 0 if t <= 1900000000000.0: tmp = ((x * 0.5) - y) * t_1 else: tmp = (t_1 * (y * (0.0 - y))) / y return tmp
function code(x, y, z, t) t_1 = sqrt(Float64(z * 2.0)) tmp = 0.0 if (t <= 1900000000000.0) tmp = Float64(Float64(Float64(x * 0.5) - y) * t_1); else tmp = Float64(Float64(t_1 * Float64(y * Float64(0.0 - y))) / y); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = sqrt((z * 2.0)); tmp = 0.0; if (t <= 1900000000000.0) tmp = ((x * 0.5) - y) * t_1; else tmp = (t_1 * (y * (0.0 - y))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, 1900000000000.0], N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * t$95$1), $MachinePrecision], N[(N[(t$95$1 * N[(y * N[(0.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \leq 1900000000000:\\
\;\;\;\;\left(x \cdot 0.5 - y\right) \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1 \cdot \left(y \cdot \left(0 - y\right)\right)}{y}\\
\end{array}
\end{array}
if t < 1.9e12Initial program 99.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6469.5%
Simplified69.5%
if 1.9e12 < t Initial program 98.2%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6417.7%
Simplified17.7%
Taylor expanded in x around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f649.7%
Simplified9.7%
sub0-negN/A
*-commutativeN/A
sub0-negN/A
flip--N/A
+-lft-identityN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f6432.8%
Applied egg-rr32.8%
Final simplification61.3%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (sqrt (* z 2.0)))) (if (<= t 1.5e-29) (* (- (* x 0.5) y) t_1) (* t_1 (* x (- 0.5 (/ y x)))))))
double code(double x, double y, double z, double t) {
double t_1 = sqrt((z * 2.0));
double tmp;
if (t <= 1.5e-29) {
tmp = ((x * 0.5) - y) * t_1;
} else {
tmp = t_1 * (x * (0.5 - (y / x)));
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_1 = sqrt((z * 2.0d0))
if (t <= 1.5d-29) then
tmp = ((x * 0.5d0) - y) * t_1
else
tmp = t_1 * (x * (0.5d0 - (y / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = Math.sqrt((z * 2.0));
double tmp;
if (t <= 1.5e-29) {
tmp = ((x * 0.5) - y) * t_1;
} else {
tmp = t_1 * (x * (0.5 - (y / x)));
}
return tmp;
}
def code(x, y, z, t): t_1 = math.sqrt((z * 2.0)) tmp = 0 if t <= 1.5e-29: tmp = ((x * 0.5) - y) * t_1 else: tmp = t_1 * (x * (0.5 - (y / x))) return tmp
function code(x, y, z, t) t_1 = sqrt(Float64(z * 2.0)) tmp = 0.0 if (t <= 1.5e-29) tmp = Float64(Float64(Float64(x * 0.5) - y) * t_1); else tmp = Float64(t_1 * Float64(x * Float64(0.5 - Float64(y / x)))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = sqrt((z * 2.0)); tmp = 0.0; if (t <= 1.5e-29) tmp = ((x * 0.5) - y) * t_1; else tmp = t_1 * (x * (0.5 - (y / x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, 1.5e-29], N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * t$95$1), $MachinePrecision], N[(t$95$1 * N[(x * N[(0.5 - N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \leq 1.5 \cdot 10^{-29}:\\
\;\;\;\;\left(x \cdot 0.5 - y\right) \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \left(x \cdot \left(0.5 - \frac{y}{x}\right)\right)\\
\end{array}
\end{array}
if t < 1.5000000000000001e-29Initial program 99.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6469.6%
Simplified69.6%
if 1.5000000000000001e-29 < t Initial program 98.5%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6424.2%
Simplified24.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f6438.6%
Simplified38.6%
Final simplification61.6%
(FPCore (x y z t) :precision binary64 (* (- (* x 0.5) y) (sqrt (* z 2.0))))
double code(double x, double y, double z, double t) {
return ((x * 0.5) - y) * sqrt((z * 2.0));
}
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 * 0.5d0) - y) * sqrt((z * 2.0d0))
end function
public static double code(double x, double y, double z, double t) {
return ((x * 0.5) - y) * Math.sqrt((z * 2.0));
}
def code(x, y, z, t): return ((x * 0.5) - y) * math.sqrt((z * 2.0))
function code(x, y, z, t) return Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) end
function tmp = code(x, y, z, t) tmp = ((x * 0.5) - y) * sqrt((z * 2.0)); end
code[x_, y_, z_, t_] := N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}
\end{array}
Initial program 99.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6457.9%
Simplified57.9%
Final simplification57.9%
(FPCore (x y z t) :precision binary64 (* (sqrt (* z 2.0)) (- 0.0 y)))
double code(double x, double y, double z, double t) {
return sqrt((z * 2.0)) * (0.0 - y);
}
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 = sqrt((z * 2.0d0)) * (0.0d0 - y)
end function
public static double code(double x, double y, double z, double t) {
return Math.sqrt((z * 2.0)) * (0.0 - y);
}
def code(x, y, z, t): return math.sqrt((z * 2.0)) * (0.0 - y)
function code(x, y, z, t) return Float64(sqrt(Float64(z * 2.0)) * Float64(0.0 - y)) end
function tmp = code(x, y, z, t) tmp = sqrt((z * 2.0)) * (0.0 - y); end
code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(0.0 - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{z \cdot 2} \cdot \left(0 - y\right)
\end{array}
Initial program 99.0%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.8%
Simplified99.8%
Taylor expanded in t around 0
--lowering--.f64N/A
*-lowering-*.f6457.9%
Simplified57.9%
Taylor expanded in x around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6431.0%
Simplified31.0%
sub0-negN/A
neg-lowering-neg.f6431.0%
Applied egg-rr31.0%
Final simplification31.0%
(FPCore (x y z t) :precision binary64 (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (pow (exp 1.0) (/ (* t t) 2.0))))
double code(double x, double y, double z, double t) {
return (((x * 0.5) - y) * sqrt((z * 2.0))) * pow(exp(1.0), ((t * t) / 2.0));
}
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 * 0.5d0) - y) * sqrt((z * 2.0d0))) * (exp(1.0d0) ** ((t * t) / 2.0d0))
end function
public static double code(double x, double y, double z, double t) {
return (((x * 0.5) - y) * Math.sqrt((z * 2.0))) * Math.pow(Math.exp(1.0), ((t * t) / 2.0));
}
def code(x, y, z, t): return (((x * 0.5) - y) * math.sqrt((z * 2.0))) * math.pow(math.exp(1.0), ((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(1.0) ^ Float64(Float64(t * t) / 2.0))) end
function tmp = code(x, y, z, t) tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * (exp(1.0) ^ ((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[Power[N[Exp[1.0], $MachinePrecision], N[(N[(t * t), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot {\left(e^{1}\right)}^{\left(\frac{t \cdot t}{2}\right)}
\end{array}
herbie shell --seed 2024152
(FPCore (x y z t)
:name "Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, A"
:precision binary64
:alt
(! :herbie-platform default (* (* (- (* x 1/2) y) (sqrt (* z 2))) (pow (exp 1) (/ (* t t) 2))))
(* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (/ (* t t) 2.0))))