
(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 18 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
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_2) 5e+305)
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_1))))))
(/ t_0 t_2)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x))))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 5e+305) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = x * (x + 43.3400022514d0)
t_2 = (x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((((x - 2.0d0) * (t_0 + z)) / t_2) <= 5d+305) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_1)))))) + (t_0 / t_2))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - ((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 5e+305) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = x * (x + 43.3400022514) t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_2) <= 5e+305: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2)) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(x * Float64(x + 43.3400022514)) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_2) <= 5e+305) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * 263.505074721) + Float64(x * t_1)))))) + Float64(t_0 / t_2))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = x * (x + 43.3400022514); t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_2) <= 5e+305) tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))) + (t_0 / t_2)); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 5e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / 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[(t$95$0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
t_2 := x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_2} \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot 263.505074721 + x \cdot t\_1\right)\right)} + \frac{t\_0}{t\_2}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{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.00000000000000009e305Initial program 93.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
distribute-lft-in98.9%
+-commutative98.9%
Applied egg-rr98.9%
if 5.00000000000000009e305 < (/.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.2%
associate-/l*4.8%
sub-neg4.8%
metadata-eval4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
Simplified4.8%
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%
mul-1-neg99.1%
unsub-neg99.1%
Simplified99.1%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 (- INFINITY))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= t_1 5e+305)
t_1
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x)))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 5e+305) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 5e+305) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif t_1 <= 5e+305: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = 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)) / t_0) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (t_1 <= 5e+305) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (t_1 <= 5e+305) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = 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] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+305], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := \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)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{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))) < -inf.0Initial program 4.1%
associate-/l*88.4%
sub-neg88.4%
metadata-eval88.4%
fma-define88.4%
fma-define88.4%
fma-define88.4%
fma-define88.4%
fma-define88.4%
fma-define88.4%
fma-define88.4%
Simplified88.4%
Taylor expanded in z around 0 88.4%
Taylor expanded in x around inf 88.4%
if -inf.0 < (/.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.00000000000000009e305Initial program 99.5%
if 5.00000000000000009e305 < (/.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.2%
associate-/l*4.8%
sub-neg4.8%
metadata-eval4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
Simplified4.8%
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%
mul-1-neg99.1%
unsub-neg99.1%
Simplified99.1%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 5e+305)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+305) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / 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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 5d+305) then
tmp = (x + (-2.0d0)) * ((t_1 / t_0) + (z / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - ((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+305) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 5e+305: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 5e+305) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+305) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = 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]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 5e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t\_1}{t\_0} + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{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.00000000000000009e305Initial program 93.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
if 5.00000000000000009e305 < (/.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.2%
associate-/l*4.8%
sub-neg4.8%
metadata-eval4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
fma-define4.8%
Simplified4.8%
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%
mul-1-neg99.1%
unsub-neg99.1%
Simplified99.1%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -1.2e+27)
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x)))
(if (<= x 4.4e+31)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.2e+27) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
} else if (x <= 4.4e+31) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / 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 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-1.2d+27)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - ((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x)) / x))
else if (x <= 4.4d+31) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.2e+27) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
} else if (x <= 4.4e+31) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -1.2e+27: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) elif x <= 4.4e+31: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 else: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -1.2e+27) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); elseif (x <= 4.4e+31) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -1.2e+27) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); elseif (x <= 4.4e+31) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; else tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[LessEqual[x, -1.2e+27], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.4e+31], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -1.2 \cdot 10^{+27}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{+31}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\end{array}
\end{array}
if x < -1.19999999999999999e27Initial program 7.8%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
mul-1-neg96.4%
unsub-neg96.4%
Simplified96.4%
if -1.19999999999999999e27 < x < 4.4000000000000002e31Initial program 98.8%
Taylor expanded in x around 0 96.9%
*-commutative96.9%
Simplified96.9%
if 4.4000000000000002e31 < x Initial program 6.3%
associate-/l*13.8%
sub-neg13.8%
metadata-eval13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
Simplified13.8%
Taylor expanded in z around 0 13.8%
Taylor expanded in x around inf 99.0%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.25e-5) (not (<= x 3.2e-7)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(+
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y))))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.25e-5) || !(x <= 3.2e-7)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (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 <= (-1.25d-5)) .or. (.not. (x <= 3.2d-7))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.25e-5) || !(x <= 3.2e-7)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.25e-5) or not (x <= 3.2e-7): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.25e-5) || !(x <= 3.2e-7)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); else tmp = Float64(Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y)))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.25e-5) || ~((x <= 3.2e-7))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.25e-5], N[Not[LessEqual[x, 3.2e-7]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / 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]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.25 \cdot 10^{-5} \lor \neg \left(x \leq 3.2 \cdot 10^{-7}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.25000000000000006e-5 or 3.2000000000000001e-7 < x Initial program 14.8%
associate-/l*24.2%
sub-neg24.2%
metadata-eval24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
Simplified24.2%
Taylor expanded in z around 0 24.2%
Taylor expanded in x around inf 93.2%
if -1.25000000000000006e-5 < x < 3.2000000000000001e-7Initial 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 y around inf 91.4%
Taylor expanded in x around 0 85.9%
associate-*r/86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in x around 0 93.5%
Final simplification93.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.058) (not (<= x 0.15)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.058) || !(x <= 0.15)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
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 <= (-0.058d0)) .or. (.not. (x <= 0.15d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.058) || !(x <= 0.15)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.058) or not (x <= 0.15): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.058) || !(x <= 0.15)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.058) || ~((x <= 0.15))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.058], N[Not[LessEqual[x, 0.15]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / 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]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.058 \lor \neg \left(x \leq 0.15\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\end{array}
\end{array}
if x < -0.0580000000000000029 or 0.149999999999999994 < x Initial program 14.2%
associate-/l*23.6%
sub-neg23.6%
metadata-eval23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
Simplified23.6%
Taylor expanded in z around 0 23.6%
Taylor expanded in x around inf 93.9%
if -0.0580000000000000029 < x < 0.149999999999999994Initial program 99.6%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Final simplification96.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (+ x 43.3400022514))))
(if (<= x -0.0125)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_0))))))))
(if (<= x 0.156)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(* x (+ (* x (+ t_0 263.505074721)) 313.399215894))
47.066876606))))))))
double code(double x, double y, double z) {
double t_0 = x * (x + 43.3400022514);
double tmp;
if (x <= -0.0125) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0)))))));
} else if (x <= 0.156) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
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 * (x + 43.3400022514d0)
if (x <= (-0.0125d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_0)))))))
else if (x <= 0.156d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * (t_0 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (x + 43.3400022514);
double tmp;
if (x <= -0.0125) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0)))))));
} else if (x <= 0.156) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): t_0 = x * (x + 43.3400022514) tmp = 0 if x <= -0.0125: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0))))))) elif x <= 0.156: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606))) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(x + 43.3400022514)) tmp = 0.0 if (x <= -0.0125) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * 263.505074721) + Float64(x * t_0)))))))); elseif (x <= 0.156) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (x + 43.3400022514); tmp = 0.0; if (x <= -0.0125) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0))))))); elseif (x <= 0.156) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.0125], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * 263.505074721), $MachinePrecision] + N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.156], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(t$95$0 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x + 43.3400022514\right)\\
\mathbf{if}\;x \leq -0.0125:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot 263.505074721 + x \cdot t\_0\right)\right)}\right)\\
\mathbf{elif}\;x \leq 0.156:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(t\_0 + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -0.012500000000000001Initial program 11.5%
associate-/l*23.2%
sub-neg23.2%
metadata-eval23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
fma-define23.2%
Simplified23.2%
Taylor expanded in z around 0 23.2%
Taylor expanded in x around inf 93.7%
distribute-lft-in23.2%
+-commutative23.2%
Applied egg-rr93.8%
if -0.012500000000000001 < x < 0.156Initial program 99.6%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
if 0.156 < x Initial program 17.6%
associate-/l*24.2%
sub-neg24.2%
metadata-eval24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
Simplified24.2%
Taylor expanded in z around 0 24.2%
Taylor expanded in x around inf 94.0%
Final simplification96.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1950.0) (not (<= x 2.25)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(-
101.7851458539211
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x))
x)))
(+
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y))))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1950.0) || !(x <= 2.25)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
} else {
tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (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 <= (-1950.0d0)) .or. (.not. (x <= 2.25d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 - ((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x)) / x))
else
tmp = (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1950.0) || !(x <= 2.25)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x));
} else {
tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1950.0) or not (x <= 2.25): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)) else: tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1950.0) || !(x <= 2.25)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 - Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x)) / x))); else tmp = Float64(Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y)))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1950.0) || ~((x <= 2.25))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 - ((3451.550173699799 - ((124074.40615218398 - y) / x)) / x)) / x)); else tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1950.0], N[Not[LessEqual[x, 2.25]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 - N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1950 \lor \neg \left(x \leq 2.25\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 - \frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1950 or 2.25 < x Initial program 13.5%
associate-/l*23.1%
sub-neg23.1%
metadata-eval23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
Simplified23.1%
Taylor expanded in x around -inf 92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
mul-1-neg92.8%
unsub-neg92.8%
Simplified92.8%
if -1950 < x < 2.25Initial program 99.5%
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 y around inf 90.9%
Taylor expanded in x around 0 84.6%
associate-*r/84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in x around 0 92.1%
Final simplification92.4%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 3.4e-7)
(+
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y))))
(* z -0.0424927283095952))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / 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) :: tmp
if (x <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 3.4d-7) then
tmp = (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y)))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 3.4e-7: tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 3.4e-7) tmp = Float64(Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y)))) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 3.4e-7) tmp = (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) + (z * -0.0424927283095952); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3.4e-7], N[(N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-7}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.6499999999999999e22Initial program 9.1%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
sub-neg91.0%
associate-*r/91.0%
metadata-eval91.0%
distribute-neg-frac91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in x around inf 91.0%
*-commutative91.0%
Simplified91.0%
if -1.6499999999999999e22 < x < 3.39999999999999974e-7Initial program 98.8%
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 y around inf 90.1%
Taylor expanded in x around 0 84.8%
associate-*r/84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in x around 0 91.5%
if 3.39999999999999974e-7 < x Initial program 19.0%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around -inf 87.2%
mul-1-neg87.2%
unsub-neg87.2%
sub-neg87.2%
associate-*r/87.2%
metadata-eval87.2%
distribute-neg-frac87.2%
metadata-eval87.2%
Simplified87.2%
Final simplification90.3%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 31.5)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))
(*
x
(+
4.16438922228
(/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 31.5) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -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 <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 31.5d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
else
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 31.5) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 31.5: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) else: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 31.5) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 31.5) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); else tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 31.5], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 31.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.6499999999999999e22Initial program 9.1%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
sub-neg91.0%
associate-*r/91.0%
metadata-eval91.0%
distribute-neg-frac91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in x around inf 91.0%
*-commutative91.0%
Simplified91.0%
if -1.6499999999999999e22 < x < 31.5Initial program 98.8%
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.0%
Taylor expanded in y around inf 89.9%
*-commutative89.9%
associate-*l*89.9%
*-commutative89.9%
Simplified89.9%
if 31.5 < x Initial program 17.6%
associate-/l*24.2%
sub-neg24.2%
metadata-eval24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
Simplified24.2%
Taylor expanded in z around 0 11.4%
Taylor expanded in x around inf 88.5%
associate--l+88.5%
unpow288.5%
associate-/r*88.5%
metadata-eval88.5%
associate-*r/88.5%
associate-*r/88.5%
metadata-eval88.5%
div-sub88.5%
sub-neg88.5%
associate-*r/88.5%
metadata-eval88.5%
metadata-eval88.5%
Simplified88.5%
Final simplification89.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 3.4e-7)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / 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) :: tmp
if (x <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 3.4d-7) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 3.4e-7: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 3.4e-7) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 3.4e-7) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3.4e-7], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-7}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.6499999999999999e22Initial program 9.1%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
sub-neg91.0%
associate-*r/91.0%
metadata-eval91.0%
distribute-neg-frac91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in x around inf 91.0%
*-commutative91.0%
Simplified91.0%
if -1.6499999999999999e22 < x < 3.39999999999999974e-7Initial program 98.8%
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.7%
Taylor expanded in y around inf 90.6%
*-commutative90.6%
associate-*l*90.6%
*-commutative90.6%
Simplified90.6%
if 3.39999999999999974e-7 < x Initial program 19.0%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around -inf 87.2%
mul-1-neg87.2%
unsub-neg87.2%
sub-neg87.2%
associate-*r/87.2%
metadata-eval87.2%
distribute-neg-frac87.2%
metadata-eval87.2%
Simplified87.2%
Final simplification89.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 2.0)
(* -0.0424927283095952 (+ z (* x y)))
(*
x
(+
4.16438922228
(/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -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 <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
else
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 2.0: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.6499999999999999e22Initial program 9.1%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
sub-neg91.0%
associate-*r/91.0%
metadata-eval91.0%
distribute-neg-frac91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in x around inf 91.0%
*-commutative91.0%
Simplified91.0%
if -1.6499999999999999e22 < x < 2Initial program 98.8%
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 y around inf 90.2%
Taylor expanded in x around 0 84.2%
associate-*r/84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in x around 0 89.9%
distribute-lft-out89.9%
Simplified89.9%
if 2 < x Initial program 17.6%
associate-/l*24.2%
sub-neg24.2%
metadata-eval24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
Simplified24.2%
Taylor expanded in z around 0 11.4%
Taylor expanded in x around inf 88.5%
associate--l+88.5%
unpow288.5%
associate-/r*88.5%
metadata-eval88.5%
associate-*r/88.5%
associate-*r/88.5%
metadata-eval88.5%
div-sub88.5%
sub-neg88.5%
associate-*r/88.5%
metadata-eval88.5%
metadata-eval88.5%
Simplified88.5%
Final simplification89.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 2e-112)
(* z -0.0424927283095952)
(if (<= x 2.0) (* x (* y -0.0424927283095952)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 2e-112) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = x * (y * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
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 <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 2d-112) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = x * (y * (-0.0424927283095952d0))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 2e-112) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = x * (y * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 2e-112: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = x * (y * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 2e-112) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = Float64(x * Float64(y * -0.0424927283095952)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 2e-112) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = x * (y * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2e-112], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-112}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1.6499999999999999e22 or 2 < x Initial program 12.9%
associate-/l*21.9%
sub-neg21.9%
metadata-eval21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
Simplified21.9%
Taylor expanded in x around -inf 89.9%
mul-1-neg89.9%
unsub-neg89.9%
sub-neg89.9%
associate-*r/89.9%
metadata-eval89.9%
distribute-neg-frac89.9%
metadata-eval89.9%
Simplified89.9%
Taylor expanded in x around inf 89.6%
*-commutative89.6%
Simplified89.6%
if -1.6499999999999999e22 < x < 1.9999999999999999e-112Initial program 98.7%
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 71.8%
*-commutative71.8%
Simplified71.8%
if 1.9999999999999999e-112 < x < 2Initial program 99.1%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 66.2%
Taylor expanded in x around 0 52.4%
*-commutative52.4%
associate-*r*52.5%
Simplified52.5%
Final simplification78.7%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 2e-112)
(* z -0.0424927283095952)
(if (<= x 3.4e-7)
(* x (* y -0.0424927283095952))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 2e-112) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.4e-7) {
tmp = x * (y * -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 <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 2d-112) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.4d-7) then
tmp = x * (y * (-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 <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 2e-112) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.4e-7) {
tmp = x * (y * -0.0424927283095952);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 2e-112: tmp = z * -0.0424927283095952 elif x <= 3.4e-7: tmp = x * (y * -0.0424927283095952) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 2e-112) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.4e-7) tmp = Float64(x * Float64(y * -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 <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 2e-112) tmp = z * -0.0424927283095952; elseif (x <= 3.4e-7) tmp = x * (y * -0.0424927283095952); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2e-112], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.4e-7], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-112}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-7}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -1.6499999999999999e22Initial program 9.1%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
sub-neg91.0%
associate-*r/91.0%
metadata-eval91.0%
distribute-neg-frac91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in x around inf 91.0%
*-commutative91.0%
Simplified91.0%
if -1.6499999999999999e22 < x < 1.9999999999999999e-112Initial program 98.7%
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 71.8%
*-commutative71.8%
Simplified71.8%
if 1.9999999999999999e-112 < x < 3.39999999999999974e-7Initial program 99.2%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 64.9%
Taylor expanded in x around 0 54.4%
*-commutative54.4%
associate-*r*54.4%
Simplified54.4%
if 3.39999999999999974e-7 < x Initial program 19.0%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 86.5%
Final simplification78.7%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 3.4e-7)
(* -0.0424927283095952 (+ z (* x y)))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = -0.0424927283095952 * (z + (x * y));
} 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 <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 3.4d-7) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
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 <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 3.4e-7: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 3.4e-7) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); 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 <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 3.4e-7) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3.4e-7], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-7}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -1.6499999999999999e22Initial program 9.1%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
sub-neg91.0%
associate-*r/91.0%
metadata-eval91.0%
distribute-neg-frac91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in x around inf 91.0%
*-commutative91.0%
Simplified91.0%
if -1.6499999999999999e22 < x < 3.39999999999999974e-7Initial program 98.8%
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 y around inf 90.1%
Taylor expanded in x around 0 84.8%
associate-*r/84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in x around 0 90.6%
distribute-lft-out90.6%
Simplified90.6%
if 3.39999999999999974e-7 < x Initial program 19.0%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 86.5%
Final simplification89.8%
(FPCore (x y z)
:precision binary64
(if (<= x -1.65e+22)
(* x 4.16438922228)
(if (<= x 3.4e-7)
(* -0.0424927283095952 (+ z (* x y)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = -0.0424927283095952 * (z + (x * y));
} 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 <= (-1.65d+22)) then
tmp = x * 4.16438922228d0
else if (x <= 3.4d-7) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
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 <= -1.65e+22) {
tmp = x * 4.16438922228;
} else if (x <= 3.4e-7) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.65e+22: tmp = x * 4.16438922228 elif x <= 3.4e-7: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.65e+22) tmp = Float64(x * 4.16438922228); elseif (x <= 3.4e-7) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); 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 <= -1.65e+22) tmp = x * 4.16438922228; elseif (x <= 3.4e-7) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.65e+22], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3.4e-7], N[(-0.0424927283095952 * N[(z + N[(x * y), $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 -1.65 \cdot 10^{+22}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-7}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.6499999999999999e22Initial program 9.1%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
sub-neg91.0%
associate-*r/91.0%
metadata-eval91.0%
distribute-neg-frac91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in x around inf 91.0%
*-commutative91.0%
Simplified91.0%
if -1.6499999999999999e22 < x < 3.39999999999999974e-7Initial program 98.8%
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 y around inf 90.1%
Taylor expanded in x around 0 84.8%
associate-*r/84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in x around 0 90.6%
distribute-lft-out90.6%
Simplified90.6%
if 3.39999999999999974e-7 < x Initial program 19.0%
associate-/l*25.5%
sub-neg25.5%
metadata-eval25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
fma-define25.5%
Simplified25.5%
Taylor expanded in x around inf 87.0%
associate-*r/87.0%
metadata-eval87.0%
Simplified87.0%
Final simplification89.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.65e+22) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.65e+22) || !(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 <= (-1.65d+22)) .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 <= -1.65e+22) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.65e+22) 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 <= -1.65e+22) || !(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 <= -1.65e+22) || ~((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, -1.65e+22], 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 -1.65 \cdot 10^{+22} \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.6499999999999999e22 or 2 < x Initial program 12.9%
associate-/l*21.9%
sub-neg21.9%
metadata-eval21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
fma-define21.9%
Simplified21.9%
Taylor expanded in x around -inf 89.9%
mul-1-neg89.9%
unsub-neg89.9%
sub-neg89.9%
associate-*r/89.9%
metadata-eval89.9%
distribute-neg-frac89.9%
metadata-eval89.9%
Simplified89.9%
Taylor expanded in x around inf 89.6%
*-commutative89.6%
Simplified89.6%
if -1.6499999999999999e22 < x < 2Initial program 98.8%
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 63.8%
*-commutative63.8%
Simplified63.8%
Final simplification76.6%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 56.2%
associate-/l*61.0%
sub-neg61.0%
metadata-eval61.0%
fma-define61.0%
fma-define61.0%
fma-define61.0%
fma-define61.0%
fma-define61.0%
fma-define61.0%
fma-define61.0%
Simplified61.0%
Taylor expanded in x around -inf 46.3%
mul-1-neg46.3%
unsub-neg46.3%
sub-neg46.3%
associate-*r/46.3%
metadata-eval46.3%
distribute-neg-frac46.3%
metadata-eval46.3%
Simplified46.3%
Taylor expanded in x around inf 46.0%
*-commutative46.0%
Simplified46.0%
Final simplification46.0%
(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 2024077
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (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))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- 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)))