
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (a - 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 = x + ((y * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (a - 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 = x + ((y * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (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 = x + (y / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
Initial program 84.0%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6498.2%
Applied egg-rr98.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3.8e-80)
(+ x y)
(if (<= t -1.1e-166)
(/ z (- 0.0 (/ t y)))
(if (<= t -8.6e-304) x (if (<= t 1.4e-161) (* y (/ z a)) (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e-80) {
tmp = x + y;
} else if (t <= -1.1e-166) {
tmp = z / (0.0 - (t / y));
} else if (t <= -8.6e-304) {
tmp = x;
} else if (t <= 1.4e-161) {
tmp = y * (z / a);
} else {
tmp = x + y;
}
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 (t <= (-3.8d-80)) then
tmp = x + y
else if (t <= (-1.1d-166)) then
tmp = z / (0.0d0 - (t / y))
else if (t <= (-8.6d-304)) then
tmp = x
else if (t <= 1.4d-161) then
tmp = y * (z / a)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.8e-80) {
tmp = x + y;
} else if (t <= -1.1e-166) {
tmp = z / (0.0 - (t / y));
} else if (t <= -8.6e-304) {
tmp = x;
} else if (t <= 1.4e-161) {
tmp = y * (z / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.8e-80: tmp = x + y elif t <= -1.1e-166: tmp = z / (0.0 - (t / y)) elif t <= -8.6e-304: tmp = x elif t <= 1.4e-161: tmp = y * (z / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.8e-80) tmp = Float64(x + y); elseif (t <= -1.1e-166) tmp = Float64(z / Float64(0.0 - Float64(t / y))); elseif (t <= -8.6e-304) tmp = x; elseif (t <= 1.4e-161) tmp = Float64(y * Float64(z / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.8e-80) tmp = x + y; elseif (t <= -1.1e-166) tmp = z / (0.0 - (t / y)); elseif (t <= -8.6e-304) tmp = x; elseif (t <= 1.4e-161) tmp = y * (z / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.8e-80], N[(x + y), $MachinePrecision], If[LessEqual[t, -1.1e-166], N[(z / N[(0.0 - N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.6e-304], x, If[LessEqual[t, 1.4e-161], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{-80}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-166}:\\
\;\;\;\;\frac{z}{0 - \frac{t}{y}}\\
\mathbf{elif}\;t \leq -8.6 \cdot 10^{-304}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-161}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -3.79999999999999967e-80 or 1.39999999999999996e-161 < t Initial program 80.1%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6466.6%
Simplified66.6%
if -3.79999999999999967e-80 < t < -1.1000000000000001e-166Initial program 95.3%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6463.6%
Simplified63.6%
Taylor expanded in a around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f6443.9%
Simplified43.9%
associate-*r/N/A
sub0-negN/A
distribute-frac-neg2N/A
neg-lowering-neg.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6452.8%
Applied egg-rr52.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6453.3%
Applied egg-rr53.3%
if -1.1000000000000001e-166 < t < -8.6000000000000006e-304Initial program 99.9%
Taylor expanded in x around inf
Simplified75.9%
if -8.6000000000000006e-304 < t < 1.39999999999999996e-161Initial program 88.0%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6463.0%
Simplified63.0%
Taylor expanded in a around inf
Simplified63.0%
Final simplification65.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.02e+89)
(+ x y)
(if (<= t -4.8e-5)
(- x (/ (* y z) t))
(if (<= t 1100000.0) (+ x (/ y (/ a (- z t)))) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.02e+89) {
tmp = x + y;
} else if (t <= -4.8e-5) {
tmp = x - ((y * z) / t);
} else if (t <= 1100000.0) {
tmp = x + (y / (a / (z - t)));
} else {
tmp = x + y;
}
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 (t <= (-1.02d+89)) then
tmp = x + y
else if (t <= (-4.8d-5)) then
tmp = x - ((y * z) / t)
else if (t <= 1100000.0d0) then
tmp = x + (y / (a / (z - t)))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.02e+89) {
tmp = x + y;
} else if (t <= -4.8e-5) {
tmp = x - ((y * z) / t);
} else if (t <= 1100000.0) {
tmp = x + (y / (a / (z - t)));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.02e+89: tmp = x + y elif t <= -4.8e-5: tmp = x - ((y * z) / t) elif t <= 1100000.0: tmp = x + (y / (a / (z - t))) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.02e+89) tmp = Float64(x + y); elseif (t <= -4.8e-5) tmp = Float64(x - Float64(Float64(y * z) / t)); elseif (t <= 1100000.0) tmp = Float64(x + Float64(y / Float64(a / Float64(z - t)))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.02e+89) tmp = x + y; elseif (t <= -4.8e-5) tmp = x - ((y * z) / t); elseif (t <= 1100000.0) tmp = x + (y / (a / (z - t))); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.02e+89], N[(x + y), $MachinePrecision], If[LessEqual[t, -4.8e-5], N[(x - N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1100000.0], N[(x + N[(y / N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{+89}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-5}:\\
\;\;\;\;x - \frac{y \cdot z}{t}\\
\mathbf{elif}\;t \leq 1100000:\\
\;\;\;\;x + \frac{y}{\frac{a}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.0199999999999999e89 or 1.1e6 < t Initial program 70.0%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6476.6%
Simplified76.6%
if -1.0199999999999999e89 < t < -4.8000000000000001e-5Initial program 95.0%
Taylor expanded in z around inf
*-lowering-*.f6485.5%
Simplified85.5%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6480.8%
Simplified80.8%
if -4.8000000000000001e-5 < t < 1.1e6Initial program 94.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6496.5%
Applied egg-rr96.5%
Taylor expanded in a around inf
/-lowering-/.f64N/A
--lowering--.f6479.6%
Simplified79.6%
Final simplification78.4%
(FPCore (x y z t a)
:precision binary64
(if (<= t -5.4e+31)
(+ x y)
(if (<= t 1.35e-125)
(+ x (/ (* y z) a))
(if (<= t 1.4e+97) (- x (/ (* y z) t)) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.4e+31) {
tmp = x + y;
} else if (t <= 1.35e-125) {
tmp = x + ((y * z) / a);
} else if (t <= 1.4e+97) {
tmp = x - ((y * z) / t);
} else {
tmp = x + y;
}
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 (t <= (-5.4d+31)) then
tmp = x + y
else if (t <= 1.35d-125) then
tmp = x + ((y * z) / a)
else if (t <= 1.4d+97) then
tmp = x - ((y * z) / t)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.4e+31) {
tmp = x + y;
} else if (t <= 1.35e-125) {
tmp = x + ((y * z) / a);
} else if (t <= 1.4e+97) {
tmp = x - ((y * z) / t);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.4e+31: tmp = x + y elif t <= 1.35e-125: tmp = x + ((y * z) / a) elif t <= 1.4e+97: tmp = x - ((y * z) / t) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.4e+31) tmp = Float64(x + y); elseif (t <= 1.35e-125) tmp = Float64(x + Float64(Float64(y * z) / a)); elseif (t <= 1.4e+97) tmp = Float64(x - Float64(Float64(y * z) / t)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.4e+31) tmp = x + y; elseif (t <= 1.35e-125) tmp = x + ((y * z) / a); elseif (t <= 1.4e+97) tmp = x - ((y * z) / t); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.4e+31], N[(x + y), $MachinePrecision], If[LessEqual[t, 1.35e-125], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+97], N[(x - N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.4 \cdot 10^{+31}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-125}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+97}:\\
\;\;\;\;x - \frac{y \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -5.39999999999999971e31 or 1.4e97 < t Initial program 67.1%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6478.8%
Simplified78.8%
if -5.39999999999999971e31 < t < 1.3499999999999999e-125Initial program 95.2%
Taylor expanded in t around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6480.5%
Simplified80.5%
if 1.3499999999999999e-125 < t < 1.4e97Initial program 94.6%
Taylor expanded in z around inf
*-lowering-*.f6473.4%
Simplified73.4%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6465.0%
Simplified65.0%
Final simplification76.6%
(FPCore (x y z t a) :precision binary64 (if (<= t -7.6e+39) (+ x (* y (- 1.0 (/ z t)))) (if (<= t 1.7) (+ x (/ (* y z) (- a t))) (+ x (* t (/ y (- t a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.6e+39) {
tmp = x + (y * (1.0 - (z / t)));
} else if (t <= 1.7) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (t * (y / (t - a)));
}
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 (t <= (-7.6d+39)) then
tmp = x + (y * (1.0d0 - (z / t)))
else if (t <= 1.7d0) then
tmp = x + ((y * z) / (a - t))
else
tmp = x + (t * (y / (t - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.6e+39) {
tmp = x + (y * (1.0 - (z / t)));
} else if (t <= 1.7) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + (t * (y / (t - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.6e+39: tmp = x + (y * (1.0 - (z / t))) elif t <= 1.7: tmp = x + ((y * z) / (a - t)) else: tmp = x + (t * (y / (t - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.6e+39) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(z / t)))); elseif (t <= 1.7) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x + Float64(t * Float64(y / Float64(t - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.6e+39) tmp = x + (y * (1.0 - (z / t))); elseif (t <= 1.7) tmp = x + ((y * z) / (a - t)); else tmp = x + (t * (y / (t - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.6e+39], N[(x + N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.6 \cdot 10^{+39}:\\
\;\;\;\;x + y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{elif}\;t \leq 1.7:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{t - a}\\
\end{array}
\end{array}
if t < -7.5999999999999996e39Initial program 61.5%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
div-subN/A
sub-negN/A
*-inversesN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f6490.0%
Simplified90.0%
if -7.5999999999999996e39 < t < 1.69999999999999996Initial program 94.9%
Taylor expanded in z around inf
*-lowering-*.f6489.1%
Simplified89.1%
if 1.69999999999999996 < t Initial program 78.4%
Taylor expanded in z around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6485.3%
Simplified85.3%
Final simplification88.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (* t (/ y (- t a)))))) (if (<= t -4e+86) t_1 (if (<= t 1.7) (+ x (/ (* y z) (- a t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / (t - a)));
double tmp;
if (t <= -4e+86) {
tmp = t_1;
} else if (t <= 1.7) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = x + (t * (y / (t - a)))
if (t <= (-4d+86)) then
tmp = t_1
else if (t <= 1.7d0) then
tmp = x + ((y * z) / (a - t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * (y / (t - a)));
double tmp;
if (t <= -4e+86) {
tmp = t_1;
} else if (t <= 1.7) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (t * (y / (t - a))) tmp = 0 if t <= -4e+86: tmp = t_1 elif t <= 1.7: tmp = x + ((y * z) / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(y / Float64(t - a)))) tmp = 0.0 if (t <= -4e+86) tmp = t_1; elseif (t <= 1.7) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (t * (y / (t - a))); tmp = 0.0; if (t <= -4e+86) tmp = t_1; elseif (t <= 1.7) tmp = x + ((y * z) / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+86], t$95$1, If[LessEqual[t, 1.7], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y}{t - a}\\
\mathbf{if}\;t \leq -4 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.7:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.0000000000000001e86 or 1.69999999999999996 < t Initial program 70.5%
Taylor expanded in z around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6486.7%
Simplified86.7%
if -4.0000000000000001e86 < t < 1.69999999999999996Initial program 94.6%
Taylor expanded in z around inf
*-lowering-*.f6487.7%
Simplified87.7%
Final simplification87.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -3.5e+92) (+ x y) (if (<= t 4.6e+124) (+ x (/ (* y z) (- a t))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.5e+92) {
tmp = x + y;
} else if (t <= 4.6e+124) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + y;
}
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 (t <= (-3.5d+92)) then
tmp = x + y
else if (t <= 4.6d+124) then
tmp = x + ((y * z) / (a - t))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3.5e+92) {
tmp = x + y;
} else if (t <= 4.6e+124) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3.5e+92: tmp = x + y elif t <= 4.6e+124: tmp = x + ((y * z) / (a - t)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3.5e+92) tmp = Float64(x + y); elseif (t <= 4.6e+124) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3.5e+92) tmp = x + y; elseif (t <= 4.6e+124) tmp = x + ((y * z) / (a - t)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3.5e+92], N[(x + y), $MachinePrecision], If[LessEqual[t, 4.6e+124], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+92}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{+124}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -3.49999999999999986e92 or 4.59999999999999969e124 < t Initial program 61.7%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6482.0%
Simplified82.0%
if -3.49999999999999986e92 < t < 4.59999999999999969e124Initial program 94.5%
Taylor expanded in z around inf
*-lowering-*.f6483.9%
Simplified83.9%
Final simplification83.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.46e+30) (+ x y) (if (<= t 2.5e-10) (+ x (/ (* y z) a)) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.46e+30) {
tmp = x + y;
} else if (t <= 2.5e-10) {
tmp = x + ((y * z) / a);
} else {
tmp = x + y;
}
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 (t <= (-2.46d+30)) then
tmp = x + y
else if (t <= 2.5d-10) then
tmp = x + ((y * z) / a)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.46e+30) {
tmp = x + y;
} else if (t <= 2.5e-10) {
tmp = x + ((y * z) / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.46e+30: tmp = x + y elif t <= 2.5e-10: tmp = x + ((y * z) / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.46e+30) tmp = Float64(x + y); elseif (t <= 2.5e-10) tmp = Float64(x + Float64(Float64(y * z) / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.46e+30) tmp = x + y; elseif (t <= 2.5e-10) tmp = x + ((y * z) / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.46e+30], N[(x + y), $MachinePrecision], If[LessEqual[t, 2.5e-10], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.46 \cdot 10^{+30}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-10}:\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -2.4599999999999999e30 or 2.50000000000000016e-10 < t Initial program 72.9%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6472.8%
Simplified72.8%
if -2.4599999999999999e30 < t < 2.50000000000000016e-10Initial program 95.4%
Taylor expanded in t around 0
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6476.0%
Simplified76.0%
Final simplification74.4%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* z (/ y (- a t))))) (if (<= z -1.05e+28) t_1 (if (<= z 2.4e+204) (+ x y) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * (y / (a - t));
double tmp;
if (z <= -1.05e+28) {
tmp = t_1;
} else if (z <= 2.4e+204) {
tmp = x + y;
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = z * (y / (a - t))
if (z <= (-1.05d+28)) then
tmp = t_1
else if (z <= 2.4d+204) then
tmp = x + y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = z * (y / (a - t));
double tmp;
if (z <= -1.05e+28) {
tmp = t_1;
} else if (z <= 2.4e+204) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * (y / (a - t)) tmp = 0 if z <= -1.05e+28: tmp = t_1 elif z <= 2.4e+204: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(y / Float64(a - t))) tmp = 0.0 if (z <= -1.05e+28) tmp = t_1; elseif (z <= 2.4e+204) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * (y / (a - t)); tmp = 0.0; if (z <= -1.05e+28) tmp = t_1; elseif (z <= 2.4e+204) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.05e+28], t$95$1, If[LessEqual[z, 2.4e+204], N[(x + y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{y}{a - t}\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+204}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.04999999999999995e28 or 2.4e204 < z Initial program 84.4%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6458.0%
Simplified58.0%
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6459.5%
Applied egg-rr59.5%
if -1.04999999999999995e28 < z < 2.4e204Initial program 83.8%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6469.4%
Simplified69.4%
Final simplification66.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* y (/ z (- a t))))) (if (<= z -3.8e+37) t_1 (if (<= z 1.2e+204) (+ x y) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / (a - t));
double tmp;
if (z <= -3.8e+37) {
tmp = t_1;
} else if (z <= 1.2e+204) {
tmp = x + y;
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = y * (z / (a - t))
if (z <= (-3.8d+37)) then
tmp = t_1
else if (z <= 1.2d+204) then
tmp = x + y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / (a - t));
double tmp;
if (z <= -3.8e+37) {
tmp = t_1;
} else if (z <= 1.2e+204) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / (a - t)) tmp = 0 if z <= -3.8e+37: tmp = t_1 elif z <= 1.2e+204: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / Float64(a - t))) tmp = 0.0 if (z <= -3.8e+37) tmp = t_1; elseif (z <= 1.2e+204) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / (a - t)); tmp = 0.0; if (z <= -3.8e+37) tmp = t_1; elseif (z <= 1.2e+204) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+37], t$95$1, If[LessEqual[z, 1.2e+204], N[(x + y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a - t}\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+204}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.7999999999999999e37 or 1.2e204 < z Initial program 84.4%
Taylor expanded in z around inf
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6458.0%
Simplified58.0%
if -3.7999999999999999e37 < z < 1.2e204Initial program 83.8%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6469.4%
Simplified69.4%
Final simplification65.7%
(FPCore (x y z t a) :precision binary64 (if (<= x -1.28e-101) (+ x y) (if (<= x 1.45e+18) (* y (- 1.0 (/ z t))) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.28e-101) {
tmp = x + y;
} else if (x <= 1.45e+18) {
tmp = y * (1.0 - (z / t));
} else {
tmp = 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 <= (-1.28d-101)) then
tmp = x + y
else if (x <= 1.45d+18) then
tmp = y * (1.0d0 - (z / t))
else
tmp = 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 <= -1.28e-101) {
tmp = x + y;
} else if (x <= 1.45e+18) {
tmp = y * (1.0 - (z / t));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.28e-101: tmp = x + y elif x <= 1.45e+18: tmp = y * (1.0 - (z / t)) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.28e-101) tmp = Float64(x + y); elseif (x <= 1.45e+18) tmp = Float64(y * Float64(1.0 - Float64(z / t))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.28e-101) tmp = x + y; elseif (x <= 1.45e+18) tmp = y * (1.0 - (z / t)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.28e-101], N[(x + y), $MachinePrecision], If[LessEqual[x, 1.45e+18], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.28 \cdot 10^{-101}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+18}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -1.27999999999999995e-101Initial program 86.2%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6470.9%
Simplified70.9%
if -1.27999999999999995e-101 < x < 1.45e18Initial program 81.4%
Taylor expanded in a around 0
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
div-subN/A
sub-negN/A
*-inversesN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f6460.4%
Simplified60.4%
Taylor expanded in x around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
mul-1-negN/A
sub-negN/A
--lowering--.f64N/A
/-lowering-/.f6450.2%
Simplified50.2%
if 1.45e18 < x Initial program 85.3%
Taylor expanded in x around inf
Simplified77.2%
Final simplification63.6%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - 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 = x + (y * ((z - t) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
Initial program 84.0%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6498.2%
Applied egg-rr98.2%
Final simplification98.2%
(FPCore (x y z t a) :precision binary64 (+ x (* (- z t) (/ y (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + ((z - t) * (y / (a - 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 = x + ((z - t) * (y / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((z - t) * (y / (a - t)));
}
def code(x, y, z, t, a): return x + ((z - t) * (y / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((z - t) * (y / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(z - t\right) \cdot \frac{y}{a - t}
\end{array}
Initial program 84.0%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6497.5%
Applied egg-rr97.5%
Final simplification97.5%
(FPCore (x y z t a) :precision binary64 (if (<= a 6.6e+58) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= 6.6e+58) {
tmp = x + y;
} else {
tmp = 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 (a <= 6.6d+58) then
tmp = x + y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= 6.6e+58) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= 6.6e+58: tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= 6.6e+58) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= 6.6e+58) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, 6.6e+58], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.6 \cdot 10^{+58}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < 6.59999999999999966e58Initial program 85.6%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6460.6%
Simplified60.6%
if 6.59999999999999966e58 < a Initial program 79.0%
Taylor expanded in x around inf
Simplified61.6%
Final simplification60.8%
(FPCore (x y z t a) :precision binary64 (if (<= y -9e+28) y x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -9e+28) {
tmp = y;
} else {
tmp = 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 <= (-9d+28)) then
tmp = y
else
tmp = 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 <= -9e+28) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -9e+28: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -9e+28) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -9e+28) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -9e+28], y, x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+28}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -8.9999999999999994e28Initial program 77.8%
Taylor expanded in t around inf
+-commutativeN/A
+-lowering-+.f6447.3%
Simplified47.3%
Taylor expanded in y around inf
Simplified34.5%
if -8.9999999999999994e28 < y Initial program 85.9%
Taylor expanded in x around inf
Simplified57.8%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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 = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 84.0%
Taylor expanded in x around inf
Simplified49.3%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (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 = x + (y / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
herbie shell --seed 2024138
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"
:precision binary64
:alt
(! :herbie-platform default (+ x (/ y (/ (- a t) (- z t)))))
(+ x (/ (* y (- z t)) (- a t))))