
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
Initial program 99.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -7.4e-94)
(* a 120.0)
(if (<= a -4.8e-256)
(/ (* 60.0 x) (- z t))
(if (<= a 6.5e-141)
(* (- x y) (/ -60.0 t))
(if (<= a 1.6e-83) (/ (* y -60.0) (- z t)) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.4e-94) {
tmp = a * 120.0;
} else if (a <= -4.8e-256) {
tmp = (60.0 * x) / (z - t);
} else if (a <= 6.5e-141) {
tmp = (x - y) * (-60.0 / t);
} else if (a <= 1.6e-83) {
tmp = (y * -60.0) / (z - t);
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-7.4d-94)) then
tmp = a * 120.0d0
else if (a <= (-4.8d-256)) then
tmp = (60.0d0 * x) / (z - t)
else if (a <= 6.5d-141) then
tmp = (x - y) * ((-60.0d0) / t)
else if (a <= 1.6d-83) then
tmp = (y * (-60.0d0)) / (z - t)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.4e-94) {
tmp = a * 120.0;
} else if (a <= -4.8e-256) {
tmp = (60.0 * x) / (z - t);
} else if (a <= 6.5e-141) {
tmp = (x - y) * (-60.0 / t);
} else if (a <= 1.6e-83) {
tmp = (y * -60.0) / (z - t);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7.4e-94: tmp = a * 120.0 elif a <= -4.8e-256: tmp = (60.0 * x) / (z - t) elif a <= 6.5e-141: tmp = (x - y) * (-60.0 / t) elif a <= 1.6e-83: tmp = (y * -60.0) / (z - t) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.4e-94) tmp = Float64(a * 120.0); elseif (a <= -4.8e-256) tmp = Float64(Float64(60.0 * x) / Float64(z - t)); elseif (a <= 6.5e-141) tmp = Float64(Float64(x - y) * Float64(-60.0 / t)); elseif (a <= 1.6e-83) tmp = Float64(Float64(y * -60.0) / Float64(z - t)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7.4e-94) tmp = a * 120.0; elseif (a <= -4.8e-256) tmp = (60.0 * x) / (z - t); elseif (a <= 6.5e-141) tmp = (x - y) * (-60.0 / t); elseif (a <= 1.6e-83) tmp = (y * -60.0) / (z - t); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.4e-94], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -4.8e-256], N[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-141], N[(N[(x - y), $MachinePrecision] * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-83], N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.4 \cdot 10^{-94}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-256}:\\
\;\;\;\;\frac{60 \cdot x}{z - t}\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-141}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{-60}{t}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-83}:\\
\;\;\;\;\frac{y \cdot -60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -7.3999999999999996e-94 or 1.6000000000000001e-83 < a Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 65.9%
if -7.3999999999999996e-94 < a < -4.7999999999999999e-256Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.5%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 55.9%
associate-*r/56.0%
Simplified56.0%
if -4.7999999999999999e-256 < a < 6.4999999999999995e-141Initial program 99.6%
associate-/l*99.5%
Simplified99.5%
+-commutative99.5%
fma-define99.6%
clear-num99.6%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 91.3%
associate-*r/91.3%
associate-*l/91.3%
metadata-eval91.3%
associate-*r/91.1%
*-commutative91.1%
associate-*r/91.3%
metadata-eval91.3%
Simplified91.3%
Taylor expanded in z around 0 58.5%
if 6.4999999999999995e-141 < a < 1.6000000000000001e-83Initial program 99.7%
associate-/l*99.5%
Simplified99.5%
+-commutative99.5%
fma-define99.5%
clear-num99.7%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 75.4%
associate-*r/75.6%
*-commutative75.6%
Simplified75.6%
Final simplification63.6%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.2e-93)
(* a 120.0)
(if (<= a -1e-256)
(/ (* 60.0 x) (- z t))
(if (<= a 1.7e-140)
(* (- x y) (/ -60.0 t))
(if (<= a 1.7e-82) (* 60.0 (/ y (- t z))) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-93) {
tmp = a * 120.0;
} else if (a <= -1e-256) {
tmp = (60.0 * x) / (z - t);
} else if (a <= 1.7e-140) {
tmp = (x - y) * (-60.0 / t);
} else if (a <= 1.7e-82) {
tmp = 60.0 * (y / (t - z));
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.2d-93)) then
tmp = a * 120.0d0
else if (a <= (-1d-256)) then
tmp = (60.0d0 * x) / (z - t)
else if (a <= 1.7d-140) then
tmp = (x - y) * ((-60.0d0) / t)
else if (a <= 1.7d-82) then
tmp = 60.0d0 * (y / (t - z))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.2e-93) {
tmp = a * 120.0;
} else if (a <= -1e-256) {
tmp = (60.0 * x) / (z - t);
} else if (a <= 1.7e-140) {
tmp = (x - y) * (-60.0 / t);
} else if (a <= 1.7e-82) {
tmp = 60.0 * (y / (t - z));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.2e-93: tmp = a * 120.0 elif a <= -1e-256: tmp = (60.0 * x) / (z - t) elif a <= 1.7e-140: tmp = (x - y) * (-60.0 / t) elif a <= 1.7e-82: tmp = 60.0 * (y / (t - z)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.2e-93) tmp = Float64(a * 120.0); elseif (a <= -1e-256) tmp = Float64(Float64(60.0 * x) / Float64(z - t)); elseif (a <= 1.7e-140) tmp = Float64(Float64(x - y) * Float64(-60.0 / t)); elseif (a <= 1.7e-82) tmp = Float64(60.0 * Float64(y / Float64(t - z))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.2e-93) tmp = a * 120.0; elseif (a <= -1e-256) tmp = (60.0 * x) / (z - t); elseif (a <= 1.7e-140) tmp = (x - y) * (-60.0 / t); elseif (a <= 1.7e-82) tmp = 60.0 * (y / (t - z)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.2e-93], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -1e-256], N[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e-140], N[(N[(x - y), $MachinePrecision] * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e-82], N[(60.0 * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-93}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-256}:\\
\;\;\;\;\frac{60 \cdot x}{z - t}\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-140}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{-60}{t}\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-82}:\\
\;\;\;\;60 \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -1.2000000000000001e-93 or 1.69999999999999988e-82 < a Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 65.9%
if -1.2000000000000001e-93 < a < -9.99999999999999977e-257Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.5%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 55.9%
associate-*r/56.0%
Simplified56.0%
if -9.99999999999999977e-257 < a < 1.70000000000000004e-140Initial program 99.6%
associate-/l*99.5%
Simplified99.5%
+-commutative99.5%
fma-define99.6%
clear-num99.6%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 91.3%
associate-*r/91.3%
associate-*l/91.3%
metadata-eval91.3%
associate-*r/91.1%
*-commutative91.1%
associate-*r/91.3%
metadata-eval91.3%
Simplified91.3%
Taylor expanded in z around 0 58.5%
if 1.70000000000000004e-140 < a < 1.69999999999999988e-82Initial program 99.7%
*-commutative99.7%
associate-/l*99.6%
fma-define99.6%
sub-neg99.6%
+-commutative99.6%
neg-sub099.6%
associate-+l-99.6%
sub0-neg99.6%
distribute-frac-neg299.6%
distribute-neg-frac99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 75.4%
Final simplification63.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.5e-101)
(* a 120.0)
(if (<= a -1.15e-255)
(* 60.0 (/ x (- z t)))
(if (<= a 1.8e-141)
(* (- x y) (/ -60.0 t))
(if (<= a 1.12e-82) (* 60.0 (/ y (- t z))) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e-101) {
tmp = a * 120.0;
} else if (a <= -1.15e-255) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.8e-141) {
tmp = (x - y) * (-60.0 / t);
} else if (a <= 1.12e-82) {
tmp = 60.0 * (y / (t - z));
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.5d-101)) then
tmp = a * 120.0d0
else if (a <= (-1.15d-255)) then
tmp = 60.0d0 * (x / (z - t))
else if (a <= 1.8d-141) then
tmp = (x - y) * ((-60.0d0) / t)
else if (a <= 1.12d-82) then
tmp = 60.0d0 * (y / (t - z))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.5e-101) {
tmp = a * 120.0;
} else if (a <= -1.15e-255) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.8e-141) {
tmp = (x - y) * (-60.0 / t);
} else if (a <= 1.12e-82) {
tmp = 60.0 * (y / (t - z));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.5e-101: tmp = a * 120.0 elif a <= -1.15e-255: tmp = 60.0 * (x / (z - t)) elif a <= 1.8e-141: tmp = (x - y) * (-60.0 / t) elif a <= 1.12e-82: tmp = 60.0 * (y / (t - z)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.5e-101) tmp = Float64(a * 120.0); elseif (a <= -1.15e-255) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (a <= 1.8e-141) tmp = Float64(Float64(x - y) * Float64(-60.0 / t)); elseif (a <= 1.12e-82) tmp = Float64(60.0 * Float64(y / Float64(t - z))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.5e-101) tmp = a * 120.0; elseif (a <= -1.15e-255) tmp = 60.0 * (x / (z - t)); elseif (a <= 1.8e-141) tmp = (x - y) * (-60.0 / t); elseif (a <= 1.12e-82) tmp = 60.0 * (y / (t - z)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.5e-101], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -1.15e-255], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-141], N[(N[(x - y), $MachinePrecision] * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.12e-82], N[(60.0 * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{-101}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-255}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-141}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{-60}{t}\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{-82}:\\
\;\;\;\;60 \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -1.5000000000000002e-101 or 1.12e-82 < a Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 65.9%
if -1.5000000000000002e-101 < a < -1.1499999999999999e-255Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.5%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 55.9%
if -1.1499999999999999e-255 < a < 1.80000000000000007e-141Initial program 99.6%
associate-/l*99.5%
Simplified99.5%
+-commutative99.5%
fma-define99.6%
clear-num99.6%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 91.3%
associate-*r/91.3%
associate-*l/91.3%
metadata-eval91.3%
associate-*r/91.1%
*-commutative91.1%
associate-*r/91.3%
metadata-eval91.3%
Simplified91.3%
Taylor expanded in z around 0 58.5%
if 1.80000000000000007e-141 < a < 1.12e-82Initial program 99.7%
*-commutative99.7%
associate-/l*99.6%
fma-define99.6%
sub-neg99.6%
+-commutative99.6%
neg-sub099.6%
associate-+l-99.6%
sub0-neg99.6%
distribute-frac-neg299.6%
distribute-neg-frac99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 75.4%
Final simplification63.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= (* a 120.0) -2e-83) (not (<= (* a 120.0) 2e-140))) (+ (* a 120.0) (* y (/ -60.0 (- z t)))) (* (- x y) (/ 60.0 (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -2e-83) || !((a * 120.0) <= 2e-140)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (x - y) * (60.0 / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (((a * 120.0d0) <= (-2d-83)) .or. (.not. ((a * 120.0d0) <= 2d-140))) then
tmp = (a * 120.0d0) + (y * ((-60.0d0) / (z - t)))
else
tmp = (x - y) * (60.0d0 / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -2e-83) || !((a * 120.0) <= 2e-140)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (x - y) * (60.0 / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a * 120.0) <= -2e-83) or not ((a * 120.0) <= 2e-140): tmp = (a * 120.0) + (y * (-60.0 / (z - t))) else: tmp = (x - y) * (60.0 / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a * 120.0) <= -2e-83) || !(Float64(a * 120.0) <= 2e-140)) tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(-60.0 / Float64(z - t)))); else tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a * 120.0) <= -2e-83) || ~(((a * 120.0) <= 2e-140))) tmp = (a * 120.0) + (y * (-60.0 / (z - t))); else tmp = (x - y) * (60.0 / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -2e-83], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 2e-140]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(-60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -2 \cdot 10^{-83} \lor \neg \left(a \cdot 120 \leq 2 \cdot 10^{-140}\right):\\
\;\;\;\;a \cdot 120 + y \cdot \frac{-60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -2.0000000000000001e-83 or 2e-140 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around 0 87.9%
associate-*r/87.9%
*-commutative87.9%
*-lft-identity87.9%
times-frac87.9%
/-rgt-identity87.9%
Simplified87.9%
if -2.0000000000000001e-83 < (*.f64 a #s(literal 120 binary64)) < 2e-140Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.5%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 86.7%
associate-*r/86.8%
associate-*l/86.8%
metadata-eval86.8%
associate-*r/86.6%
*-commutative86.6%
associate-*r/86.8%
metadata-eval86.8%
Simplified86.8%
Final simplification87.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= (* a 120.0) -100000000.0) (not (<= (* a 120.0) 2e-28))) (+ (* a 120.0) (* y (/ 60.0 t))) (* (- x y) (/ 60.0 (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -100000000.0) || !((a * 120.0) <= 2e-28)) {
tmp = (a * 120.0) + (y * (60.0 / t));
} else {
tmp = (x - y) * (60.0 / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (((a * 120.0d0) <= (-100000000.0d0)) .or. (.not. ((a * 120.0d0) <= 2d-28))) then
tmp = (a * 120.0d0) + (y * (60.0d0 / t))
else
tmp = (x - y) * (60.0d0 / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -100000000.0) || !((a * 120.0) <= 2e-28)) {
tmp = (a * 120.0) + (y * (60.0 / t));
} else {
tmp = (x - y) * (60.0 / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a * 120.0) <= -100000000.0) or not ((a * 120.0) <= 2e-28): tmp = (a * 120.0) + (y * (60.0 / t)) else: tmp = (x - y) * (60.0 / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a * 120.0) <= -100000000.0) || !(Float64(a * 120.0) <= 2e-28)) tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(60.0 / t))); else tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a * 120.0) <= -100000000.0) || ~(((a * 120.0) <= 2e-28))) tmp = (a * 120.0) + (y * (60.0 / t)); else tmp = (x - y) * (60.0 / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -100000000.0], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 2e-28]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(60.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -100000000 \lor \neg \left(a \cdot 120 \leq 2 \cdot 10^{-28}\right):\\
\;\;\;\;a \cdot 120 + y \cdot \frac{60}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1e8 or 1.99999999999999994e-28 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around 0 90.8%
associate-*r/90.8%
*-commutative90.8%
*-lft-identity90.8%
times-frac90.8%
/-rgt-identity90.8%
Simplified90.8%
Taylor expanded in z around 0 75.7%
if -1e8 < (*.f64 a #s(literal 120 binary64)) < 1.99999999999999994e-28Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.6%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 79.3%
associate-*r/79.4%
associate-*l/79.4%
metadata-eval79.4%
associate-*r/79.2%
*-commutative79.2%
associate-*r/79.4%
metadata-eval79.4%
Simplified79.4%
Final simplification77.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= (* a 120.0) -10000.0) (not (<= (* a 120.0) 4e+32))) (* a 120.0) (* (- x y) (/ 60.0 (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -10000.0) || !((a * 120.0) <= 4e+32)) {
tmp = a * 120.0;
} else {
tmp = (x - y) * (60.0 / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (((a * 120.0d0) <= (-10000.0d0)) .or. (.not. ((a * 120.0d0) <= 4d+32))) then
tmp = a * 120.0d0
else
tmp = (x - y) * (60.0d0 / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -10000.0) || !((a * 120.0) <= 4e+32)) {
tmp = a * 120.0;
} else {
tmp = (x - y) * (60.0 / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a * 120.0) <= -10000.0) or not ((a * 120.0) <= 4e+32): tmp = a * 120.0 else: tmp = (x - y) * (60.0 / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a * 120.0) <= -10000.0) || !(Float64(a * 120.0) <= 4e+32)) tmp = Float64(a * 120.0); else tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a * 120.0) <= -10000.0) || ~(((a * 120.0) <= 4e+32))) tmp = a * 120.0; else tmp = (x - y) * (60.0 / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -10000.0], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 4e+32]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -10000 \lor \neg \left(a \cdot 120 \leq 4 \cdot 10^{+32}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1e4 or 4.00000000000000021e32 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
fma-define99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
distribute-frac-neg299.9%
distribute-neg-frac99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around inf 73.7%
if -1e4 < (*.f64 a #s(literal 120 binary64)) < 4.00000000000000021e32Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.6%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 77.7%
associate-*r/77.8%
associate-*l/77.8%
metadata-eval77.8%
associate-*r/77.6%
*-commutative77.6%
associate-*r/77.8%
metadata-eval77.8%
Simplified77.8%
Final simplification75.9%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.45e-99)
(* a 120.0)
(if (<= a -4.8e-259)
(* 60.0 (/ x (- z t)))
(if (<= a 1.25e-83) (* 60.0 (/ y (- t z))) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.45e-99) {
tmp = a * 120.0;
} else if (a <= -4.8e-259) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.25e-83) {
tmp = 60.0 * (y / (t - z));
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-1.45d-99)) then
tmp = a * 120.0d0
else if (a <= (-4.8d-259)) then
tmp = 60.0d0 * (x / (z - t))
else if (a <= 1.25d-83) then
tmp = 60.0d0 * (y / (t - z))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.45e-99) {
tmp = a * 120.0;
} else if (a <= -4.8e-259) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.25e-83) {
tmp = 60.0 * (y / (t - z));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.45e-99: tmp = a * 120.0 elif a <= -4.8e-259: tmp = 60.0 * (x / (z - t)) elif a <= 1.25e-83: tmp = 60.0 * (y / (t - z)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.45e-99) tmp = Float64(a * 120.0); elseif (a <= -4.8e-259) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (a <= 1.25e-83) tmp = Float64(60.0 * Float64(y / Float64(t - z))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.45e-99) tmp = a * 120.0; elseif (a <= -4.8e-259) tmp = 60.0 * (x / (z - t)); elseif (a <= 1.25e-83) tmp = 60.0 * (y / (t - z)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.45e-99], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -4.8e-259], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-83], N[(60.0 * N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.45 \cdot 10^{-99}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-259}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-83}:\\
\;\;\;\;60 \cdot \frac{y}{t - z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -1.44999999999999993e-99 or 1.25e-83 < a Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 65.9%
if -1.44999999999999993e-99 < a < -4.8000000000000001e-259Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.5%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 55.9%
if -4.8000000000000001e-259 < a < 1.25e-83Initial program 99.6%
*-commutative99.6%
associate-/l*99.6%
fma-define99.6%
sub-neg99.6%
+-commutative99.6%
neg-sub099.6%
associate-+l-99.6%
sub0-neg99.6%
distribute-frac-neg299.6%
distribute-neg-frac99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 54.4%
Final simplification61.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -6.6e+94) (not (<= y 3.2e-10))) (+ (* a 120.0) (* y (/ -60.0 (- z t)))) (+ (* a 120.0) (/ 60.0 (/ (- z t) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.6e+94) || !(y <= 3.2e-10)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-6.6d+94)) .or. (.not. (y <= 3.2d-10))) then
tmp = (a * 120.0d0) + (y * ((-60.0d0) / (z - t)))
else
tmp = (a * 120.0d0) + (60.0d0 / ((z - t) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.6e+94) || !(y <= 3.2e-10)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -6.6e+94) or not (y <= 3.2e-10): tmp = (a * 120.0) + (y * (-60.0 / (z - t))) else: tmp = (a * 120.0) + (60.0 / ((z - t) / x)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -6.6e+94) || !(y <= 3.2e-10)) tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(-60.0 / Float64(z - t)))); else tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -6.6e+94) || ~((y <= 3.2e-10))) tmp = (a * 120.0) + (y * (-60.0 / (z - t))); else tmp = (a * 120.0) + (60.0 / ((z - t) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -6.6e+94], N[Not[LessEqual[y, 3.2e-10]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(-60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+94} \lor \neg \left(y \leq 3.2 \cdot 10^{-10}\right):\\
\;\;\;\;a \cdot 120 + y \cdot \frac{-60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z - t}{x}}\\
\end{array}
\end{array}
if y < -6.6e94 or 3.19999999999999981e-10 < y Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 88.8%
associate-*r/88.9%
*-commutative88.9%
*-lft-identity88.9%
times-frac88.8%
/-rgt-identity88.8%
Simplified88.8%
if -6.6e94 < y < 3.19999999999999981e-10Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in x around inf 92.2%
Final simplification90.6%
(FPCore (x y z t a)
:precision binary64
(if (<= y -9e+92)
(+ (* a 120.0) (/ (* y -60.0) (- z t)))
(if (<= y 2.8e-10)
(+ (* a 120.0) (/ (* 60.0 x) (- z t)))
(+ (* a 120.0) (* y (/ -60.0 (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -9e+92) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else if (y <= 2.8e-10) {
tmp = (a * 120.0) + ((60.0 * x) / (z - t));
} else {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-9d+92)) then
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / (z - t))
else if (y <= 2.8d-10) then
tmp = (a * 120.0d0) + ((60.0d0 * x) / (z - t))
else
tmp = (a * 120.0d0) + (y * ((-60.0d0) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -9e+92) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else if (y <= 2.8e-10) {
tmp = (a * 120.0) + ((60.0 * x) / (z - t));
} else {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -9e+92: tmp = (a * 120.0) + ((y * -60.0) / (z - t)) elif y <= 2.8e-10: tmp = (a * 120.0) + ((60.0 * x) / (z - t)) else: tmp = (a * 120.0) + (y * (-60.0 / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -9e+92) tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / Float64(z - t))); elseif (y <= 2.8e-10) tmp = Float64(Float64(a * 120.0) + Float64(Float64(60.0 * x) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(-60.0 / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -9e+92) tmp = (a * 120.0) + ((y * -60.0) / (z - t)); elseif (y <= 2.8e-10) tmp = (a * 120.0) + ((60.0 * x) / (z - t)); else tmp = (a * 120.0) + (y * (-60.0 / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -9e+92], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e-10], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(-60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+92}:\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z - t}\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-10}:\\
\;\;\;\;a \cdot 120 + \frac{60 \cdot x}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + y \cdot \frac{-60}{z - t}\\
\end{array}
\end{array}
if y < -8.9999999999999998e92Initial program 99.8%
Taylor expanded in x around 0 94.0%
if -8.9999999999999998e92 < y < 2.80000000000000015e-10Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 92.2%
associate-*r/92.2%
Simplified92.2%
if 2.80000000000000015e-10 < y Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 85.4%
associate-*r/85.4%
*-commutative85.4%
*-lft-identity85.4%
times-frac85.4%
/-rgt-identity85.4%
Simplified85.4%
Final simplification90.6%
(FPCore (x y z t a)
:precision binary64
(if (<= y -6.2e+93)
(+ (* a 120.0) (/ (* y -60.0) (- z t)))
(if (<= y 3.2e-10)
(+ (* a 120.0) (/ 60.0 (/ (- z t) x)))
(+ (* a 120.0) (* y (/ -60.0 (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -6.2e+93) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else if (y <= 3.2e-10) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-6.2d+93)) then
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / (z - t))
else if (y <= 3.2d-10) then
tmp = (a * 120.0d0) + (60.0d0 / ((z - t) / x))
else
tmp = (a * 120.0d0) + (y * ((-60.0d0) / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -6.2e+93) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else if (y <= 3.2e-10) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -6.2e+93: tmp = (a * 120.0) + ((y * -60.0) / (z - t)) elif y <= 3.2e-10: tmp = (a * 120.0) + (60.0 / ((z - t) / x)) else: tmp = (a * 120.0) + (y * (-60.0 / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -6.2e+93) tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / Float64(z - t))); elseif (y <= 3.2e-10) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / x))); else tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(-60.0 / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -6.2e+93) tmp = (a * 120.0) + ((y * -60.0) / (z - t)); elseif (y <= 3.2e-10) tmp = (a * 120.0) + (60.0 / ((z - t) / x)); else tmp = (a * 120.0) + (y * (-60.0 / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -6.2e+93], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e-10], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(-60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+93}:\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z - t}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-10}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z - t}{x}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + y \cdot \frac{-60}{z - t}\\
\end{array}
\end{array}
if y < -6.20000000000000038e93Initial program 99.8%
Taylor expanded in x around 0 94.0%
if -6.20000000000000038e93 < y < 3.19999999999999981e-10Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in x around inf 92.2%
if 3.19999999999999981e-10 < y Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 85.4%
associate-*r/85.4%
*-commutative85.4%
*-lft-identity85.4%
times-frac85.4%
/-rgt-identity85.4%
Simplified85.4%
Final simplification90.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.5e+32)
(+ (* a 120.0) (/ 60.0 (/ z x)))
(if (<= z 1.3e+68)
(+ (* a 120.0) (* -60.0 (/ (- x y) t)))
(+ (* a 120.0) (/ (* y -60.0) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.5e+32) {
tmp = (a * 120.0) + (60.0 / (z / x));
} else if (z <= 1.3e+68) {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
} else {
tmp = (a * 120.0) + ((y * -60.0) / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.5d+32)) then
tmp = (a * 120.0d0) + (60.0d0 / (z / x))
else if (z <= 1.3d+68) then
tmp = (a * 120.0d0) + ((-60.0d0) * ((x - y) / t))
else
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.5e+32) {
tmp = (a * 120.0) + (60.0 / (z / x));
} else if (z <= 1.3e+68) {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
} else {
tmp = (a * 120.0) + ((y * -60.0) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.5e+32: tmp = (a * 120.0) + (60.0 / (z / x)) elif z <= 1.3e+68: tmp = (a * 120.0) + (-60.0 * ((x - y) / t)) else: tmp = (a * 120.0) + ((y * -60.0) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.5e+32) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(z / x))); elseif (z <= 1.3e+68) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(Float64(x - y) / t))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.5e+32) tmp = (a * 120.0) + (60.0 / (z / x)); elseif (z <= 1.3e+68) tmp = (a * 120.0) + (-60.0 * ((x - y) / t)); else tmp = (a * 120.0) + ((y * -60.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.5e+32], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+68], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+32}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z}{x}}\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+68}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{x - y}{t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z}\\
\end{array}
\end{array}
if z < -1.5e32Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in x around inf 83.6%
Taylor expanded in z around inf 75.8%
if -1.5e32 < z < 1.2999999999999999e68Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around 0 82.8%
if 1.2999999999999999e68 < z Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around 0 86.8%
associate-*r/86.9%
*-commutative86.9%
*-lft-identity86.9%
times-frac86.8%
/-rgt-identity86.8%
Simplified86.8%
Taylor expanded in z around inf 84.7%
associate-*r/84.8%
Applied egg-rr84.8%
Final simplification81.6%
(FPCore (x y z t a)
:precision binary64
(if (<= a -3.2e-94)
(* a 120.0)
(if (<= a 4.5e-135)
(* 60.0 (/ x (- z t)))
(if (<= a 1.7e-85) (/ -60.0 (/ z y)) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.2e-94) {
tmp = a * 120.0;
} else if (a <= 4.5e-135) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.7e-85) {
tmp = -60.0 / (z / y);
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-3.2d-94)) then
tmp = a * 120.0d0
else if (a <= 4.5d-135) then
tmp = 60.0d0 * (x / (z - t))
else if (a <= 1.7d-85) then
tmp = (-60.0d0) / (z / y)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.2e-94) {
tmp = a * 120.0;
} else if (a <= 4.5e-135) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.7e-85) {
tmp = -60.0 / (z / y);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.2e-94: tmp = a * 120.0 elif a <= 4.5e-135: tmp = 60.0 * (x / (z - t)) elif a <= 1.7e-85: tmp = -60.0 / (z / y) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.2e-94) tmp = Float64(a * 120.0); elseif (a <= 4.5e-135) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (a <= 1.7e-85) tmp = Float64(-60.0 / Float64(z / y)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.2e-94) tmp = a * 120.0; elseif (a <= 4.5e-135) tmp = 60.0 * (x / (z - t)); elseif (a <= 1.7e-85) tmp = -60.0 / (z / y); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.2e-94], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 4.5e-135], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e-85], N[(-60.0 / N[(z / y), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{-94}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-135}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-85}:\\
\;\;\;\;\frac{-60}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -3.19999999999999997e-94 or 1.7e-85 < a Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 65.9%
if -3.19999999999999997e-94 < a < 4.49999999999999987e-135Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
+-commutative99.6%
fma-define99.6%
clear-num99.5%
un-div-inv99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 49.8%
if 4.49999999999999987e-135 < a < 1.7e-85Initial program 99.7%
associate-/l*99.4%
Simplified99.4%
+-commutative99.4%
fma-define99.4%
clear-num99.7%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in a around 0 81.8%
associate-*r/82.0%
associate-*l/82.0%
metadata-eval82.0%
associate-*r/82.2%
*-commutative82.2%
associate-*r/82.0%
metadata-eval82.0%
Simplified82.0%
Taylor expanded in z around inf 65.1%
Taylor expanded in x around 0 56.4%
associate-*r/56.4%
remove-double-neg56.4%
distribute-neg-frac256.4%
distribute-frac-neg56.4%
distribute-frac-neg256.4%
distribute-neg-frac56.4%
*-commutative56.4%
distribute-rgt-neg-in56.4%
metadata-eval56.4%
distribute-lft-neg-out56.4%
associate-*r/56.6%
*-commutative56.6%
distribute-rgt-neg-out56.6%
distribute-lft-neg-in56.6%
distribute-neg-frac56.6%
metadata-eval56.6%
associate-/r/56.6%
Simplified56.6%
Final simplification60.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -20.5) (not (<= a 4.9e+30))) (* a 120.0) (* 60.0 (/ (- x y) (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -20.5) || !(a <= 4.9e+30)) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((x - y) / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-20.5d0)) .or. (.not. (a <= 4.9d+30))) then
tmp = a * 120.0d0
else
tmp = 60.0d0 * ((x - y) / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -20.5) || !(a <= 4.9e+30)) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((x - y) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -20.5) or not (a <= 4.9e+30): tmp = a * 120.0 else: tmp = 60.0 * ((x - y) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -20.5) || !(a <= 4.9e+30)) tmp = Float64(a * 120.0); else tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -20.5) || ~((a <= 4.9e+30))) tmp = a * 120.0; else tmp = 60.0 * ((x - y) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -20.5], N[Not[LessEqual[a, 4.9e+30]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -20.5 \lor \neg \left(a \leq 4.9 \cdot 10^{+30}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\end{array}
\end{array}
if a < -20.5 or 4.89999999999999984e30 < a Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
fma-define99.9%
sub-neg99.9%
+-commutative99.9%
neg-sub099.9%
associate-+l-99.9%
sub0-neg99.9%
distribute-frac-neg299.9%
distribute-neg-frac99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around inf 73.7%
if -20.5 < a < 4.89999999999999984e30Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 77.7%
Final simplification75.8%
(FPCore (x y z t a) :precision binary64 (+ (* a 120.0) (* (- x y) (/ 60.0 (- z t)))))
double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + ((x - y) * (60.0 / (z - t)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (a * 120.0d0) + ((x - y) * (60.0d0 / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + ((x - y) * (60.0 / (z - t)));
}
def code(x, y, z, t, a): return (a * 120.0) + ((x - y) * (60.0 / (z - t)))
function code(x, y, z, t, a) return Float64(Float64(a * 120.0) + Float64(Float64(x - y) * Float64(60.0 / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = (a * 120.0) + ((x - y) * (60.0 / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(N[(a * 120.0), $MachinePrecision] + N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120 + \left(x - y\right) \cdot \frac{60}{z - t}
\end{array}
Initial program 99.8%
*-commutative99.8%
associate-/l*99.8%
Applied egg-rr99.8%
Final simplification99.8%
(FPCore (x y z t a) :precision binary64 (+ (* a 120.0) (* 60.0 (/ (- x y) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 * ((x - y) / (z - t)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (a * 120.0d0) + (60.0d0 * ((x - y) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 * ((x - y) / (z - t)));
}
def code(x, y, z, t, a): return (a * 120.0) + (60.0 * ((x - y) / (z - t)))
function code(x, y, z, t, a) return Float64(Float64(a * 120.0) + Float64(60.0 * Float64(Float64(x - y) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = (a * 120.0) + (60.0 * ((x - y) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120 + 60 \cdot \frac{x - y}{z - t}
\end{array}
Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z t a) :precision binary64 (if (<= x 7.6e+205) (* a 120.0) (/ -60.0 (/ t x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 7.6e+205) {
tmp = a * 120.0;
} else {
tmp = -60.0 / (t / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= 7.6d+205) then
tmp = a * 120.0d0
else
tmp = (-60.0d0) / (t / x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 7.6e+205) {
tmp = a * 120.0;
} else {
tmp = -60.0 / (t / x);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= 7.6e+205: tmp = a * 120.0 else: tmp = -60.0 / (t / x) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= 7.6e+205) tmp = Float64(a * 120.0); else tmp = Float64(-60.0 / Float64(t / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= 7.6e+205) tmp = a * 120.0; else tmp = -60.0 / (t / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, 7.6e+205], N[(a * 120.0), $MachinePrecision], N[(-60.0 / N[(t / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 7.6 \cdot 10^{+205}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{-60}{\frac{t}{x}}\\
\end{array}
\end{array}
if x < 7.6000000000000001e205Initial program 99.8%
*-commutative99.8%
associate-/l*99.8%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 50.0%
if 7.6000000000000001e205 < x Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
+-commutative99.7%
fma-define99.7%
clear-num99.6%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in x around inf 84.9%
Taylor expanded in z around 0 56.6%
clear-num56.6%
un-div-inv56.7%
Applied egg-rr56.7%
Final simplification50.5%
(FPCore (x y z t a) :precision binary64 (if (<= x 5.3e+191) (* a 120.0) (* x (/ -60.0 t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 5.3e+191) {
tmp = a * 120.0;
} else {
tmp = x * (-60.0 / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= 5.3d+191) then
tmp = a * 120.0d0
else
tmp = x * ((-60.0d0) / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 5.3e+191) {
tmp = a * 120.0;
} else {
tmp = x * (-60.0 / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= 5.3e+191: tmp = a * 120.0 else: tmp = x * (-60.0 / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= 5.3e+191) tmp = Float64(a * 120.0); else tmp = Float64(x * Float64(-60.0 / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= 5.3e+191) tmp = a * 120.0; else tmp = x * (-60.0 / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, 5.3e+191], N[(a * 120.0), $MachinePrecision], N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 5.3 \cdot 10^{+191}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{-60}{t}\\
\end{array}
\end{array}
if x < 5.30000000000000031e191Initial program 99.8%
*-commutative99.8%
associate-/l*99.8%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 50.0%
if 5.30000000000000031e191 < x Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
+-commutative99.7%
fma-define99.7%
clear-num99.6%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in x around inf 84.9%
Taylor expanded in z around 0 56.6%
clear-num56.6%
un-div-inv56.7%
Applied egg-rr56.7%
associate-/r/56.6%
Simplified56.6%
Final simplification50.5%
(FPCore (x y z t a) :precision binary64 (if (<= x 2.3e+206) (* a 120.0) (* -60.0 (/ x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 2.3e+206) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (x / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= 2.3d+206) then
tmp = a * 120.0d0
else
tmp = (-60.0d0) * (x / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 2.3e+206) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (x / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= 2.3e+206: tmp = a * 120.0 else: tmp = -60.0 * (x / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= 2.3e+206) tmp = Float64(a * 120.0); else tmp = Float64(-60.0 * Float64(x / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= 2.3e+206) tmp = a * 120.0; else tmp = -60.0 * (x / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, 2.3e+206], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.3 \cdot 10^{+206}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{x}{t}\\
\end{array}
\end{array}
if x < 2.30000000000000016e206Initial program 99.8%
*-commutative99.8%
associate-/l*99.8%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 50.0%
if 2.30000000000000016e206 < x Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
+-commutative99.7%
fma-define99.7%
clear-num99.6%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in x around inf 84.9%
Taylor expanded in z around 0 56.6%
Final simplification50.5%
(FPCore (x y z t a) :precision binary64 (* a 120.0))
double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = a * 120.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
def code(x, y, z, t, a): return a * 120.0
function code(x, y, z, t, a) return Float64(a * 120.0) end
function tmp = code(x, y, z, t, a) tmp = a * 120.0; end
code[x_, y_, z_, t_, a_] := N[(a * 120.0), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120
\end{array}
Initial program 99.8%
*-commutative99.8%
associate-/l*99.8%
fma-define99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
distribute-frac-neg299.8%
distribute-neg-frac99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in t around inf 47.1%
Final simplification47.1%
(FPCore (x y z t a) :precision binary64 (+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (60.0d0 / ((z - t) / (x - y))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
def code(x, y, z, t, a): return (60.0 / ((z - t) / (x - y))) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = (60.0 / ((z - t) / (x - y))) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60}{\frac{z - t}{x - y}} + a \cdot 120
\end{array}
herbie shell --seed 2024170
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:alt
(! :herbie-platform default (+ (/ 60 (/ (- z t) (- x y))) (* a 120)))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))