
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.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 = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.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 = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ t y) y)))
(if (<= y -3.7e-93)
(+ x (* (/ 0.3333333333333333 z) t_1))
(if (<= y 1.62e-165)
(/ (+ (* 0.3333333333333333 (/ t z)) (* x y)) y)
(+ x (* t_1 (/ 1.0 (/ z 0.3333333333333333))))))))
double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -3.7e-93) {
tmp = x + ((0.3333333333333333 / z) * t_1);
} else if (y <= 1.62e-165) {
tmp = ((0.3333333333333333 * (t / z)) + (x * y)) / y;
} else {
tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333)));
}
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 = (t / y) - y
if (y <= (-3.7d-93)) then
tmp = x + ((0.3333333333333333d0 / z) * t_1)
else if (y <= 1.62d-165) then
tmp = ((0.3333333333333333d0 * (t / z)) + (x * y)) / y
else
tmp = x + (t_1 * (1.0d0 / (z / 0.3333333333333333d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -3.7e-93) {
tmp = x + ((0.3333333333333333 / z) * t_1);
} else if (y <= 1.62e-165) {
tmp = ((0.3333333333333333 * (t / z)) + (x * y)) / y;
} else {
tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333)));
}
return tmp;
}
def code(x, y, z, t): t_1 = (t / y) - y tmp = 0 if y <= -3.7e-93: tmp = x + ((0.3333333333333333 / z) * t_1) elif y <= 1.62e-165: tmp = ((0.3333333333333333 * (t / z)) + (x * y)) / y else: tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333))) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t / y) - y) tmp = 0.0 if (y <= -3.7e-93) tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * t_1)); elseif (y <= 1.62e-165) tmp = Float64(Float64(Float64(0.3333333333333333 * Float64(t / z)) + Float64(x * y)) / y); else tmp = Float64(x + Float64(t_1 * Float64(1.0 / Float64(z / 0.3333333333333333)))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t / y) - y; tmp = 0.0; if (y <= -3.7e-93) tmp = x + ((0.3333333333333333 / z) * t_1); elseif (y <= 1.62e-165) tmp = ((0.3333333333333333 * (t / z)) + (x * y)) / y; else tmp = x + (t_1 * (1.0 / (z / 0.3333333333333333))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[y, -3.7e-93], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.62e-165], N[(N[(N[(0.3333333333333333 * N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x + N[(t$95$1 * N[(1.0 / N[(z / 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{y} - y\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{-93}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot t\_1\\
\mathbf{elif}\;y \leq 1.62 \cdot 10^{-165}:\\
\;\;\;\;\frac{0.3333333333333333 \cdot \frac{t}{z} + x \cdot y}{y}\\
\mathbf{else}:\\
\;\;\;\;x + t\_1 \cdot \frac{1}{\frac{z}{0.3333333333333333}}\\
\end{array}
\end{array}
if y < -3.70000000000000002e-93Initial program 97.6%
+-commutative97.6%
associate-+r-97.6%
+-commutative97.6%
associate--l+97.6%
sub-neg97.6%
remove-double-neg97.6%
distribute-frac-neg97.6%
distribute-neg-in97.6%
remove-double-neg97.6%
sub-neg97.6%
neg-mul-197.6%
times-frac98.6%
distribute-frac-neg98.6%
neg-mul-198.6%
*-commutative98.6%
associate-/l*98.5%
*-commutative98.5%
Simplified99.7%
if -3.70000000000000002e-93 < y < 1.6200000000000001e-165Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac85.3%
distribute-frac-neg85.3%
neg-mul-185.3%
*-commutative85.3%
associate-/l*85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in y around 0 98.4%
if 1.6200000000000001e-165 < y Initial program 93.8%
+-commutative93.8%
associate-+r-93.8%
+-commutative93.8%
associate--l+93.8%
sub-neg93.8%
remove-double-neg93.8%
distribute-frac-neg93.8%
distribute-neg-in93.8%
remove-double-neg93.8%
sub-neg93.8%
neg-mul-193.8%
times-frac97.7%
distribute-frac-neg97.7%
neg-mul-197.7%
*-commutative97.7%
associate-/l*97.7%
*-commutative97.7%
Simplified99.6%
clear-num99.7%
inv-pow99.7%
Applied egg-rr99.7%
unpow-199.7%
Simplified99.7%
Final simplification99.3%
(FPCore (x y z t) :precision binary64 (if (<= (+ (- x (/ y (* z 3.0))) (/ t (* y (* z 3.0)))) 1e+251) (+ (+ x (/ 1.0 (* 3.0 (* y (/ z t))))) (/ y (* z -3.0))) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+251) {
tmp = (x + (1.0 / (3.0 * (y * (z / t))))) + (y / (z * -3.0));
} else {
tmp = x + ((0.3333333333333333 / z) * ((t / 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) :: tmp
if (((x - (y / (z * 3.0d0))) + (t / (y * (z * 3.0d0)))) <= 1d+251) then
tmp = (x + (1.0d0 / (3.0d0 * (y * (z / t))))) + (y / (z * (-3.0d0)))
else
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+251) {
tmp = (x + (1.0 / (3.0 * (y * (z / t))))) + (y / (z * -3.0));
} else {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+251: tmp = (x + (1.0 / (3.0 * (y * (z / t))))) + (y / (z * -3.0)) else: tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(y * Float64(z * 3.0)))) <= 1e+251) tmp = Float64(Float64(x + Float64(1.0 / Float64(3.0 * Float64(y * Float64(z / t))))) + Float64(y / Float64(z * -3.0))); else tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((x - (y / (z * 3.0))) + (t / (y * (z * 3.0)))) <= 1e+251) tmp = (x + (1.0 / (3.0 * (y * (z / t))))) + (y / (z * -3.0)); else tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e+251], N[(N[(x + N[(1.0 / N[(3.0 * N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)} \leq 10^{+251}:\\
\;\;\;\;\left(x + \frac{1}{3 \cdot \left(y \cdot \frac{z}{t}\right)}\right) + \frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) < 1e251Initial program 97.6%
+-commutative97.6%
associate-+r-97.6%
sub-neg97.6%
associate-*l*97.5%
*-commutative97.5%
distribute-frac-neg297.5%
distribute-rgt-neg-in97.5%
metadata-eval97.5%
Simplified97.5%
clear-num97.5%
inv-pow97.5%
Applied egg-rr97.5%
unpow-197.5%
*-commutative97.5%
associate-*l*97.5%
*-commutative97.5%
Simplified97.5%
Taylor expanded in y around 0 97.5%
associate-/l*98.8%
Simplified98.8%
if 1e251 < (+.f64 (-.f64 x (/.f64 y (*.f64 z #s(literal 3 binary64)))) (/.f64 t (*.f64 (*.f64 z #s(literal 3 binary64)) y))) Initial program 88.5%
+-commutative88.5%
associate-+r-88.5%
+-commutative88.5%
associate--l+88.5%
sub-neg88.5%
remove-double-neg88.5%
distribute-frac-neg88.5%
distribute-neg-in88.5%
remove-double-neg88.5%
sub-neg88.5%
neg-mul-188.5%
times-frac94.0%
distribute-frac-neg94.0%
neg-mul-194.0%
*-commutative94.0%
associate-/l*94.0%
*-commutative94.0%
Simplified100.0%
Final simplification99.0%
(FPCore (x y z t)
:precision binary64
(if (<= y -8.4e+62)
(/ y (* z -3.0))
(if (<= y -9e-127)
x
(if (<= y 5e+74)
(* 0.3333333333333333 (/ t (* y z)))
(if (<= y 9e+127)
(* (/ y z) -0.3333333333333333)
(if (<= y 2.2e+149)
(* y (/ x y))
(* (/ 1.0 z) (* y -0.3333333333333333))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.4e+62) {
tmp = y / (z * -3.0);
} else if (y <= -9e-127) {
tmp = x;
} else if (y <= 5e+74) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 9e+127) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 2.2e+149) {
tmp = y * (x / y);
} else {
tmp = (1.0 / z) * (y * -0.3333333333333333);
}
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) :: tmp
if (y <= (-8.4d+62)) then
tmp = y / (z * (-3.0d0))
else if (y <= (-9d-127)) then
tmp = x
else if (y <= 5d+74) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else if (y <= 9d+127) then
tmp = (y / z) * (-0.3333333333333333d0)
else if (y <= 2.2d+149) then
tmp = y * (x / y)
else
tmp = (1.0d0 / z) * (y * (-0.3333333333333333d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8.4e+62) {
tmp = y / (z * -3.0);
} else if (y <= -9e-127) {
tmp = x;
} else if (y <= 5e+74) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 9e+127) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 2.2e+149) {
tmp = y * (x / y);
} else {
tmp = (1.0 / z) * (y * -0.3333333333333333);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8.4e+62: tmp = y / (z * -3.0) elif y <= -9e-127: tmp = x elif y <= 5e+74: tmp = 0.3333333333333333 * (t / (y * z)) elif y <= 9e+127: tmp = (y / z) * -0.3333333333333333 elif y <= 2.2e+149: tmp = y * (x / y) else: tmp = (1.0 / z) * (y * -0.3333333333333333) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8.4e+62) tmp = Float64(y / Float64(z * -3.0)); elseif (y <= -9e-127) tmp = x; elseif (y <= 5e+74) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); elseif (y <= 9e+127) tmp = Float64(Float64(y / z) * -0.3333333333333333); elseif (y <= 2.2e+149) tmp = Float64(y * Float64(x / y)); else tmp = Float64(Float64(1.0 / z) * Float64(y * -0.3333333333333333)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -8.4e+62) tmp = y / (z * -3.0); elseif (y <= -9e-127) tmp = x; elseif (y <= 5e+74) tmp = 0.3333333333333333 * (t / (y * z)); elseif (y <= 9e+127) tmp = (y / z) * -0.3333333333333333; elseif (y <= 2.2e+149) tmp = y * (x / y); else tmp = (1.0 / z) * (y * -0.3333333333333333); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8.4e+62], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9e-127], x, If[LessEqual[y, 5e+74], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+127], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], If[LessEqual[y, 2.2e+149], N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / z), $MachinePrecision] * N[(y * -0.3333333333333333), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.4 \cdot 10^{+62}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-127}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+74}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+127}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+149}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z} \cdot \left(y \cdot -0.3333333333333333\right)\\
\end{array}
\end{array}
if y < -8.4e62Initial program 99.9%
+-commutative99.9%
associate-+r-99.9%
sub-neg99.9%
associate-*l*99.9%
*-commutative99.9%
distribute-frac-neg299.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
clear-num99.8%
inv-pow99.8%
Applied egg-rr99.8%
unpow-199.8%
*-commutative99.8%
associate-*l*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 63.6%
metadata-eval63.6%
times-frac63.8%
*-un-lft-identity63.8%
*-commutative63.8%
Applied egg-rr63.8%
if -8.4e62 < y < -8.9999999999999998e-127Initial program 95.0%
+-commutative95.0%
associate-+r-95.0%
+-commutative95.0%
associate--l+95.0%
sub-neg95.0%
remove-double-neg95.0%
distribute-frac-neg95.0%
distribute-neg-in95.0%
remove-double-neg95.0%
sub-neg95.0%
neg-mul-195.0%
times-frac97.3%
distribute-frac-neg97.3%
neg-mul-197.3%
*-commutative97.3%
associate-/l*97.2%
*-commutative97.2%
Simplified99.7%
Taylor expanded in x around inf 68.0%
if -8.9999999999999998e-127 < y < 4.99999999999999963e74Initial program 93.3%
+-commutative93.3%
associate-+r-93.3%
sub-neg93.3%
associate-*l*93.3%
*-commutative93.3%
distribute-frac-neg293.3%
distribute-rgt-neg-in93.3%
metadata-eval93.3%
Simplified93.3%
clear-num93.3%
inv-pow93.3%
Applied egg-rr93.3%
unpow-193.3%
*-commutative93.3%
associate-*l*93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in y around 0 64.8%
if 4.99999999999999963e74 < y < 9.00000000000000068e127Initial program 99.5%
+-commutative99.5%
associate-+r-99.5%
sub-neg99.5%
associate-*l*99.5%
*-commutative99.5%
distribute-frac-neg299.5%
distribute-rgt-neg-in99.5%
metadata-eval99.5%
Simplified99.5%
clear-num99.5%
inv-pow99.5%
Applied egg-rr99.5%
unpow-199.5%
*-commutative99.5%
associate-*l*99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 84.9%
if 9.00000000000000068e127 < y < 2.2e149Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
+-commutative100.0%
associate--l+100.0%
sub-neg100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
times-frac100.0%
distribute-frac-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in x around inf 86.3%
if 2.2e149 < y Initial program 96.6%
+-commutative96.6%
associate-+r-96.6%
sub-neg96.6%
associate-*l*96.6%
*-commutative96.6%
distribute-frac-neg296.6%
distribute-rgt-neg-in96.6%
metadata-eval96.6%
Simplified96.6%
clear-num96.6%
inv-pow96.6%
Applied egg-rr96.6%
unpow-196.6%
*-commutative96.6%
associate-*l*96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in y around inf 84.2%
*-commutative84.2%
metadata-eval84.2%
div-inv84.3%
Applied egg-rr84.3%
div-inv84.2%
metadata-eval84.2%
*-commutative84.2%
associate-*r/84.1%
div-inv84.3%
Applied egg-rr84.3%
Final simplification69.2%
(FPCore (x y z t)
:precision binary64
(if (<= y -4.8e+62)
(/ y (* z -3.0))
(if (<= y -3.7e-197)
(+ x (/ (* y 0.3333333333333333) z))
(if (<= y 5e+74)
(* 0.3333333333333333 (/ t (* y z)))
(if (<= y 6e+130)
(* (/ y z) -0.3333333333333333)
(if (<= y 2.2e+149)
(* y (/ x y))
(* (/ 1.0 z) (* y -0.3333333333333333))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.8e+62) {
tmp = y / (z * -3.0);
} else if (y <= -3.7e-197) {
tmp = x + ((y * 0.3333333333333333) / z);
} else if (y <= 5e+74) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 6e+130) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 2.2e+149) {
tmp = y * (x / y);
} else {
tmp = (1.0 / z) * (y * -0.3333333333333333);
}
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) :: tmp
if (y <= (-4.8d+62)) then
tmp = y / (z * (-3.0d0))
else if (y <= (-3.7d-197)) then
tmp = x + ((y * 0.3333333333333333d0) / z)
else if (y <= 5d+74) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else if (y <= 6d+130) then
tmp = (y / z) * (-0.3333333333333333d0)
else if (y <= 2.2d+149) then
tmp = y * (x / y)
else
tmp = (1.0d0 / z) * (y * (-0.3333333333333333d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.8e+62) {
tmp = y / (z * -3.0);
} else if (y <= -3.7e-197) {
tmp = x + ((y * 0.3333333333333333) / z);
} else if (y <= 5e+74) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 6e+130) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 2.2e+149) {
tmp = y * (x / y);
} else {
tmp = (1.0 / z) * (y * -0.3333333333333333);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -4.8e+62: tmp = y / (z * -3.0) elif y <= -3.7e-197: tmp = x + ((y * 0.3333333333333333) / z) elif y <= 5e+74: tmp = 0.3333333333333333 * (t / (y * z)) elif y <= 6e+130: tmp = (y / z) * -0.3333333333333333 elif y <= 2.2e+149: tmp = y * (x / y) else: tmp = (1.0 / z) * (y * -0.3333333333333333) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -4.8e+62) tmp = Float64(y / Float64(z * -3.0)); elseif (y <= -3.7e-197) tmp = Float64(x + Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 5e+74) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); elseif (y <= 6e+130) tmp = Float64(Float64(y / z) * -0.3333333333333333); elseif (y <= 2.2e+149) tmp = Float64(y * Float64(x / y)); else tmp = Float64(Float64(1.0 / z) * Float64(y * -0.3333333333333333)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -4.8e+62) tmp = y / (z * -3.0); elseif (y <= -3.7e-197) tmp = x + ((y * 0.3333333333333333) / z); elseif (y <= 5e+74) tmp = 0.3333333333333333 * (t / (y * z)); elseif (y <= 6e+130) tmp = (y / z) * -0.3333333333333333; elseif (y <= 2.2e+149) tmp = y * (x / y); else tmp = (1.0 / z) * (y * -0.3333333333333333); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -4.8e+62], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.7e-197], N[(x + N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e+74], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+130], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], If[LessEqual[y, 2.2e+149], N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / z), $MachinePrecision] * N[(y * -0.3333333333333333), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+62}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq -3.7 \cdot 10^{-197}:\\
\;\;\;\;x + \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+74}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+130}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+149}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{z} \cdot \left(y \cdot -0.3333333333333333\right)\\
\end{array}
\end{array}
if y < -4.8e62Initial program 99.9%
+-commutative99.9%
associate-+r-99.9%
sub-neg99.9%
associate-*l*99.9%
*-commutative99.9%
distribute-frac-neg299.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
clear-num99.8%
inv-pow99.8%
Applied egg-rr99.8%
unpow-199.8%
*-commutative99.8%
associate-*l*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 63.6%
metadata-eval63.6%
times-frac63.8%
*-un-lft-identity63.8%
*-commutative63.8%
Applied egg-rr63.8%
if -4.8e62 < y < -3.6999999999999999e-197Initial program 94.1%
+-commutative94.1%
associate-+r-94.1%
+-commutative94.1%
associate--l+94.1%
sub-neg94.1%
remove-double-neg94.1%
distribute-frac-neg94.1%
distribute-neg-in94.1%
remove-double-neg94.1%
sub-neg94.1%
neg-mul-194.1%
times-frac93.9%
distribute-frac-neg93.9%
neg-mul-193.9%
*-commutative93.9%
associate-/l*93.9%
*-commutative93.9%
Simplified95.9%
Taylor expanded in t around 0 74.7%
neg-mul-174.7%
Simplified74.7%
associate-*l/74.8%
add-sqr-sqrt74.7%
sqrt-unprod74.8%
sqr-neg74.8%
sqrt-unprod0.0%
add-sqr-sqrt65.0%
Applied egg-rr65.0%
if -3.6999999999999999e-197 < y < 4.99999999999999963e74Initial program 93.5%
+-commutative93.5%
associate-+r-93.5%
sub-neg93.5%
associate-*l*93.5%
*-commutative93.5%
distribute-frac-neg293.5%
distribute-rgt-neg-in93.5%
metadata-eval93.5%
Simplified93.5%
clear-num93.5%
inv-pow93.5%
Applied egg-rr93.5%
unpow-193.5%
*-commutative93.5%
associate-*l*93.5%
*-commutative93.5%
Simplified93.5%
Taylor expanded in y around 0 66.7%
if 4.99999999999999963e74 < y < 5.9999999999999999e130Initial program 99.5%
+-commutative99.5%
associate-+r-99.5%
sub-neg99.5%
associate-*l*99.5%
*-commutative99.5%
distribute-frac-neg299.5%
distribute-rgt-neg-in99.5%
metadata-eval99.5%
Simplified99.5%
clear-num99.5%
inv-pow99.5%
Applied egg-rr99.5%
unpow-199.5%
*-commutative99.5%
associate-*l*99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 84.9%
if 5.9999999999999999e130 < y < 2.2e149Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
+-commutative100.0%
associate--l+100.0%
sub-neg100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
times-frac100.0%
distribute-frac-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in x around inf 86.3%
if 2.2e149 < y Initial program 96.6%
+-commutative96.6%
associate-+r-96.6%
sub-neg96.6%
associate-*l*96.6%
*-commutative96.6%
distribute-frac-neg296.6%
distribute-rgt-neg-in96.6%
metadata-eval96.6%
Simplified96.6%
clear-num96.6%
inv-pow96.6%
Applied egg-rr96.6%
unpow-196.6%
*-commutative96.6%
associate-*l*96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in y around inf 84.2%
*-commutative84.2%
metadata-eval84.2%
div-inv84.3%
Applied egg-rr84.3%
div-inv84.2%
metadata-eval84.2%
*-commutative84.2%
associate-*r/84.1%
div-inv84.3%
Applied egg-rr84.3%
Final simplification69.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -1.22e+63)
(/ y (* z -3.0))
(if (<= y -8.5e-127)
x
(if (<= y 1.7e+75)
(* 0.3333333333333333 (/ t (* y z)))
(if (<= y 5.8e+130)
(* (/ y z) -0.3333333333333333)
(if (<= y 2.2e+149) (* y (/ x y)) (/ (/ y z) -3.0)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.22e+63) {
tmp = y / (z * -3.0);
} else if (y <= -8.5e-127) {
tmp = x;
} else if (y <= 1.7e+75) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 5.8e+130) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 2.2e+149) {
tmp = y * (x / y);
} else {
tmp = (y / z) / -3.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) :: tmp
if (y <= (-1.22d+63)) then
tmp = y / (z * (-3.0d0))
else if (y <= (-8.5d-127)) then
tmp = x
else if (y <= 1.7d+75) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else if (y <= 5.8d+130) then
tmp = (y / z) * (-0.3333333333333333d0)
else if (y <= 2.2d+149) then
tmp = y * (x / y)
else
tmp = (y / z) / (-3.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.22e+63) {
tmp = y / (z * -3.0);
} else if (y <= -8.5e-127) {
tmp = x;
} else if (y <= 1.7e+75) {
tmp = 0.3333333333333333 * (t / (y * z));
} else if (y <= 5.8e+130) {
tmp = (y / z) * -0.3333333333333333;
} else if (y <= 2.2e+149) {
tmp = y * (x / y);
} else {
tmp = (y / z) / -3.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.22e+63: tmp = y / (z * -3.0) elif y <= -8.5e-127: tmp = x elif y <= 1.7e+75: tmp = 0.3333333333333333 * (t / (y * z)) elif y <= 5.8e+130: tmp = (y / z) * -0.3333333333333333 elif y <= 2.2e+149: tmp = y * (x / y) else: tmp = (y / z) / -3.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.22e+63) tmp = Float64(y / Float64(z * -3.0)); elseif (y <= -8.5e-127) tmp = x; elseif (y <= 1.7e+75) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); elseif (y <= 5.8e+130) tmp = Float64(Float64(y / z) * -0.3333333333333333); elseif (y <= 2.2e+149) tmp = Float64(y * Float64(x / y)); else tmp = Float64(Float64(y / z) / -3.0); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.22e+63) tmp = y / (z * -3.0); elseif (y <= -8.5e-127) tmp = x; elseif (y <= 1.7e+75) tmp = 0.3333333333333333 * (t / (y * z)); elseif (y <= 5.8e+130) tmp = (y / z) * -0.3333333333333333; elseif (y <= 2.2e+149) tmp = y * (x / y); else tmp = (y / z) / -3.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.22e+63], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.5e-127], x, If[LessEqual[y, 1.7e+75], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e+130], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], If[LessEqual[y, 2.2e+149], N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+63}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-127}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+75}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+130}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+149}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y}{z}}{-3}\\
\end{array}
\end{array}
if y < -1.2199999999999999e63Initial program 99.9%
+-commutative99.9%
associate-+r-99.9%
sub-neg99.9%
associate-*l*99.9%
*-commutative99.9%
distribute-frac-neg299.9%
distribute-rgt-neg-in99.9%
metadata-eval99.9%
Simplified99.9%
clear-num99.8%
inv-pow99.8%
Applied egg-rr99.8%
unpow-199.8%
*-commutative99.8%
associate-*l*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 63.6%
metadata-eval63.6%
times-frac63.8%
*-un-lft-identity63.8%
*-commutative63.8%
Applied egg-rr63.8%
if -1.2199999999999999e63 < y < -8.5e-127Initial program 95.0%
+-commutative95.0%
associate-+r-95.0%
+-commutative95.0%
associate--l+95.0%
sub-neg95.0%
remove-double-neg95.0%
distribute-frac-neg95.0%
distribute-neg-in95.0%
remove-double-neg95.0%
sub-neg95.0%
neg-mul-195.0%
times-frac97.3%
distribute-frac-neg97.3%
neg-mul-197.3%
*-commutative97.3%
associate-/l*97.2%
*-commutative97.2%
Simplified99.7%
Taylor expanded in x around inf 68.0%
if -8.5e-127 < y < 1.70000000000000006e75Initial program 93.3%
+-commutative93.3%
associate-+r-93.3%
sub-neg93.3%
associate-*l*93.3%
*-commutative93.3%
distribute-frac-neg293.3%
distribute-rgt-neg-in93.3%
metadata-eval93.3%
Simplified93.3%
clear-num93.3%
inv-pow93.3%
Applied egg-rr93.3%
unpow-193.3%
*-commutative93.3%
associate-*l*93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in y around 0 64.8%
if 1.70000000000000006e75 < y < 5.7999999999999998e130Initial program 99.5%
+-commutative99.5%
associate-+r-99.5%
sub-neg99.5%
associate-*l*99.5%
*-commutative99.5%
distribute-frac-neg299.5%
distribute-rgt-neg-in99.5%
metadata-eval99.5%
Simplified99.5%
clear-num99.5%
inv-pow99.5%
Applied egg-rr99.5%
unpow-199.5%
*-commutative99.5%
associate-*l*99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 84.9%
if 5.7999999999999998e130 < y < 2.2e149Initial program 100.0%
+-commutative100.0%
associate-+r-100.0%
+-commutative100.0%
associate--l+100.0%
sub-neg100.0%
remove-double-neg100.0%
distribute-frac-neg100.0%
distribute-neg-in100.0%
remove-double-neg100.0%
sub-neg100.0%
neg-mul-1100.0%
times-frac100.0%
distribute-frac-neg100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-/l*100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 100.0%
Taylor expanded in x around inf 86.3%
if 2.2e149 < y Initial program 96.6%
+-commutative96.6%
associate-+r-96.6%
sub-neg96.6%
associate-*l*96.6%
*-commutative96.6%
distribute-frac-neg296.6%
distribute-rgt-neg-in96.6%
metadata-eval96.6%
Simplified96.6%
clear-num96.6%
inv-pow96.6%
Applied egg-rr96.6%
unpow-196.6%
*-commutative96.6%
associate-*l*96.6%
*-commutative96.6%
Simplified96.6%
Taylor expanded in y around inf 84.2%
*-commutative84.2%
metadata-eval84.2%
div-inv84.3%
Applied egg-rr84.3%
Final simplification69.2%
(FPCore (x y z t) :precision binary64 (if (<= (* z 3.0) 2e+82) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y))) (+ (- x (/ y (* z 3.0))) (/ t (* y (* z 3.0))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 2e+82) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.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) :: tmp
if ((z * 3.0d0) <= 2d+82) then
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
else
tmp = (x - (y / (z * 3.0d0))) + (t / (y * (z * 3.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= 2e+82) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z * 3.0) <= 2e+82: tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) else: tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0))) return tmp
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= 2e+82) tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); else tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(y * Float64(z * 3.0)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z * 3.0) <= 2e+82) tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); else tmp = (x - (y / (z * 3.0))) + (t / (y * (z * 3.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], 2e+82], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(y * N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq 2 \cdot 10^{+82}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{y \cdot \left(z \cdot 3\right)}\\
\end{array}
\end{array}
if (*.f64 z #s(literal 3 binary64)) < 1.9999999999999999e82Initial program 94.8%
+-commutative94.8%
associate-+r-94.8%
+-commutative94.8%
associate--l+94.8%
sub-neg94.8%
remove-double-neg94.8%
distribute-frac-neg94.8%
distribute-neg-in94.8%
remove-double-neg94.8%
sub-neg94.8%
neg-mul-194.8%
times-frac96.9%
distribute-frac-neg96.9%
neg-mul-196.9%
*-commutative96.9%
associate-/l*96.9%
*-commutative96.9%
Simplified98.3%
if 1.9999999999999999e82 < (*.f64 z #s(literal 3 binary64)) Initial program 99.8%
Final simplification98.6%
(FPCore (x y z t) :precision binary64 (if (or (<= y -3.6e-96) (not (<= y 1.65e-165))) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y))) (/ (+ (* 0.3333333333333333 (/ t z)) (* x y)) y)))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.6e-96) || !(y <= 1.65e-165)) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = ((0.3333333333333333 * (t / z)) + (x * 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) :: tmp
if ((y <= (-3.6d-96)) .or. (.not. (y <= 1.65d-165))) then
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
else
tmp = ((0.3333333333333333d0 * (t / z)) + (x * y)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.6e-96) || !(y <= 1.65e-165)) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = ((0.3333333333333333 * (t / z)) + (x * y)) / y;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -3.6e-96) or not (y <= 1.65e-165): tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) else: tmp = ((0.3333333333333333 * (t / z)) + (x * y)) / y return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -3.6e-96) || !(y <= 1.65e-165)) tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); else tmp = Float64(Float64(Float64(0.3333333333333333 * Float64(t / z)) + Float64(x * y)) / y); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -3.6e-96) || ~((y <= 1.65e-165))) tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); else tmp = ((0.3333333333333333 * (t / z)) + (x * y)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -3.6e-96], N[Not[LessEqual[y, 1.65e-165]], $MachinePrecision]], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(0.3333333333333333 * N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{-96} \lor \neg \left(y \leq 1.65 \cdot 10^{-165}\right):\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.3333333333333333 \cdot \frac{t}{z} + x \cdot y}{y}\\
\end{array}
\end{array}
if y < -3.60000000000000008e-96 or 1.6499999999999999e-165 < y Initial program 95.5%
+-commutative95.5%
associate-+r-95.5%
+-commutative95.5%
associate--l+95.5%
sub-neg95.5%
remove-double-neg95.5%
distribute-frac-neg95.5%
distribute-neg-in95.5%
remove-double-neg95.5%
sub-neg95.5%
neg-mul-195.5%
times-frac98.1%
distribute-frac-neg98.1%
neg-mul-198.1%
*-commutative98.1%
associate-/l*98.1%
*-commutative98.1%
Simplified99.7%
if -3.60000000000000008e-96 < y < 1.6499999999999999e-165Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac85.3%
distribute-frac-neg85.3%
neg-mul-185.3%
*-commutative85.3%
associate-/l*85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in y around 0 98.4%
Final simplification99.3%
(FPCore (x y z t) :precision binary64 (if (<= z 1.35e+84) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y))) (+ (/ y (* z -3.0)) (+ x (/ t (* z (* y 3.0)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= 1.35e+84) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.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) :: tmp
if (z <= 1.35d+84) then
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
else
tmp = (y / (z * (-3.0d0))) + (x + (t / (z * (y * 3.0d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= 1.35e+84) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0))));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= 1.35e+84: tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) else: tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= 1.35e+84) tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); else tmp = Float64(Float64(y / Float64(z * -3.0)) + Float64(x + Float64(t / Float64(z * Float64(y * 3.0))))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= 1.35e+84) tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); else tmp = (y / (z * -3.0)) + (x + (t / (z * (y * 3.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, 1.35e+84], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision] + N[(x + N[(t / N[(z * N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.35 \cdot 10^{+84}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z \cdot -3} + \left(x + \frac{t}{z \cdot \left(y \cdot 3\right)}\right)\\
\end{array}
\end{array}
if z < 1.35e84Initial program 94.8%
+-commutative94.8%
associate-+r-94.8%
+-commutative94.8%
associate--l+94.8%
sub-neg94.8%
remove-double-neg94.8%
distribute-frac-neg94.8%
distribute-neg-in94.8%
remove-double-neg94.8%
sub-neg94.8%
neg-mul-194.8%
times-frac96.9%
distribute-frac-neg96.9%
neg-mul-196.9%
*-commutative96.9%
associate-/l*96.9%
*-commutative96.9%
Simplified98.3%
if 1.35e84 < z Initial program 99.8%
+-commutative99.8%
associate-+r-99.8%
sub-neg99.8%
associate-*l*99.7%
*-commutative99.7%
distribute-frac-neg299.7%
distribute-rgt-neg-in99.7%
metadata-eval99.7%
Simplified99.7%
Final simplification98.6%
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.76e+28) (not (<= x 4.6e+18))) (+ x (/ (/ y z) -3.0)) (* 0.3333333333333333 (/ (- (/ t y) y) z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.76e+28) || !(x <= 4.6e+18)) {
tmp = x + ((y / z) / -3.0);
} else {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
}
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) :: tmp
if ((x <= (-1.76d+28)) .or. (.not. (x <= 4.6d+18))) then
tmp = x + ((y / z) / (-3.0d0))
else
tmp = 0.3333333333333333d0 * (((t / y) - y) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.76e+28) || !(x <= 4.6e+18)) {
tmp = x + ((y / z) / -3.0);
} else {
tmp = 0.3333333333333333 * (((t / y) - y) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.76e+28) or not (x <= 4.6e+18): tmp = x + ((y / z) / -3.0) else: tmp = 0.3333333333333333 * (((t / y) - y) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.76e+28) || !(x <= 4.6e+18)) tmp = Float64(x + Float64(Float64(y / z) / -3.0)); else tmp = Float64(0.3333333333333333 * Float64(Float64(Float64(t / y) - y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.76e+28) || ~((x <= 4.6e+18))) tmp = x + ((y / z) / -3.0); else tmp = 0.3333333333333333 * (((t / y) - y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.76e+28], N[Not[LessEqual[x, 4.6e+18]], $MachinePrecision]], N[(x + N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.76 \cdot 10^{+28} \lor \neg \left(x \leq 4.6 \cdot 10^{+18}\right):\\
\;\;\;\;x + \frac{\frac{y}{z}}{-3}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\frac{t}{y} - y}{z}\\
\end{array}
\end{array}
if x < -1.7599999999999999e28 or 4.6e18 < x Initial program 96.7%
+-commutative96.7%
associate-+r-96.7%
+-commutative96.7%
associate--l+96.7%
sub-neg96.7%
remove-double-neg96.7%
distribute-frac-neg96.7%
distribute-neg-in96.7%
remove-double-neg96.7%
sub-neg96.7%
neg-mul-196.7%
times-frac96.6%
distribute-frac-neg96.6%
neg-mul-196.6%
*-commutative96.6%
associate-/l*96.6%
*-commutative96.6%
Simplified97.5%
Taylor expanded in t around 0 82.2%
neg-mul-182.2%
Simplified82.2%
*-commutative82.2%
clear-num82.2%
div-inv82.2%
metadata-eval82.2%
metadata-eval82.2%
distribute-rgt-neg-in82.2%
div-inv82.2%
frac-2neg82.2%
associate-/r*82.3%
Applied egg-rr82.3%
if -1.7599999999999999e28 < x < 4.6e18Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
clear-num94.9%
inv-pow94.9%
Applied egg-rr94.9%
unpow-194.9%
*-commutative94.9%
associate-*l*94.9%
*-commutative94.9%
Simplified94.9%
Taylor expanded in z around 0 86.6%
+-commutative86.6%
metadata-eval86.6%
distribute-lft-neg-in86.6%
distribute-rgt-neg-in86.6%
neg-mul-186.6%
*-commutative86.6%
distribute-lft-in86.6%
*-commutative86.6%
neg-mul-186.6%
sub-neg86.6%
associate-*r/86.6%
Simplified86.6%
Final simplification84.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.2e-20)
(- x (/ (* y 0.3333333333333333) z))
(if (<= y 5e+74)
(+ x (* 0.3333333333333333 (/ t (* y z))))
(- x (* y (/ 0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.2e-20) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 5e+74) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
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) :: tmp
if (y <= (-2.2d-20)) then
tmp = x - ((y * 0.3333333333333333d0) / z)
else if (y <= 5d+74) then
tmp = x + (0.3333333333333333d0 * (t / (y * z)))
else
tmp = x - (y * (0.3333333333333333d0 / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.2e-20) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 5e+74) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.2e-20: tmp = x - ((y * 0.3333333333333333) / z) elif y <= 5e+74: tmp = x + (0.3333333333333333 * (t / (y * z))) else: tmp = x - (y * (0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.2e-20) tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 5e+74) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); else tmp = Float64(x - Float64(y * Float64(0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.2e-20) tmp = x - ((y * 0.3333333333333333) / z); elseif (y <= 5e+74) tmp = x + (0.3333333333333333 * (t / (y * z))); else tmp = x - (y * (0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.2e-20], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e+74], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{-20}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+74}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -2.19999999999999991e-20Initial program 98.4%
+-commutative98.4%
associate-+r-98.4%
+-commutative98.4%
associate--l+98.4%
sub-neg98.4%
remove-double-neg98.4%
distribute-frac-neg98.4%
distribute-neg-in98.4%
remove-double-neg98.4%
sub-neg98.4%
neg-mul-198.4%
times-frac98.4%
distribute-frac-neg98.4%
neg-mul-198.4%
*-commutative98.4%
associate-/l*98.3%
*-commutative98.3%
Simplified99.8%
Taylor expanded in t around 0 93.6%
metadata-eval93.6%
cancel-sign-sub-inv93.6%
associate-*r/93.7%
Simplified93.7%
if -2.19999999999999991e-20 < y < 4.99999999999999963e74Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
+-commutative93.6%
associate--l+93.6%
sub-neg93.6%
remove-double-neg93.6%
distribute-frac-neg93.6%
distribute-neg-in93.6%
remove-double-neg93.6%
sub-neg93.6%
neg-mul-193.6%
times-frac91.3%
distribute-frac-neg91.3%
neg-mul-191.3%
*-commutative91.3%
associate-/l*91.3%
*-commutative91.3%
Simplified92.0%
Taylor expanded in t around inf 89.0%
if 4.99999999999999963e74 < y Initial program 97.8%
+-commutative97.8%
associate-+r-97.8%
+-commutative97.8%
associate--l+97.8%
sub-neg97.8%
remove-double-neg97.8%
distribute-frac-neg97.8%
distribute-neg-in97.8%
remove-double-neg97.8%
sub-neg97.8%
neg-mul-197.8%
times-frac97.8%
distribute-frac-neg97.8%
neg-mul-197.8%
*-commutative97.8%
associate-/l*97.8%
*-commutative97.8%
Simplified99.7%
Taylor expanded in t around 0 99.7%
metadata-eval99.7%
cancel-sign-sub-inv99.7%
associate-*r/99.6%
Simplified99.6%
Taylor expanded in y around 0 99.7%
*-commutative99.7%
associate-*l/99.6%
associate-*r/99.7%
Simplified99.7%
Final simplification92.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -2.55e-20)
(- x (/ (* y 0.3333333333333333) z))
(if (<= y 5e+74)
(+ x (* 0.3333333333333333 (/ t (* y z))))
(+ x (* (* y 0.3333333333333333) (/ -1.0 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.55e-20) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 5e+74) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x + ((y * 0.3333333333333333) * (-1.0 / z));
}
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) :: tmp
if (y <= (-2.55d-20)) then
tmp = x - ((y * 0.3333333333333333d0) / z)
else if (y <= 5d+74) then
tmp = x + (0.3333333333333333d0 * (t / (y * z)))
else
tmp = x + ((y * 0.3333333333333333d0) * ((-1.0d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.55e-20) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 5e+74) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x + ((y * 0.3333333333333333) * (-1.0 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.55e-20: tmp = x - ((y * 0.3333333333333333) / z) elif y <= 5e+74: tmp = x + (0.3333333333333333 * (t / (y * z))) else: tmp = x + ((y * 0.3333333333333333) * (-1.0 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.55e-20) tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 5e+74) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); else tmp = Float64(x + Float64(Float64(y * 0.3333333333333333) * Float64(-1.0 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.55e-20) tmp = x - ((y * 0.3333333333333333) / z); elseif (y <= 5e+74) tmp = x + (0.3333333333333333 * (t / (y * z))); else tmp = x + ((y * 0.3333333333333333) * (-1.0 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.55e-20], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e+74], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 0.3333333333333333), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.55 \cdot 10^{-20}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+74}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 0.3333333333333333\right) \cdot \frac{-1}{z}\\
\end{array}
\end{array}
if y < -2.55000000000000009e-20Initial program 98.4%
+-commutative98.4%
associate-+r-98.4%
+-commutative98.4%
associate--l+98.4%
sub-neg98.4%
remove-double-neg98.4%
distribute-frac-neg98.4%
distribute-neg-in98.4%
remove-double-neg98.4%
sub-neg98.4%
neg-mul-198.4%
times-frac98.4%
distribute-frac-neg98.4%
neg-mul-198.4%
*-commutative98.4%
associate-/l*98.3%
*-commutative98.3%
Simplified99.8%
Taylor expanded in t around 0 93.6%
metadata-eval93.6%
cancel-sign-sub-inv93.6%
associate-*r/93.7%
Simplified93.7%
if -2.55000000000000009e-20 < y < 4.99999999999999963e74Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
+-commutative93.6%
associate--l+93.6%
sub-neg93.6%
remove-double-neg93.6%
distribute-frac-neg93.6%
distribute-neg-in93.6%
remove-double-neg93.6%
sub-neg93.6%
neg-mul-193.6%
times-frac91.3%
distribute-frac-neg91.3%
neg-mul-191.3%
*-commutative91.3%
associate-/l*91.3%
*-commutative91.3%
Simplified92.0%
Taylor expanded in t around inf 89.0%
if 4.99999999999999963e74 < y Initial program 97.8%
+-commutative97.8%
associate-+r-97.8%
+-commutative97.8%
associate--l+97.8%
sub-neg97.8%
remove-double-neg97.8%
distribute-frac-neg97.8%
distribute-neg-in97.8%
remove-double-neg97.8%
sub-neg97.8%
neg-mul-197.8%
times-frac97.8%
distribute-frac-neg97.8%
neg-mul-197.8%
*-commutative97.8%
associate-/l*97.8%
*-commutative97.8%
Simplified99.7%
Taylor expanded in t around 0 99.7%
metadata-eval99.7%
cancel-sign-sub-inv99.7%
associate-*r/99.6%
Simplified99.6%
div-inv99.8%
*-commutative99.8%
Applied egg-rr99.8%
Final simplification92.4%
(FPCore (x y z t)
:precision binary64
(if (<= y -8e-21)
(- x (/ (* y 0.3333333333333333) z))
(if (<= y 6e+75)
(+ x (* 0.3333333333333333 (/ t (* y z))))
(+ x (* y (* 0.3333333333333333 (/ -1.0 z)))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e-21) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 6e+75) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x + (y * (0.3333333333333333 * (-1.0 / z)));
}
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) :: tmp
if (y <= (-8d-21)) then
tmp = x - ((y * 0.3333333333333333d0) / z)
else if (y <= 6d+75) then
tmp = x + (0.3333333333333333d0 * (t / (y * z)))
else
tmp = x + (y * (0.3333333333333333d0 * ((-1.0d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -8e-21) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 6e+75) {
tmp = x + (0.3333333333333333 * (t / (y * z)));
} else {
tmp = x + (y * (0.3333333333333333 * (-1.0 / z)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -8e-21: tmp = x - ((y * 0.3333333333333333) / z) elif y <= 6e+75: tmp = x + (0.3333333333333333 * (t / (y * z))) else: tmp = x + (y * (0.3333333333333333 * (-1.0 / z))) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -8e-21) tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 6e+75) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); else tmp = Float64(x + Float64(y * Float64(0.3333333333333333 * Float64(-1.0 / z)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -8e-21) tmp = x - ((y * 0.3333333333333333) / z); elseif (y <= 6e+75) tmp = x + (0.3333333333333333 * (t / (y * z))); else tmp = x + (y * (0.3333333333333333 * (-1.0 / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -8e-21], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+75], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(0.3333333333333333 * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-21}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+75}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(0.3333333333333333 \cdot \frac{-1}{z}\right)\\
\end{array}
\end{array}
if y < -7.99999999999999926e-21Initial program 98.4%
+-commutative98.4%
associate-+r-98.4%
+-commutative98.4%
associate--l+98.4%
sub-neg98.4%
remove-double-neg98.4%
distribute-frac-neg98.4%
distribute-neg-in98.4%
remove-double-neg98.4%
sub-neg98.4%
neg-mul-198.4%
times-frac98.4%
distribute-frac-neg98.4%
neg-mul-198.4%
*-commutative98.4%
associate-/l*98.3%
*-commutative98.3%
Simplified99.8%
Taylor expanded in t around 0 93.6%
metadata-eval93.6%
cancel-sign-sub-inv93.6%
associate-*r/93.7%
Simplified93.7%
if -7.99999999999999926e-21 < y < 6e75Initial program 93.6%
+-commutative93.6%
associate-+r-93.6%
+-commutative93.6%
associate--l+93.6%
sub-neg93.6%
remove-double-neg93.6%
distribute-frac-neg93.6%
distribute-neg-in93.6%
remove-double-neg93.6%
sub-neg93.6%
neg-mul-193.6%
times-frac91.3%
distribute-frac-neg91.3%
neg-mul-191.3%
*-commutative91.3%
associate-/l*91.3%
*-commutative91.3%
Simplified92.0%
Taylor expanded in t around inf 89.0%
if 6e75 < y Initial program 97.8%
+-commutative97.8%
associate-+r-97.8%
+-commutative97.8%
associate--l+97.8%
sub-neg97.8%
remove-double-neg97.8%
distribute-frac-neg97.8%
distribute-neg-in97.8%
remove-double-neg97.8%
sub-neg97.8%
neg-mul-197.8%
times-frac97.8%
distribute-frac-neg97.8%
neg-mul-197.8%
*-commutative97.8%
associate-/l*97.8%
*-commutative97.8%
Simplified99.7%
Taylor expanded in t around 0 99.7%
neg-mul-199.7%
Simplified99.7%
div-inv99.8%
Applied egg-rr99.8%
Final simplification92.4%
(FPCore (x y z t) :precision binary64 (if (or (<= y -2e-184) (not (<= y 1.22e-48))) (+ x (/ (/ y z) -3.0)) (* 0.3333333333333333 (/ t (* y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2e-184) || !(y <= 1.22e-48)) {
tmp = x + ((y / z) / -3.0);
} else {
tmp = 0.3333333333333333 * (t / (y * z));
}
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) :: tmp
if ((y <= (-2d-184)) .or. (.not. (y <= 1.22d-48))) then
tmp = x + ((y / z) / (-3.0d0))
else
tmp = 0.3333333333333333d0 * (t / (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -2e-184) || !(y <= 1.22e-48)) {
tmp = x + ((y / z) / -3.0);
} else {
tmp = 0.3333333333333333 * (t / (y * z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -2e-184) or not (y <= 1.22e-48): tmp = x + ((y / z) / -3.0) else: tmp = 0.3333333333333333 * (t / (y * z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -2e-184) || !(y <= 1.22e-48)) tmp = Float64(x + Float64(Float64(y / z) / -3.0)); else tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -2e-184) || ~((y <= 1.22e-48))) tmp = x + ((y / z) / -3.0); else tmp = 0.3333333333333333 * (t / (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -2e-184], N[Not[LessEqual[y, 1.22e-48]], $MachinePrecision]], N[(x + N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{-184} \lor \neg \left(y \leq 1.22 \cdot 10^{-48}\right):\\
\;\;\;\;x + \frac{\frac{y}{z}}{-3}\\
\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if y < -2.0000000000000001e-184 or 1.21999999999999993e-48 < y Initial program 96.4%
+-commutative96.4%
associate-+r-96.4%
+-commutative96.4%
associate--l+96.4%
sub-neg96.4%
remove-double-neg96.4%
distribute-frac-neg96.4%
distribute-neg-in96.4%
remove-double-neg96.4%
sub-neg96.4%
neg-mul-196.4%
times-frac96.9%
distribute-frac-neg96.9%
neg-mul-196.9%
*-commutative96.9%
associate-/l*96.9%
*-commutative96.9%
Simplified98.6%
Taylor expanded in t around 0 86.9%
neg-mul-186.9%
Simplified86.9%
*-commutative86.9%
clear-num86.9%
div-inv86.9%
metadata-eval86.9%
metadata-eval86.9%
distribute-rgt-neg-in86.9%
div-inv87.0%
frac-2neg87.0%
associate-/r*87.0%
Applied egg-rr87.0%
if -2.0000000000000001e-184 < y < 1.21999999999999993e-48Initial program 94.3%
+-commutative94.3%
associate-+r-94.3%
sub-neg94.3%
associate-*l*94.2%
*-commutative94.2%
distribute-frac-neg294.2%
distribute-rgt-neg-in94.2%
metadata-eval94.2%
Simplified94.2%
clear-num94.2%
inv-pow94.2%
Applied egg-rr94.2%
unpow-194.2%
*-commutative94.2%
associate-*l*94.2%
*-commutative94.2%
Simplified94.2%
Taylor expanded in y around 0 72.9%
Final simplification82.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -3.4e-184)
(+ x (/ (/ y z) -3.0))
(if (<= y 8e-49)
(* 0.3333333333333333 (/ t (* y z)))
(- x (* y (/ 0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.4e-184) {
tmp = x + ((y / z) / -3.0);
} else if (y <= 8e-49) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
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) :: tmp
if (y <= (-3.4d-184)) then
tmp = x + ((y / z) / (-3.0d0))
else if (y <= 8d-49) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else
tmp = x - (y * (0.3333333333333333d0 / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.4e-184) {
tmp = x + ((y / z) / -3.0);
} else if (y <= 8e-49) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3.4e-184: tmp = x + ((y / z) / -3.0) elif y <= 8e-49: tmp = 0.3333333333333333 * (t / (y * z)) else: tmp = x - (y * (0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3.4e-184) tmp = Float64(x + Float64(Float64(y / z) / -3.0)); elseif (y <= 8e-49) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); else tmp = Float64(x - Float64(y * Float64(0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -3.4e-184) tmp = x + ((y / z) / -3.0); elseif (y <= 8e-49) tmp = 0.3333333333333333 * (t / (y * z)); else tmp = x - (y * (0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.4e-184], N[(x + N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-49], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{-184}:\\
\;\;\;\;x + \frac{\frac{y}{z}}{-3}\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-49}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -3.40000000000000004e-184Initial program 96.9%
+-commutative96.9%
associate-+r-96.9%
+-commutative96.9%
associate--l+96.9%
sub-neg96.9%
remove-double-neg96.9%
distribute-frac-neg96.9%
distribute-neg-in96.9%
remove-double-neg96.9%
sub-neg96.9%
neg-mul-196.9%
times-frac96.8%
distribute-frac-neg96.8%
neg-mul-196.8%
*-commutative96.8%
associate-/l*96.7%
*-commutative96.7%
Simplified97.8%
Taylor expanded in t around 0 85.6%
neg-mul-185.6%
Simplified85.6%
*-commutative85.6%
clear-num85.6%
div-inv85.6%
metadata-eval85.6%
metadata-eval85.6%
distribute-rgt-neg-in85.6%
div-inv85.7%
frac-2neg85.7%
associate-/r*85.7%
Applied egg-rr85.7%
if -3.40000000000000004e-184 < y < 7.99999999999999949e-49Initial program 94.3%
+-commutative94.3%
associate-+r-94.3%
sub-neg94.3%
associate-*l*94.2%
*-commutative94.2%
distribute-frac-neg294.2%
distribute-rgt-neg-in94.2%
metadata-eval94.2%
Simplified94.2%
clear-num94.2%
inv-pow94.2%
Applied egg-rr94.2%
unpow-194.2%
*-commutative94.2%
associate-*l*94.2%
*-commutative94.2%
Simplified94.2%
Taylor expanded in y around 0 72.9%
if 7.99999999999999949e-49 < y Initial program 95.9%
+-commutative95.9%
associate-+r-95.9%
+-commutative95.9%
associate--l+95.9%
sub-neg95.9%
remove-double-neg95.9%
distribute-frac-neg95.9%
distribute-neg-in95.9%
remove-double-neg95.9%
sub-neg95.9%
neg-mul-195.9%
times-frac97.1%
distribute-frac-neg97.1%
neg-mul-197.1%
*-commutative97.1%
associate-/l*97.1%
*-commutative97.1%
Simplified99.7%
Taylor expanded in t around 0 88.5%
metadata-eval88.5%
cancel-sign-sub-inv88.5%
associate-*r/88.5%
Simplified88.5%
Taylor expanded in y around 0 88.5%
*-commutative88.5%
associate-*l/88.5%
associate-*r/88.6%
Simplified88.6%
Final simplification82.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -3.4e-184)
(- x (/ (* y 0.3333333333333333) z))
(if (<= y 1.8e-44)
(* 0.3333333333333333 (/ t (* y z)))
(- x (* y (/ 0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.4e-184) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 1.8e-44) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
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) :: tmp
if (y <= (-3.4d-184)) then
tmp = x - ((y * 0.3333333333333333d0) / z)
else if (y <= 1.8d-44) then
tmp = 0.3333333333333333d0 * (t / (y * z))
else
tmp = x - (y * (0.3333333333333333d0 / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -3.4e-184) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 1.8e-44) {
tmp = 0.3333333333333333 * (t / (y * z));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -3.4e-184: tmp = x - ((y * 0.3333333333333333) / z) elif y <= 1.8e-44: tmp = 0.3333333333333333 * (t / (y * z)) else: tmp = x - (y * (0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -3.4e-184) tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 1.8e-44) tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z))); else tmp = Float64(x - Float64(y * Float64(0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -3.4e-184) tmp = x - ((y * 0.3333333333333333) / z); elseif (y <= 1.8e-44) tmp = 0.3333333333333333 * (t / (y * z)); else tmp = x - (y * (0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -3.4e-184], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e-44], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{-184}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-44}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -3.40000000000000004e-184Initial program 96.9%
+-commutative96.9%
associate-+r-96.9%
+-commutative96.9%
associate--l+96.9%
sub-neg96.9%
remove-double-neg96.9%
distribute-frac-neg96.9%
distribute-neg-in96.9%
remove-double-neg96.9%
sub-neg96.9%
neg-mul-196.9%
times-frac96.8%
distribute-frac-neg96.8%
neg-mul-196.8%
*-commutative96.8%
associate-/l*96.7%
*-commutative96.7%
Simplified97.8%
Taylor expanded in t around 0 85.6%
metadata-eval85.6%
cancel-sign-sub-inv85.6%
associate-*r/85.7%
Simplified85.7%
if -3.40000000000000004e-184 < y < 1.7999999999999999e-44Initial program 94.3%
+-commutative94.3%
associate-+r-94.3%
sub-neg94.3%
associate-*l*94.2%
*-commutative94.2%
distribute-frac-neg294.2%
distribute-rgt-neg-in94.2%
metadata-eval94.2%
Simplified94.2%
clear-num94.2%
inv-pow94.2%
Applied egg-rr94.2%
unpow-194.2%
*-commutative94.2%
associate-*l*94.2%
*-commutative94.2%
Simplified94.2%
Taylor expanded in y around 0 72.9%
if 1.7999999999999999e-44 < y Initial program 95.9%
+-commutative95.9%
associate-+r-95.9%
+-commutative95.9%
associate--l+95.9%
sub-neg95.9%
remove-double-neg95.9%
distribute-frac-neg95.9%
distribute-neg-in95.9%
remove-double-neg95.9%
sub-neg95.9%
neg-mul-195.9%
times-frac97.1%
distribute-frac-neg97.1%
neg-mul-197.1%
*-commutative97.1%
associate-/l*97.1%
*-commutative97.1%
Simplified99.7%
Taylor expanded in t around 0 88.5%
metadata-eval88.5%
cancel-sign-sub-inv88.5%
associate-*r/88.5%
Simplified88.5%
Taylor expanded in y around 0 88.5%
*-commutative88.5%
associate-*l/88.5%
associate-*r/88.6%
Simplified88.6%
Final simplification82.5%
(FPCore (x y z t)
:precision binary64
(if (<= y -9e-127)
(- x (/ (* y 0.3333333333333333) z))
(if (<= y 3.3e-48)
(/ 0.3333333333333333 (* y (/ z t)))
(- x (* y (/ 0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9e-127) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 3.3e-48) {
tmp = 0.3333333333333333 / (y * (z / t));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
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) :: tmp
if (y <= (-9d-127)) then
tmp = x - ((y * 0.3333333333333333d0) / z)
else if (y <= 3.3d-48) then
tmp = 0.3333333333333333d0 / (y * (z / t))
else
tmp = x - (y * (0.3333333333333333d0 / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -9e-127) {
tmp = x - ((y * 0.3333333333333333) / z);
} else if (y <= 3.3e-48) {
tmp = 0.3333333333333333 / (y * (z / t));
} else {
tmp = x - (y * (0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -9e-127: tmp = x - ((y * 0.3333333333333333) / z) elif y <= 3.3e-48: tmp = 0.3333333333333333 / (y * (z / t)) else: tmp = x - (y * (0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -9e-127) tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z)); elseif (y <= 3.3e-48) tmp = Float64(0.3333333333333333 / Float64(y * Float64(z / t))); else tmp = Float64(x - Float64(y * Float64(0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -9e-127) tmp = x - ((y * 0.3333333333333333) / z); elseif (y <= 3.3e-48) tmp = 0.3333333333333333 / (y * (z / t)); else tmp = x - (y * (0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -9e-127], N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e-48], N[(0.3333333333333333 / N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{-127}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-48}:\\
\;\;\;\;\frac{0.3333333333333333}{y \cdot \frac{z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{0.3333333333333333}{z}\\
\end{array}
\end{array}
if y < -8.9999999999999998e-127Initial program 97.7%
+-commutative97.7%
associate-+r-97.7%
+-commutative97.7%
associate--l+97.7%
sub-neg97.7%
remove-double-neg97.7%
distribute-frac-neg97.7%
distribute-neg-in97.7%
remove-double-neg97.7%
sub-neg97.7%
neg-mul-197.7%
times-frac98.7%
distribute-frac-neg98.7%
neg-mul-198.7%
*-commutative98.7%
associate-/l*98.6%
*-commutative98.6%
Simplified99.8%
Taylor expanded in t around 0 89.6%
metadata-eval89.6%
cancel-sign-sub-inv89.6%
associate-*r/89.7%
Simplified89.7%
if -8.9999999999999998e-127 < y < 3.3e-48Initial program 93.8%
+-commutative93.8%
associate-+r-93.8%
sub-neg93.8%
associate-*l*93.7%
*-commutative93.7%
distribute-frac-neg293.7%
distribute-rgt-neg-in93.7%
metadata-eval93.7%
Simplified93.7%
clear-num93.7%
inv-pow93.7%
Applied egg-rr93.7%
unpow-193.7%
*-commutative93.7%
associate-*l*93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in y around 0 70.2%
clear-num70.2%
associate-*r/72.9%
div-inv72.9%
Applied egg-rr72.9%
if 3.3e-48 < y Initial program 95.9%
+-commutative95.9%
associate-+r-95.9%
+-commutative95.9%
associate--l+95.9%
sub-neg95.9%
remove-double-neg95.9%
distribute-frac-neg95.9%
distribute-neg-in95.9%
remove-double-neg95.9%
sub-neg95.9%
neg-mul-195.9%
times-frac97.1%
distribute-frac-neg97.1%
neg-mul-197.1%
*-commutative97.1%
associate-/l*97.1%
*-commutative97.1%
Simplified99.7%
Taylor expanded in t around 0 88.5%
metadata-eval88.5%
cancel-sign-sub-inv88.5%
associate-*r/88.5%
Simplified88.5%
Taylor expanded in y around 0 88.5%
*-commutative88.5%
associate-*l/88.5%
associate-*r/88.6%
Simplified88.6%
Final simplification83.5%
(FPCore (x y z t) :precision binary64 (if (<= z 3.1e+143) (+ x (* (/ 0.3333333333333333 z) (- (/ t y) y))) (+ x (* 0.3333333333333333 (/ t (* y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= 3.1e+143) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = x + (0.3333333333333333 * (t / (y * z)));
}
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) :: tmp
if (z <= 3.1d+143) then
tmp = x + ((0.3333333333333333d0 / z) * ((t / y) - y))
else
tmp = x + (0.3333333333333333d0 * (t / (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= 3.1e+143) {
tmp = x + ((0.3333333333333333 / z) * ((t / y) - y));
} else {
tmp = x + (0.3333333333333333 * (t / (y * z)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= 3.1e+143: tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)) else: tmp = x + (0.3333333333333333 * (t / (y * z))) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= 3.1e+143) tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * Float64(Float64(t / y) - y))); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= 3.1e+143) tmp = x + ((0.3333333333333333 / z) * ((t / y) - y)); else tmp = x + (0.3333333333333333 * (t / (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, 3.1e+143], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 3.1 \cdot 10^{+143}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot \left(\frac{t}{y} - y\right)\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
\end{array}
\end{array}
if z < 3.0999999999999999e143Initial program 95.1%
+-commutative95.1%
associate-+r-95.1%
+-commutative95.1%
associate--l+95.1%
sub-neg95.1%
remove-double-neg95.1%
distribute-frac-neg95.1%
distribute-neg-in95.1%
remove-double-neg95.1%
sub-neg95.1%
neg-mul-195.1%
times-frac97.1%
distribute-frac-neg97.1%
neg-mul-197.1%
*-commutative97.1%
associate-/l*97.0%
*-commutative97.0%
Simplified98.4%
if 3.0999999999999999e143 < z Initial program 99.7%
+-commutative99.7%
associate-+r-99.7%
+-commutative99.7%
associate--l+99.7%
sub-neg99.7%
remove-double-neg99.7%
distribute-frac-neg99.7%
distribute-neg-in99.7%
remove-double-neg99.7%
sub-neg99.7%
neg-mul-199.7%
times-frac79.2%
distribute-frac-neg79.2%
neg-mul-179.2%
*-commutative79.2%
associate-/l*79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in t around inf 91.7%
Final simplification97.4%
(FPCore (x y z t) :precision binary64 (if (<= x -8.5e-12) x (if (<= x 1.05e+42) (* (/ y z) -0.3333333333333333) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8.5e-12) {
tmp = x;
} else if (x <= 1.05e+42) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = 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) :: tmp
if (x <= (-8.5d-12)) then
tmp = x
else if (x <= 1.05d+42) then
tmp = (y / z) * (-0.3333333333333333d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -8.5e-12) {
tmp = x;
} else if (x <= 1.05e+42) {
tmp = (y / z) * -0.3333333333333333;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -8.5e-12: tmp = x elif x <= 1.05e+42: tmp = (y / z) * -0.3333333333333333 else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -8.5e-12) tmp = x; elseif (x <= 1.05e+42) tmp = Float64(Float64(y / z) * -0.3333333333333333); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -8.5e-12) tmp = x; elseif (x <= 1.05e+42) tmp = (y / z) * -0.3333333333333333; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -8.5e-12], x, If[LessEqual[x, 1.05e+42], N[(N[(y / z), $MachinePrecision] * -0.3333333333333333), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-12}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{+42}:\\
\;\;\;\;\frac{y}{z} \cdot -0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -8.4999999999999997e-12 or 1.04999999999999998e42 < x Initial program 96.7%
+-commutative96.7%
associate-+r-96.7%
+-commutative96.7%
associate--l+96.7%
sub-neg96.7%
remove-double-neg96.7%
distribute-frac-neg96.7%
distribute-neg-in96.7%
remove-double-neg96.7%
sub-neg96.7%
neg-mul-196.7%
times-frac96.6%
distribute-frac-neg96.6%
neg-mul-196.6%
*-commutative96.6%
associate-/l*96.7%
*-commutative96.7%
Simplified97.5%
Taylor expanded in x around inf 61.2%
if -8.4999999999999997e-12 < x < 1.04999999999999998e42Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
clear-num94.9%
inv-pow94.9%
Applied egg-rr94.9%
unpow-194.9%
*-commutative94.9%
associate-*l*94.9%
*-commutative94.9%
Simplified94.9%
Taylor expanded in y around inf 49.4%
Final simplification54.9%
(FPCore (x y z t) :precision binary64 (if (<= x -5.3e-11) x (if (<= x 3.3e+42) (* y (/ -0.3333333333333333 z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -5.3e-11) {
tmp = x;
} else if (x <= 3.3e+42) {
tmp = y * (-0.3333333333333333 / z);
} else {
tmp = 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) :: tmp
if (x <= (-5.3d-11)) then
tmp = x
else if (x <= 3.3d+42) then
tmp = y * ((-0.3333333333333333d0) / z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -5.3e-11) {
tmp = x;
} else if (x <= 3.3e+42) {
tmp = y * (-0.3333333333333333 / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -5.3e-11: tmp = x elif x <= 3.3e+42: tmp = y * (-0.3333333333333333 / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -5.3e-11) tmp = x; elseif (x <= 3.3e+42) tmp = Float64(y * Float64(-0.3333333333333333 / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -5.3e-11) tmp = x; elseif (x <= 3.3e+42) tmp = y * (-0.3333333333333333 / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -5.3e-11], x, If[LessEqual[x, 3.3e+42], N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.3 \cdot 10^{-11}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{+42}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -5.2999999999999998e-11 or 3.2999999999999999e42 < x Initial program 96.7%
+-commutative96.7%
associate-+r-96.7%
+-commutative96.7%
associate--l+96.7%
sub-neg96.7%
remove-double-neg96.7%
distribute-frac-neg96.7%
distribute-neg-in96.7%
remove-double-neg96.7%
sub-neg96.7%
neg-mul-196.7%
times-frac96.6%
distribute-frac-neg96.6%
neg-mul-196.6%
*-commutative96.6%
associate-/l*96.7%
*-commutative96.7%
Simplified97.5%
Taylor expanded in x around inf 61.2%
if -5.2999999999999998e-11 < x < 3.2999999999999999e42Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
+-commutative94.9%
associate--l+94.9%
sub-neg94.9%
remove-double-neg94.9%
distribute-frac-neg94.9%
distribute-neg-in94.9%
remove-double-neg94.9%
sub-neg94.9%
neg-mul-194.9%
times-frac92.6%
distribute-frac-neg92.6%
neg-mul-192.6%
*-commutative92.6%
associate-/l*92.5%
*-commutative92.5%
Simplified94.0%
Taylor expanded in y around inf 55.7%
Taylor expanded in x around 0 49.4%
Final simplification55.0%
(FPCore (x y z t) :precision binary64 (if (<= x -3.4e-11) x (if (<= x 4.6e+39) (/ y (* z -3.0)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.4e-11) {
tmp = x;
} else if (x <= 4.6e+39) {
tmp = y / (z * -3.0);
} else {
tmp = 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) :: tmp
if (x <= (-3.4d-11)) then
tmp = x
else if (x <= 4.6d+39) then
tmp = y / (z * (-3.0d0))
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.4e-11) {
tmp = x;
} else if (x <= 4.6e+39) {
tmp = y / (z * -3.0);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.4e-11: tmp = x elif x <= 4.6e+39: tmp = y / (z * -3.0) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.4e-11) tmp = x; elseif (x <= 4.6e+39) tmp = Float64(y / Float64(z * -3.0)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.4e-11) tmp = x; elseif (x <= 4.6e+39) tmp = y / (z * -3.0); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.4e-11], x, If[LessEqual[x, 4.6e+39], N[(y / N[(z * -3.0), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{-11}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{+39}:\\
\;\;\;\;\frac{y}{z \cdot -3}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -3.3999999999999999e-11 or 4.60000000000000024e39 < x Initial program 96.7%
+-commutative96.7%
associate-+r-96.7%
+-commutative96.7%
associate--l+96.7%
sub-neg96.7%
remove-double-neg96.7%
distribute-frac-neg96.7%
distribute-neg-in96.7%
remove-double-neg96.7%
sub-neg96.7%
neg-mul-196.7%
times-frac96.6%
distribute-frac-neg96.6%
neg-mul-196.6%
*-commutative96.6%
associate-/l*96.7%
*-commutative96.7%
Simplified97.5%
Taylor expanded in x around inf 61.2%
if -3.3999999999999999e-11 < x < 4.60000000000000024e39Initial program 94.9%
+-commutative94.9%
associate-+r-94.9%
sub-neg94.9%
associate-*l*94.9%
*-commutative94.9%
distribute-frac-neg294.9%
distribute-rgt-neg-in94.9%
metadata-eval94.9%
Simplified94.9%
clear-num94.9%
inv-pow94.9%
Applied egg-rr94.9%
unpow-194.9%
*-commutative94.9%
associate-*l*94.9%
*-commutative94.9%
Simplified94.9%
Taylor expanded in y around inf 49.4%
metadata-eval49.4%
times-frac49.5%
*-un-lft-identity49.5%
*-commutative49.5%
Applied egg-rr49.5%
Final simplification55.0%
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 95.7%
+-commutative95.7%
associate-+r-95.7%
+-commutative95.7%
associate--l+95.7%
sub-neg95.7%
remove-double-neg95.7%
distribute-frac-neg95.7%
distribute-neg-in95.7%
remove-double-neg95.7%
sub-neg95.7%
neg-mul-195.7%
times-frac94.5%
distribute-frac-neg94.5%
neg-mul-194.5%
*-commutative94.5%
associate-/l*94.5%
*-commutative94.5%
Simplified95.6%
Taylor expanded in x around inf 33.4%
Final simplification33.4%
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.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 = (x - (y / (z * 3.0d0))) + ((t / (z * 3.0d0)) / y)
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y)
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y)) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}
\end{array}
herbie shell --seed 2024081
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:alt
(+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))