
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
5e+300)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+300) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+300) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 5e+300], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 5 \cdot 10^{+300}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000026e300Initial program 96.5%
associate-/l*98.8%
sub-neg98.8%
metadata-eval98.8%
fma-define98.9%
fma-define98.8%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
if 5.00000000000000026e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*5.2%
sub-neg5.2%
metadata-eval5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
Simplified5.2%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Taylor expanded in x around inf 99.1%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z)))
(t_1 (* x (+ x 43.3400022514))))
(if (<=
(/
t_0
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606))
5e+300)
(/
t_0
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_1))))))
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z);
double t_1 = x * (x + 43.3400022514);
double tmp;
if ((t_0 / ((x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+300) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)
t_1 = x * (x + 43.3400022514d0)
if ((t_0 / ((x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) <= 5d+300) then
tmp = t_0 / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_1)))))
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z);
double t_1 = x * (x + 43.3400022514);
double tmp;
if ((t_0 / ((x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+300) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) t_1 = x * (x + 43.3400022514) tmp = 0 if (t_0 / ((x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+300: tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1))))) else: tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) t_1 = Float64(x * Float64(x + 43.3400022514)) tmp = 0.0 if (Float64(t_0 / Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+300) tmp = Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * 263.505074721) + Float64(x * t_1)))))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z); t_1 = x * (x + 43.3400022514); tmp = 0.0; if ((t_0 / ((x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+300) tmp = t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1))))); else tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$0 / N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 5e+300], N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * 263.505074721), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
\mathbf{if}\;\frac{t\_0}{x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 5 \cdot 10^{+300}:\\
\;\;\;\;\frac{t\_0}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot 263.505074721 + x \cdot t\_1\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000026e300Initial program 96.5%
Taylor expanded in x around 0 96.5%
+-commutative96.5%
+-commutative96.5%
fma-undefine96.5%
Simplified96.5%
fma-undefine96.5%
+-commutative96.5%
+-commutative96.5%
distribute-lft-in96.5%
+-commutative96.5%
Applied egg-rr96.5%
if 5.00000000000000026e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*5.2%
sub-neg5.2%
metadata-eval5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
Simplified5.2%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Taylor expanded in x around inf 99.1%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 5e+300)
t_0
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 5e+300) {
tmp = t_0;
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 5d+300) then
tmp = t_0
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 5e+300) {
tmp = t_0;
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 5e+300: tmp = t_0 else: tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 5e+300) tmp = t_0; else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 5e+300) tmp = t_0; else tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+300], t$95$0, N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq 5 \cdot 10^{+300}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000026e300Initial program 96.5%
if 5.00000000000000026e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*5.2%
sub-neg5.2%
metadata-eval5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
fma-define5.2%
Simplified5.2%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
neg-mul-199.1%
unsub-neg99.1%
Simplified99.1%
Taylor expanded in x around inf 99.1%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- 3451.550173699799 (/ (- 124074.40615218398 y) x))))
(if (<= x -1e+15)
(* x (+ 4.16438922228 (/ (- (/ t_0 x) 101.7851458539211) x)))
(if (<= x 210000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
(+ x -2.0)
(- 4.16438922228 (/ (- 101.7851458539211 (* t_0 (/ 1.0 x))) x)))))))
double code(double x, double y, double z) {
double t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x);
double tmp;
if (x <= -1e+15) {
tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x));
} else if (x <= 210000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 3451.550173699799d0 - ((124074.40615218398d0 - y) / x)
if (x <= (-1d+15)) then
tmp = x * (4.16438922228d0 + (((t_0 / x) - 101.7851458539211d0) / x))
else if (x <= 210000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - (t_0 * (1.0d0 / x))) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x);
double tmp;
if (x <= -1e+15) {
tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x));
} else if (x <= 210000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x));
}
return tmp;
}
def code(x, y, z): t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x) tmp = 0 if x <= -1e+15: tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x)) elif x <= 210000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x)) return tmp
function code(x, y, z) t_0 = Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) tmp = 0.0 if (x <= -1e+15) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(t_0 / x) - 101.7851458539211) / x))); elseif (x <= 210000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(t_0 * Float64(1.0 / x))) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x); tmp = 0.0; if (x <= -1e+15) tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x)); elseif (x <= 210000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1e+15], N[(x * N[(4.16438922228 + N[(N[(N[(t$95$0 / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 210000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(t$95$0 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 3451.550173699799 - \frac{124074.40615218398 - y}{x}\\
\mathbf{if}\;x \leq -1 \cdot 10^{+15}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{t\_0}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 210000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - t\_0 \cdot \frac{1}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1e15Initial program 10.3%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around -inf 97.0%
mul-1-neg97.0%
unsub-neg97.0%
mul-1-neg97.0%
unsub-neg97.0%
mul-1-neg97.0%
unsub-neg97.0%
neg-mul-197.0%
unsub-neg97.0%
Simplified97.0%
Taylor expanded in x around inf 97.0%
if -1e15 < x < 2.1e5Initial program 99.6%
Taylor expanded in x around 0 99.5%
*-commutative99.5%
Simplified99.5%
if 2.1e5 < x Initial program 15.3%
associate-/l*22.3%
sub-neg22.3%
metadata-eval22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around -inf 96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
mul-1-neg96.1%
unsub-neg96.1%
neg-mul-196.1%
unsub-neg96.1%
Simplified96.1%
div-inv96.1%
Applied egg-rr96.1%
Final simplification98.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- 3451.550173699799 (/ (- 124074.40615218398 y) x))))
(if (<= x -6500000000000.0)
(* x (+ 4.16438922228 (/ (- (/ t_0 x) 101.7851458539211) x)))
(if (<= x 0.16)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(*
x
(-
(+
(* y 0.0212463641547976)
(* x (- 2.9217875995295866 (* y 0.14147091005106402))))
(* z 0.14147091005106402)))))
(*
(+ x -2.0)
(- 4.16438922228 (/ (- 101.7851458539211 (* t_0 (/ 1.0 x))) x)))))))
double code(double x, double y, double z) {
double t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x);
double tmp;
if (x <= -6500000000000.0) {
tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x));
} else if (x <= 0.16) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402)))) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 3451.550173699799d0 - ((124074.40615218398d0 - y) / x)
if (x <= (-6500000000000.0d0)) then
tmp = x * (4.16438922228d0 + (((t_0 / x) - 101.7851458539211d0) / x))
else if (x <= 0.16d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (((y * 0.0212463641547976d0) + (x * (2.9217875995295866d0 - (y * 0.14147091005106402d0)))) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - (t_0 * (1.0d0 / x))) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x);
double tmp;
if (x <= -6500000000000.0) {
tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x));
} else if (x <= 0.16) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402)))) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x));
}
return tmp;
}
def code(x, y, z): t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x) tmp = 0 if x <= -6500000000000.0: tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x)) elif x <= 0.16: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402)))) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x)) return tmp
function code(x, y, z) t_0 = Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) tmp = 0.0 if (x <= -6500000000000.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(t_0 / x) - 101.7851458539211) / x))); elseif (x <= 0.16) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(Float64(y * 0.0212463641547976) + Float64(x * Float64(2.9217875995295866 - Float64(y * 0.14147091005106402)))) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(t_0 * Float64(1.0 / x))) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x); tmp = 0.0; if (x <= -6500000000000.0) tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x)); elseif (x <= 0.16) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402)))) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6500000000000.0], N[(x * N[(4.16438922228 + N[(N[(N[(t$95$0 / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.16], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(x * N[(2.9217875995295866 - N[(y * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(t$95$0 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 3451.550173699799 - \frac{124074.40615218398 - y}{x}\\
\mathbf{if}\;x \leq -6500000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{t\_0}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 0.16:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(\left(y \cdot 0.0212463641547976 + x \cdot \left(2.9217875995295866 - y \cdot 0.14147091005106402\right)\right) - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - t\_0 \cdot \frac{1}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.5e12Initial program 12.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around -inf 95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
neg-mul-195.2%
unsub-neg95.2%
Simplified95.2%
Taylor expanded in x around inf 95.2%
if -6.5e12 < x < 0.160000000000000003Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 98.5%
Taylor expanded in z around 0 98.2%
*-commutative98.2%
Simplified98.2%
if 0.160000000000000003 < x Initial program 16.5%
associate-/l*23.4%
sub-neg23.4%
metadata-eval23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
Simplified23.4%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
div-inv94.9%
Applied egg-rr94.9%
Final simplification96.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- 3451.550173699799 (/ (- 124074.40615218398 y) x))))
(if (<= x -6500000000000.0)
(* x (+ 4.16438922228 (/ (- (/ t_0 x) 101.7851458539211) x)))
(if (<= x 2.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(- 4.16438922228 (/ (- 101.7851458539211 (* t_0 (/ 1.0 x))) x)))))))
double code(double x, double y, double z) {
double t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x);
double tmp;
if (x <= -6500000000000.0) {
tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x));
} else if (x <= 2.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 3451.550173699799d0 - ((124074.40615218398d0 - y) / x)
if (x <= (-6500000000000.0d0)) then
tmp = x * (4.16438922228d0 + (((t_0 / x) - 101.7851458539211d0) / x))
else if (x <= 2.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - (t_0 * (1.0d0 / x))) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x);
double tmp;
if (x <= -6500000000000.0) {
tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x));
} else if (x <= 2.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x));
}
return tmp;
}
def code(x, y, z): t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x) tmp = 0 if x <= -6500000000000.0: tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x)) elif x <= 2.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x)) return tmp
function code(x, y, z) t_0 = Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) tmp = 0.0 if (x <= -6500000000000.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(t_0 / x) - 101.7851458539211) / x))); elseif (x <= 2.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(t_0 * Float64(1.0 / x))) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 3451.550173699799 - ((124074.40615218398 - y) / x); tmp = 0.0; if (x <= -6500000000000.0) tmp = x * (4.16438922228 + (((t_0 / x) - 101.7851458539211) / x)); elseif (x <= 2.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - (t_0 * (1.0 / x))) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6500000000000.0], N[(x * N[(4.16438922228 + N[(N[(N[(t$95$0 / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(t$95$0 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 3451.550173699799 - \frac{124074.40615218398 - y}{x}\\
\mathbf{if}\;x \leq -6500000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{t\_0}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - t\_0 \cdot \frac{1}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.5e12Initial program 12.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around -inf 95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
neg-mul-195.2%
unsub-neg95.2%
Simplified95.2%
Taylor expanded in x around inf 95.2%
if -6.5e12 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.0%
if 2 < x Initial program 16.5%
associate-/l*23.4%
sub-neg23.4%
metadata-eval23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
Simplified23.4%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
div-inv94.9%
Applied egg-rr94.9%
Final simplification93.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x))))
(if (<= x -6500000000000.0)
(* x t_0)
(if (<= x 2.2)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(* (+ x -2.0) t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -6500000000000.0) {
tmp = x * t_0;
} else if (x <= 2.2) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-6500000000000.0d0)) then
tmp = x * t_0
else if (x <= 2.2d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -6500000000000.0) {
tmp = x * t_0;
} else if (x <= 2.2) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -6500000000000.0: tmp = x * t_0 elif x <= 2.2: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -6500000000000.0) tmp = Float64(x * t_0); elseif (x <= 2.2) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -6500000000000.0) tmp = x * t_0; elseif (x <= 2.2) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6500000000000.0], N[(x * t$95$0), $MachinePrecision], If[LessEqual[x, 2.2], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -6500000000000:\\
\;\;\;\;x \cdot t\_0\\
\mathbf{elif}\;x \leq 2.2:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot t\_0\\
\end{array}
\end{array}
if x < -6.5e12Initial program 12.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around -inf 95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
neg-mul-195.2%
unsub-neg95.2%
Simplified95.2%
Taylor expanded in x around inf 95.2%
if -6.5e12 < x < 2.2000000000000002Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.0%
if 2.2000000000000002 < x Initial program 16.5%
associate-/l*23.4%
sub-neg23.4%
metadata-eval23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
Simplified23.4%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
Final simplification93.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -6500000000000.0) (not (<= x 3.6)))
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -6500000000000.0) || !(x <= 3.6)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-6500000000000.0d0)) .or. (.not. (x <= 3.6d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -6500000000000.0) || !(x <= 3.6)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -6500000000000.0) or not (x <= 3.6): tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -6500000000000.0) || !(x <= 3.6)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -6500000000000.0) || ~((x <= 3.6))) tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -6500000000000.0], N[Not[LessEqual[x, 3.6]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6500000000000 \lor \neg \left(x \leq 3.6\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -6.5e12 or 3.60000000000000009 < x Initial program 14.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.9%
fma-define21.9%
Simplified21.9%
Taylor expanded in x around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
neg-mul-195.0%
unsub-neg95.0%
Simplified95.0%
Taylor expanded in x around inf 94.1%
if -6.5e12 < x < 3.60000000000000009Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.0%
Final simplification93.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -44000000000000.0) (not (<= x 10.0)))
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(*
-2.0
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 10.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-44000000000000.0d0)) .or. (.not. (x <= 10.0d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (-2.0d0) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 10.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -44000000000000.0) or not (x <= 10.0): tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -44000000000000.0) || !(x <= 10.0)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(-2.0 * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -44000000000000.0) || ~((x <= 10.0))) tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -44000000000000.0], N[Not[LessEqual[x, 10.0]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-2.0 * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000 \lor \neg \left(x \leq 10\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -4.4e13 or 10 < x Initial program 13.9%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.1%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Taylor expanded in x around -inf 95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
neg-mul-195.8%
unsub-neg95.8%
Simplified95.8%
Taylor expanded in x around inf 94.8%
if -4.4e13 < x < 10Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.4%
Taylor expanded in x around 0 90.7%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(if (<= x -6500000000000.0)
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(if (<= x 0.18)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6500000000000.0) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.18) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6500000000000.0d0)) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 0.18d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6500000000000.0) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.18) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6500000000000.0: tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) elif x <= 0.18: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6500000000000.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 0.18) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6500000000000.0) tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 0.18) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6500000000000.0], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.18], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6500000000000:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 0.18:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -6.5e12Initial program 12.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around -inf 95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
neg-mul-195.2%
unsub-neg95.2%
Simplified95.2%
Taylor expanded in x around inf 95.2%
if -6.5e12 < x < 0.17999999999999999Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.0%
if 0.17999999999999999 < x Initial program 16.5%
associate-/l*23.4%
sub-neg23.4%
metadata-eval23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
Simplified23.4%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
Taylor expanded in y around inf 94.6%
mul-1-neg94.6%
distribute-neg-frac294.6%
Simplified94.6%
Final simplification93.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -44000000000000.0) (not (<= x 0.44)))
(/ (+ x -2.0) (+ (/ 5.86923874282773 x) 0.24013125253755718))
(*
-2.0
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 0.44)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-44000000000000.0d0)) .or. (.not. (x <= 0.44d0))) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + 0.24013125253755718d0)
else
tmp = (-2.0d0) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 0.44)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -44000000000000.0) or not (x <= 0.44): tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718) else: tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -44000000000000.0) || !(x <= 0.44)) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + 0.24013125253755718)); else tmp = Float64(-2.0 * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -44000000000000.0) || ~((x <= 0.44))) tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718); else tmp = -2.0 * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -44000000000000.0], N[Not[LessEqual[x, 0.44]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + 0.24013125253755718), $MachinePrecision]), $MachinePrecision], N[(-2.0 * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000 \lor \neg \left(x \leq 0.44\right):\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + 0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -4.4e13 or 0.440000000000000002 < x Initial program 13.9%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.1%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Applied egg-rr21.2%
unpow-121.2%
Simplified21.2%
Taylor expanded in x around inf 90.6%
associate-*r/90.6%
metadata-eval90.6%
Simplified90.6%
un-div-inv91.2%
Applied egg-rr91.2%
+-commutative91.2%
Simplified91.2%
if -4.4e13 < x < 0.440000000000000002Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.4%
Taylor expanded in x around 0 90.7%
Final simplification90.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -44000000000000.0) (not (<= x 300.0))) (/ (+ x -2.0) (+ (/ 5.86923874282773 x) 0.24013125253755718)) (* (+ x -2.0) (+ (* z 0.0212463641547976) (* 0.0212463641547976 (* x y))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 300.0)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-44000000000000.0d0)) .or. (.not. (x <= 300.0d0))) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + 0.24013125253755718d0)
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (0.0212463641547976d0 * (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 300.0)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -44000000000000.0) or not (x <= 300.0): tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -44000000000000.0) || !(x <= 300.0)) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + 0.24013125253755718)); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(0.0212463641547976 * Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -44000000000000.0) || ~((x <= 300.0))) tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -44000000000000.0], N[Not[LessEqual[x, 300.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + 0.24013125253755718), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000 \lor \neg \left(x \leq 300\right):\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + 0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -4.4e13 or 300 < x Initial program 13.2%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Applied egg-rr20.5%
unpow-120.5%
Simplified20.5%
Taylor expanded in x around inf 91.4%
associate-*r/91.4%
metadata-eval91.4%
Simplified91.4%
un-div-inv91.9%
Applied egg-rr91.9%
+-commutative91.9%
Simplified91.9%
if -4.4e13 < x < 300Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.9%
Taylor expanded in y around inf 90.0%
Final simplification90.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -44000000000000.0) (not (<= x 2050.0))) (/ (+ x -2.0) (+ (/ 5.86923874282773 x) 0.24013125253755718)) (* (+ x -2.0) (* 0.0212463641547976 (+ z (* x y))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 2050.0)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = (x + -2.0) * (0.0212463641547976 * (z + (x * y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-44000000000000.0d0)) .or. (.not. (x <= 2050.0d0))) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + 0.24013125253755718d0)
else
tmp = (x + (-2.0d0)) * (0.0212463641547976d0 * (z + (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 2050.0)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = (x + -2.0) * (0.0212463641547976 * (z + (x * y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -44000000000000.0) or not (x <= 2050.0): tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718) else: tmp = (x + -2.0) * (0.0212463641547976 * (z + (x * y))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -44000000000000.0) || !(x <= 2050.0)) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + 0.24013125253755718)); else tmp = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(z + Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -44000000000000.0) || ~((x <= 2050.0))) tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718); else tmp = (x + -2.0) * (0.0212463641547976 * (z + (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -44000000000000.0], N[Not[LessEqual[x, 2050.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + 0.24013125253755718), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000 \lor \neg \left(x \leq 2050\right):\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + 0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(z + x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -4.4e13 or 2050 < x Initial program 13.2%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Applied egg-rr20.5%
unpow-120.5%
Simplified20.5%
Taylor expanded in x around inf 91.4%
associate-*r/91.4%
metadata-eval91.4%
Simplified91.4%
un-div-inv91.9%
Applied egg-rr91.9%
+-commutative91.9%
Simplified91.9%
if -4.4e13 < x < 2050Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.9%
Taylor expanded in y around inf 90.0%
distribute-lft-out90.0%
Applied egg-rr90.0%
Final simplification90.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -44000000000000.0) (not (<= x 2.0))) (/ (+ x -2.0) (+ (/ 5.86923874282773 x) 0.24013125253755718)) (* -2.0 (+ (* z 0.0212463641547976) (* 0.0212463641547976 (* x y))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 2.0)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-44000000000000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + 0.24013125253755718d0)
else
tmp = (-2.0d0) * ((z * 0.0212463641547976d0) + (0.0212463641547976d0 * (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 2.0)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -44000000000000.0) or not (x <= 2.0): tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718) else: tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -44000000000000.0) || !(x <= 2.0)) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + 0.24013125253755718)); else tmp = Float64(-2.0 * Float64(Float64(z * 0.0212463641547976) + Float64(0.0212463641547976 * Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -44000000000000.0) || ~((x <= 2.0))) tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718); else tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -44000000000000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + 0.24013125253755718), $MachinePrecision]), $MachinePrecision], N[(-2.0 * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + 0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \left(z \cdot 0.0212463641547976 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -4.4e13 or 2 < x Initial program 13.9%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.1%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Applied egg-rr21.2%
unpow-121.2%
Simplified21.2%
Taylor expanded in x around inf 90.6%
associate-*r/90.6%
metadata-eval90.6%
Simplified90.6%
un-div-inv91.2%
Applied egg-rr91.2%
+-commutative91.2%
Simplified91.2%
if -4.4e13 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.4%
Taylor expanded in y around inf 90.5%
Taylor expanded in x around 0 90.5%
Final simplification90.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -44000000000000.0) (not (<= x 0.024))) (/ (+ x -2.0) (+ (/ 5.86923874282773 x) 0.24013125253755718)) (* (+ x -2.0) (/ 1.0 (/ 47.066876606 z)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 0.024)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = (x + -2.0) * (1.0 / (47.066876606 / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-44000000000000.0d0)) .or. (.not. (x <= 0.024d0))) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + 0.24013125253755718d0)
else
tmp = (x + (-2.0d0)) * (1.0d0 / (47.066876606d0 / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 0.024)) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718);
} else {
tmp = (x + -2.0) * (1.0 / (47.066876606 / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -44000000000000.0) or not (x <= 0.024): tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718) else: tmp = (x + -2.0) * (1.0 / (47.066876606 / z)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -44000000000000.0) || !(x <= 0.024)) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + 0.24013125253755718)); else tmp = Float64(Float64(x + -2.0) * Float64(1.0 / Float64(47.066876606 / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -44000000000000.0) || ~((x <= 0.024))) tmp = (x + -2.0) / ((5.86923874282773 / x) + 0.24013125253755718); else tmp = (x + -2.0) * (1.0 / (47.066876606 / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -44000000000000.0], N[Not[LessEqual[x, 0.024]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + 0.24013125253755718), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(1.0 / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000 \lor \neg \left(x \leq 0.024\right):\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + 0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{1}{\frac{47.066876606}{z}}\\
\end{array}
\end{array}
if x < -4.4e13 or 0.024 < x Initial program 13.9%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.1%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Applied egg-rr21.2%
unpow-121.2%
Simplified21.2%
Taylor expanded in x around inf 90.6%
associate-*r/90.6%
metadata-eval90.6%
Simplified90.6%
un-div-inv91.2%
Applied egg-rr91.2%
+-commutative91.2%
Simplified91.2%
if -4.4e13 < x < 0.024Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Applied egg-rr99.5%
unpow-199.5%
Simplified99.5%
Taylor expanded in x around 0 68.7%
Final simplification79.0%
(FPCore (x y z)
:precision binary64
(if (<= x -44000000000000.0)
(* x 4.16438922228)
(if (<= x 48.0)
(* (+ x -2.0) (/ 1.0 (/ 47.066876606 z)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -44000000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 48.0) {
tmp = (x + -2.0) * (1.0 / (47.066876606 / z));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-44000000000000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 48.0d0) then
tmp = (x + (-2.0d0)) * (1.0d0 / (47.066876606d0 / z))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -44000000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 48.0) {
tmp = (x + -2.0) * (1.0 / (47.066876606 / z));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -44000000000000.0: tmp = x * 4.16438922228 elif x <= 48.0: tmp = (x + -2.0) * (1.0 / (47.066876606 / z)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -44000000000000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 48.0) tmp = Float64(Float64(x + -2.0) * Float64(1.0 / Float64(47.066876606 / z))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -44000000000000.0) tmp = x * 4.16438922228; elseif (x <= 48.0) tmp = (x + -2.0) * (1.0 / (47.066876606 / z)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -44000000000000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 48.0], N[(N[(x + -2.0), $MachinePrecision] * N[(1.0 / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 48:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{1}{\frac{47.066876606}{z}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -4.4e13Initial program 10.3%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around inf 95.0%
*-commutative95.0%
Simplified95.0%
if -4.4e13 < x < 48Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Applied egg-rr99.5%
unpow-199.5%
Simplified99.5%
Taylor expanded in x around 0 68.2%
if 48 < x Initial program 15.3%
associate-/l*22.3%
sub-neg22.3%
metadata-eval22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around inf 88.6%
associate-*r/88.6%
metadata-eval88.6%
Simplified88.6%
(FPCore (x y z)
:precision binary64
(if (<= x -44000000000000.0)
(* x 4.16438922228)
(if (<= x 19.0)
(* z -0.0424927283095952)
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -44000000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 19.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-44000000000000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 19.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -44000000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 19.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -44000000000000.0: tmp = x * 4.16438922228 elif x <= 19.0: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -44000000000000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 19.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -44000000000000.0) tmp = x * 4.16438922228; elseif (x <= 19.0) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -44000000000000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 19.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 19:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -4.4e13Initial program 10.3%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around inf 95.0%
*-commutative95.0%
Simplified95.0%
if -4.4e13 < x < 19Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 68.1%
if 19 < x Initial program 15.3%
associate-/l*22.3%
sub-neg22.3%
metadata-eval22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around inf 88.6%
associate-*r/88.6%
metadata-eval88.6%
Simplified88.6%
Final simplification78.6%
(FPCore (x y z) :precision binary64 (if (<= x -44000000000000.0) (* x 4.16438922228) (if (<= x 1.0) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -44000000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 1.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-44000000000000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 1.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -44000000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 1.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -44000000000000.0: tmp = x * 4.16438922228 elif x <= 1.0: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -44000000000000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 1.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -44000000000000.0) tmp = x * 4.16438922228; elseif (x <= 1.0) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -44000000000000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -4.4e13Initial program 10.3%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
fma-define18.0%
fma-define18.0%
fma-define18.0%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around inf 95.0%
*-commutative95.0%
Simplified95.0%
if -4.4e13 < x < 1Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 68.6%
if 1 < x Initial program 16.5%
associate-/l*23.4%
sub-neg23.4%
metadata-eval23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
fma-define23.4%
Simplified23.4%
Taylor expanded in x around inf 86.0%
Final simplification78.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -44000000000000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-44000000000000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -44000000000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -44000000000000.0) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -44000000000000.0) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -44000000000000.0) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -44000000000000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -44000000000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -4.4e13 or 2 < x Initial program 13.9%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-define21.2%
fma-define21.1%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
fma-define21.2%
Simplified21.2%
Taylor expanded in x around inf 89.8%
*-commutative89.8%
Simplified89.8%
if -4.4e13 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 68.6%
Final simplification78.3%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 60.4%
associate-/l*63.7%
sub-neg63.7%
metadata-eval63.7%
fma-define63.7%
fma-define63.7%
fma-define63.7%
fma-define63.7%
fma-define63.7%
fma-define63.8%
fma-define63.8%
Simplified63.8%
Taylor expanded in x around 0 38.7%
Final simplification38.7%
(FPCore (x y z) :precision binary64 -110.1139242984811)
double code(double x, double y, double z) {
return -110.1139242984811;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -110.1139242984811d0
end function
public static double code(double x, double y, double z) {
return -110.1139242984811;
}
def code(x, y, z): return -110.1139242984811
function code(x, y, z) return -110.1139242984811 end
function tmp = code(x, y, z) tmp = -110.1139242984811; end
code[x_, y_, z_] := -110.1139242984811
\begin{array}{l}
\\
-110.1139242984811
\end{array}
Initial program 60.4%
associate-/l*63.7%
sub-neg63.7%
metadata-eval63.7%
fma-define63.7%
fma-define63.7%
fma-define63.7%
fma-define63.7%
fma-define63.7%
fma-define63.8%
fma-define63.8%
Simplified63.8%
Taylor expanded in y around inf 56.3%
Taylor expanded in x around inf 29.0%
associate-*r/29.0%
metadata-eval29.0%
associate-*r/29.0%
metadata-eval29.0%
associate-/r*29.0%
Simplified29.0%
Taylor expanded in x around 0 3.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024132
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))