
(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 23 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 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (or (<= x -145000000.0) (not (<= x 2.5e+14)))
(*
(+ x -2.0)
(+
(/ z t_0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (+ (/ y x) (/ -124074.40615218398 x))) x)
101.7851458539211)
x))))
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
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 <= -145000000.0) || !(x <= 2.5e+14)) {
tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / x)));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + 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 <= (-145000000.0d0)) .or. (.not. (x <= 2.5d+14))) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (4.16438922228d0 + ((((3451.550173699799d0 + ((y / x) + ((-124074.40615218398d0) / x))) / x) - 101.7851458539211d0) / x)))
else
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + 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 <= -145000000.0) || !(x <= 2.5e+14)) {
tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / x)));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + 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 <= -145000000.0) or not (x <= 2.5e+14): tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / x))) else: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + 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 <= -145000000.0) || !(x <= 2.5e+14)) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y / x) + Float64(-124074.40615218398 / x))) / x) - 101.7851458539211) / x)))); else tmp = 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); 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 <= -145000000.0) || ~((x <= 2.5e+14))) tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / x))); else tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + 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[Or[LessEqual[x, -145000000.0], N[Not[LessEqual[x, 2.5e+14]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y / x), $MachinePrecision] + N[(-124074.40615218398 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]]
\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 -145000000 \lor \neg \left(x \leq 2.5 \cdot 10^{+14}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \left(4.16438922228 + \frac{\frac{3451.550173699799 + \left(\frac{y}{x} + \frac{-124074.40615218398}{x}\right)}{x} - 101.7851458539211}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\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}\\
\end{array}
\end{array}
if x < -1.45e8 or 2.5e14 < x Initial program 13.9%
associate-/l*18.5%
sub-neg18.5%
metadata-eval18.5%
fma-define18.5%
fma-define18.5%
fma-define18.5%
fma-define18.5%
fma-define18.5%
fma-define18.5%
fma-define18.5%
Simplified18.5%
Taylor expanded in z around 0 18.5%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
associate--l+99.1%
sub-neg99.1%
associate-*r/99.1%
metadata-eval99.1%
distribute-neg-frac99.1%
metadata-eval99.1%
Simplified99.1%
if -1.45e8 < x < 2.5e14Initial program 99.7%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)
2e+256)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
(+ x -2.0)
(+
(/ z t_0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (+ (/ y x) (/ -124074.40615218398 x))) x)
101.7851458539211)
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 tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) <= 2e+256) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / 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) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) <= 2e+256) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y / x) + Float64(-124074.40615218398 / x))) / x) - 101.7851458539211) / x)))); end return 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[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], 2e+256], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y / x), $MachinePrecision] + N[(-124074.40615218398 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $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}\;\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} \leq 2 \cdot 10^{+256}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \left(4.16438922228 + \frac{\frac{3451.550173699799 + \left(\frac{y}{x} + \frac{-124074.40615218398}{x}\right)}{x} - 101.7851458539211}{x}\right)\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))) < 2.0000000000000001e256Initial program 96.6%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
if 2.0000000000000001e256 < (/.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 1.1%
associate-/l*2.9%
sub-neg2.9%
metadata-eval2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
Simplified2.9%
Taylor expanded in z around 0 2.9%
Taylor expanded in x around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
associate--l+99.0%
sub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
distribute-neg-frac99.0%
metadata-eval99.0%
Simplified99.0%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_2 (/ z t_1)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_1) 2e+256)
(* (+ x -2.0) (+ t_2 (/ t_0 t_1)))
(*
(+ x -2.0)
(+
t_2
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (+ (/ y x) (/ -124074.40615218398 x))) x)
101.7851458539211)
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 * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 2e+256) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (t_2 + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / x)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_2 = z / t_1
if ((((x - 2.0d0) * (t_0 + z)) / t_1) <= 2d+256) then
tmp = (x + (-2.0d0)) * (t_2 + (t_0 / t_1))
else
tmp = (x + (-2.0d0)) * (t_2 + (4.16438922228d0 + ((((3451.550173699799d0 + ((y / x) + ((-124074.40615218398d0) / x))) / x) - 101.7851458539211d0) / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 2e+256) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (t_2 + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / 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 * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_2 = z / t_1 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_1) <= 2e+256: tmp = (x + -2.0) * (t_2 + (t_0 / t_1)) else: tmp = (x + -2.0) * (t_2 + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / 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(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_1) <= 2e+256) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(t_0 / t_1))); else tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y / x) + Float64(-124074.40615218398 / x))) / x) - 101.7851458539211) / 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 * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_1) <= 2e+256) tmp = (x + -2.0) * (t_2 + (t_0 / t_1)); else tmp = (x + -2.0) * (t_2 + (4.16438922228 + ((((3451.550173699799 + ((y / x) + (-124074.40615218398 / x))) / x) - 101.7851458539211) / 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[(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$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 2e+256], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y / x), $MachinePrecision] + N[(-124074.40615218398 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $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 \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_2 := \frac{z}{t\_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_1} \leq 2 \cdot 10^{+256}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + \frac{t\_0}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + \left(4.16438922228 + \frac{\frac{3451.550173699799 + \left(\frac{y}{x} + \frac{-124074.40615218398}{x}\right)}{x} - 101.7851458539211}{x}\right)\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))) < 2.0000000000000001e256Initial program 96.6%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
Taylor expanded in z around 0 99.0%
if 2.0000000000000001e256 < (/.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 1.1%
associate-/l*2.9%
sub-neg2.9%
metadata-eval2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
fma-define2.9%
Simplified2.9%
Taylor expanded in z around 0 2.9%
Taylor expanded in x around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
associate--l+99.0%
sub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
distribute-neg-frac99.0%
metadata-eval99.0%
Simplified99.0%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 1e+271)
t_0
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+271) {
tmp = t_0;
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+271) then
tmp = t_0
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+271) {
tmp = t_0;
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 1e+271: tmp = t_0 else: tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 1e+271) tmp = t_0; else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 1e+271) tmp = t_0; else tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 1e+271], t$95$0, N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq 10^{+271}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 9.99999999999999953e270Initial program 96.6%
if 9.99999999999999953e270 < (/.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.1%
associate-/l*2.0%
sub-neg2.0%
metadata-eval2.0%
fma-define2.0%
fma-define2.0%
fma-define2.0%
fma-define2.0%
fma-define2.0%
fma-define2.0%
fma-define2.0%
Simplified2.0%
Taylor expanded in x around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
Simplified99.0%
Taylor expanded in x around inf 99.0%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00068)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 30.0)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(+
(* z 0.14147091005106402)
(-
(*
x
(-
(+
(* z 0.11894829608144908)
(*
6.658593866711955
(- (* y 0.0212463641547976) (* z 0.14147091005106402))))
2.9217875995295866))
(* y 0.0212463641547976))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/
(- 3451.550173699799 (* y (/ (+ -1.0 (/ 124074.40615218398 y)) x)))
x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00068) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 30.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (6.658593866711955 * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00068d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 30.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) + ((x * (((z * 0.11894829608144908d0) + (6.658593866711955d0 * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0)))) - 2.9217875995295866d0)) - (y * 0.0212463641547976d0)))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - (y * (((-1.0d0) + (124074.40615218398d0 / y)) / x))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00068) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 30.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (6.658593866711955 * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00068: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 30.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (6.658593866711955 * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) - 2.9217875995295866)) - (y * 0.0212463641547976))))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00068) 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)))); elseif (x <= 30.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) + Float64(Float64(x * Float64(Float64(Float64(z * 0.11894829608144908) + Float64(6.658593866711955 * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402)))) - 2.9217875995295866)) - Float64(y * 0.0212463641547976)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(y * Float64(Float64(-1.0 + Float64(124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00068) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 30.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (6.658593866711955 * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) - 2.9217875995295866)) - (y * 0.0212463641547976))))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00068], 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], If[LessEqual[x, 30.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] + N[(N[(x * N[(N[(N[(z * 0.11894829608144908), $MachinePrecision] + N[(6.658593866711955 * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(y * N[(N[(-1.0 + N[(124074.40615218398 / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00068:\\
\;\;\;\;\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{elif}\;x \leq 30:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 + \left(x \cdot \left(\left(z \cdot 0.11894829608144908 + 6.658593866711955 \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right) - 2.9217875995295866\right) - y \cdot 0.0212463641547976\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - y \cdot \frac{-1 + \frac{124074.40615218398}{y}}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -6.8e-4Initial program 22.4%
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.6%
Simplified25.6%
Taylor expanded in z around 0 25.5%
Taylor expanded in x around inf 89.1%
if -6.8e-4 < x < 30Initial program 99.7%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 98.3%
if 30 < x Initial program 14.2%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in y around inf 19.6%
Taylor expanded in x around -inf 95.4%
Simplified95.4%
Final simplification95.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -2.9e+21)
(* x t_0)
(if (<= x -3.7e-7)
(/
(* (- x 2.0) z)
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(if (<= x -3.8e-25)
(*
(+ x -2.0)
(*
x
(-
(* y 0.0212463641547976)
(* x (- (* y 0.14147091005106402) 2.9217875995295866)))))
(if (<= x 1.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(* (+ x -2.0) t_0)))))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -2.9e+21) {
tmp = x * t_0;
} else if (x <= -3.7e-7) {
tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= -3.8e-25) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866))));
} else if (x <= 1.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-2.9d+21)) then
tmp = x * t_0
else if (x <= (-3.7d-7)) then
tmp = ((x - 2.0d0) * z) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else if (x <= (-3.8d-25)) then
tmp = (x + (-2.0d0)) * (x * ((y * 0.0212463641547976d0) - (x * ((y * 0.14147091005106402d0) - 2.9217875995295866d0))))
else if (x <= 1.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -2.9e+21) {
tmp = x * t_0;
} else if (x <= -3.7e-7) {
tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= -3.8e-25) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866))));
} else if (x <= 1.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -2.9e+21: tmp = x * t_0 elif x <= -3.7e-7: tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) elif x <= -3.8e-25: tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866)))) elif x <= 1.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -2.9e+21) tmp = Float64(x * t_0); elseif (x <= -3.7e-7) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); elseif (x <= -3.8e-25) tmp = Float64(Float64(x + -2.0) * Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(x * Float64(Float64(y * 0.14147091005106402) - 2.9217875995295866))))); elseif (x <= 1.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -2.9e+21) tmp = x * t_0; elseif (x <= -3.7e-7) tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); elseif (x <= -3.8e-25) tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866)))); elseif (x <= 1.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.9e+21], N[(x * t$95$0), $MachinePrecision], If[LessEqual[x, -3.7e-7], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.8e-25], N[(N[(x + -2.0), $MachinePrecision] * N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(y * 0.14147091005106402), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * t$95$0), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -2.9 \cdot 10^{+21}:\\
\;\;\;\;x \cdot t\_0\\
\mathbf{elif}\;x \leq -3.7 \cdot 10^{-7}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-25}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976 - x \cdot \left(y \cdot 0.14147091005106402 - 2.9217875995295866\right)\right)\right)\\
\mathbf{elif}\;x \leq 1:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot t\_0\\
\end{array}
\end{array}
if x < -2.9e21Initial program 15.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.6%
Taylor expanded in x around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in x around inf 96.5%
if -2.9e21 < x < -3.70000000000000004e-7Initial program 98.9%
Taylor expanded in z around inf 71.4%
if -3.70000000000000004e-7 < x < -3.7999999999999998e-25Initial program 99.4%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in z around 0 89.8%
Taylor expanded in x around 0 86.5%
if -3.7999999999999998e-25 < x < 1Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 96.0%
if 1 < x Initial program 14.2%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around -inf 95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Final simplification95.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -2.8e+21)
(* x t_0)
(if (<= x -8.8e-7)
(*
(+ x -2.0)
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -3.8e-25)
(*
(+ x -2.0)
(*
x
(-
(* y 0.0212463641547976)
(* x (- (* y 0.14147091005106402) 2.9217875995295866)))))
(if (<= x 0.76)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(* (+ x -2.0) t_0)))))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -2.8e+21) {
tmp = x * t_0;
} else if (x <= -8.8e-7) {
tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606));
} else if (x <= -3.8e-25) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866))));
} else if (x <= 0.76) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-2.8d+21)) then
tmp = x * t_0
else if (x <= (-8.8d-7)) then
tmp = (x + (-2.0d0)) * (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0))
else if (x <= (-3.8d-25)) then
tmp = (x + (-2.0d0)) * (x * ((y * 0.0212463641547976d0) - (x * ((y * 0.14147091005106402d0) - 2.9217875995295866d0))))
else if (x <= 0.76d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -2.8e+21) {
tmp = x * t_0;
} else if (x <= -8.8e-7) {
tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606));
} else if (x <= -3.8e-25) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866))));
} else if (x <= 0.76) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -2.8e+21: tmp = x * t_0 elif x <= -8.8e-7: tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) elif x <= -3.8e-25: tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866)))) elif x <= 0.76: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -2.8e+21) tmp = Float64(x * t_0); elseif (x <= -8.8e-7) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= -3.8e-25) tmp = Float64(Float64(x + -2.0) * Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(x * Float64(Float64(y * 0.14147091005106402) - 2.9217875995295866))))); elseif (x <= 0.76) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -2.8e+21) tmp = x * t_0; elseif (x <= -8.8e-7) tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); elseif (x <= -3.8e-25) tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) - (x * ((y * 0.14147091005106402) - 2.9217875995295866)))); elseif (x <= 0.76) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.8e+21], N[(x * t$95$0), $MachinePrecision], If[LessEqual[x, -8.8e-7], N[(N[(x + -2.0), $MachinePrecision] * 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], If[LessEqual[x, -3.8e-25], N[(N[(x + -2.0), $MachinePrecision] * N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(y * 0.14147091005106402), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.76], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * t$95$0), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{+21}:\\
\;\;\;\;x \cdot t\_0\\
\mathbf{elif}\;x \leq -8.8 \cdot 10^{-7}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-25}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976 - x \cdot \left(y \cdot 0.14147091005106402 - 2.9217875995295866\right)\right)\right)\\
\mathbf{elif}\;x \leq 0.76:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot t\_0\\
\end{array}
\end{array}
if x < -2.8e21Initial program 15.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.6%
Taylor expanded in x around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in x around inf 96.5%
if -2.8e21 < x < -8.8000000000000004e-7Initial program 98.9%
associate-/l*98.7%
sub-neg98.7%
metadata-eval98.7%
fma-define98.7%
fma-define98.7%
fma-define98.7%
fma-define98.7%
fma-define98.7%
fma-define98.8%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.2%
if -8.8000000000000004e-7 < x < -3.7999999999999998e-25Initial program 99.4%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
fma-define100.0%
Simplified100.0%
Taylor expanded in z around 0 89.8%
Taylor expanded in x around 0 86.5%
if -3.7999999999999998e-25 < x < 0.76000000000000001Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 96.0%
if 0.76000000000000001 < x Initial program 14.2%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around -inf 95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Final simplification95.1%
(FPCore (x y z)
:precision binary64
(if (<= x -1.3e-5)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 0.195)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(+
(* z 0.14147091005106402)
(-
(* x (- (* y 0.14147091005106402) 2.9217875995295866))
(* y 0.0212463641547976))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/
(- 3451.550173699799 (* y (/ (+ -1.0 (/ 124074.40615218398 y)) x)))
x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.3e-5) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 0.195) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((y * 0.14147091005106402) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.3d-5)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 0.195d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) + ((x * ((y * 0.14147091005106402d0) - 2.9217875995295866d0)) - (y * 0.0212463641547976d0)))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - (y * (((-1.0d0) + (124074.40615218398d0 / y)) / x))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.3e-5) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 0.195) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((y * 0.14147091005106402) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.3e-5: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 0.195: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((y * 0.14147091005106402) - 2.9217875995295866)) - (y * 0.0212463641547976))))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.3e-5) 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)))); elseif (x <= 0.195) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) + Float64(Float64(x * Float64(Float64(y * 0.14147091005106402) - 2.9217875995295866)) - Float64(y * 0.0212463641547976)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(y * Float64(Float64(-1.0 + Float64(124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.3e-5) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 0.195) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((y * 0.14147091005106402) - 2.9217875995295866)) - (y * 0.0212463641547976))))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.3e-5], 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], If[LessEqual[x, 0.195], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] + N[(N[(x * N[(N[(y * 0.14147091005106402), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(y * N[(N[(-1.0 + N[(124074.40615218398 / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{-5}:\\
\;\;\;\;\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{elif}\;x \leq 0.195:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 + \left(x \cdot \left(y \cdot 0.14147091005106402 - 2.9217875995295866\right) - y \cdot 0.0212463641547976\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - y \cdot \frac{-1 + \frac{124074.40615218398}{y}}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.29999999999999992e-5Initial program 24.9%
associate-/l*28.0%
sub-neg28.0%
metadata-eval28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.1%
Simplified28.1%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 88.0%
if -1.29999999999999992e-5 < x < 0.19500000000000001Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 99.0%
Taylor expanded in z around 0 99.0%
*-commutative99.0%
Simplified99.0%
if 0.19500000000000001 < x Initial program 14.2%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in y around inf 19.6%
Taylor expanded in x around -inf 95.4%
Simplified95.4%
Final simplification95.4%
(FPCore (x y z)
:precision binary64
(if (<= x -1.6e-6)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 1.9)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/
(- 3451.550173699799 (* y (/ (+ -1.0 (/ 124074.40615218398 y)) x)))
x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.6e-6) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.9) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.6d-6)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 1.9d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - (y * (((-1.0d0) + (124074.40615218398d0 / y)) / x))) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.6e-6) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.9) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.6e-6: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 1.9: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.6e-6) 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)))); elseif (x <= 1.9) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(y * Float64(Float64(-1.0 + Float64(124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.6e-6) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 1.9) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - (y * ((-1.0 + (124074.40615218398 / y)) / x))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.6e-6], 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], If[LessEqual[x, 1.9], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(y * N[(N[(-1.0 + N[(124074.40615218398 / y), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{-6}:\\
\;\;\;\;\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{elif}\;x \leq 1.9:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - y \cdot \frac{-1 + \frac{124074.40615218398}{y}}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.5999999999999999e-6Initial program 24.9%
associate-/l*28.0%
sub-neg28.0%
metadata-eval28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.1%
Simplified28.1%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 88.0%
if -1.5999999999999999e-6 < x < 1.8999999999999999Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 93.4%
if 1.8999999999999999 < x Initial program 14.2%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in y around inf 19.6%
Taylor expanded in x around -inf 95.4%
Simplified95.4%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))))
(if (<= x -0.175)
t_0
(if (<= x -8.8e-75)
(*
x
(-
(* y -0.0424927283095952)
(*
x
(+
(* y -0.28294182010212804)
(* 0.0212463641547976 (- 275.038832832 y))))))
(if (<= x 0.13)
(+
(* z -0.0424927283095952)
(* x (- (* z 0.0212463641547976) (* z -0.28294182010212804))))
t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -0.175) {
tmp = t_0;
} else if (x <= -8.8e-75) {
tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y)))));
} else if (x <= 0.13) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} 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 = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-0.175d0)) then
tmp = t_0
else if (x <= (-8.8d-75)) then
tmp = x * ((y * (-0.0424927283095952d0)) - (x * ((y * (-0.28294182010212804d0)) + (0.0212463641547976d0 * (275.038832832d0 - y)))))
else if (x <= 0.13d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((z * 0.0212463641547976d0) - (z * (-0.28294182010212804d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -0.175) {
tmp = t_0;
} else if (x <= -8.8e-75) {
tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y)))));
} else if (x <= 0.13) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -0.175: tmp = t_0 elif x <= -8.8e-75: tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y))))) elif x <= 0.13: tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -0.175) tmp = t_0; elseif (x <= -8.8e-75) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(x * Float64(Float64(y * -0.28294182010212804) + Float64(0.0212463641547976 * Float64(275.038832832 - y)))))); elseif (x <= 0.13) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(z * 0.0212463641547976) - Float64(z * -0.28294182010212804)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -0.175) tmp = t_0; elseif (x <= -8.8e-75) tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y))))); elseif (x <= 0.13) tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.175], t$95$0, If[LessEqual[x, -8.8e-75], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(y * -0.28294182010212804), $MachinePrecision] + N[(0.0212463641547976 * N[(275.038832832 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.13], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -0.175:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -8.8 \cdot 10^{-75}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 - x \cdot \left(y \cdot -0.28294182010212804 + 0.0212463641547976 \cdot \left(275.038832832 - y\right)\right)\right)\\
\mathbf{elif}\;x \leq 0.13:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(z \cdot 0.0212463641547976 - z \cdot -0.28294182010212804\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 0.13 < x Initial program 17.9%
associate-/l*22.3%
sub-neg22.3%
metadata-eval22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around -inf 92.4%
mul-1-neg92.4%
unsub-neg92.4%
mul-1-neg92.4%
unsub-neg92.4%
mul-1-neg92.4%
unsub-neg92.4%
mul-1-neg92.4%
unsub-neg92.4%
Simplified92.4%
Taylor expanded in x around inf 91.4%
if -0.17499999999999999 < x < -8.80000000000000022e-75Initial program 99.5%
Taylor expanded in z around 0 67.2%
Taylor expanded in x around 0 65.6%
if -8.80000000000000022e-75 < x < 0.13Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around inf 75.5%
Taylor expanded in x around 0 75.3%
Final simplification82.7%
(FPCore (x y z)
:precision binary64
(if (<= x -4.5e-6)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 1.5)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.5e-6) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.5) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.5d-6)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 1.5d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.5e-6) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.5) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.5e-6: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 1.5: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.5e-6) 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)))); elseif (x <= 1.5) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.5e-6) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 1.5) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.5e-6], 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], If[LessEqual[x, 1.5], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \cdot 10^{-6}:\\
\;\;\;\;\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{elif}\;x \leq 1.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -4.50000000000000011e-6Initial program 24.9%
associate-/l*28.0%
sub-neg28.0%
metadata-eval28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.0%
fma-define28.1%
Simplified28.1%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 88.0%
if -4.50000000000000011e-6 < x < 1.5Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 93.4%
if 1.5 < x Initial program 14.2%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around -inf 95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -2.8e+21)
(* x t_0)
(if (<= x 2.4)
(-
(* z -0.0424927283095952)
(*
x
(-
(* z -0.28294182010212804)
(* 0.0212463641547976 (+ z (* y -2.0))))))
(* (+ x -2.0) t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -2.8e+21) {
tmp = x * t_0;
} else if (x <= 2.4) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-2.8d+21)) then
tmp = x * t_0
else if (x <= 2.4d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -2.8e+21) {
tmp = x * t_0;
} else if (x <= 2.4) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -2.8e+21: tmp = x * t_0 elif x <= 2.4: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -2.8e+21) tmp = Float64(x * t_0); elseif (x <= 2.4) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -2.8e+21) tmp = x * t_0; elseif (x <= 2.4) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.8e+21], N[(x * t$95$0), $MachinePrecision], If[LessEqual[x, 2.4], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{+21}:\\
\;\;\;\;x \cdot t\_0\\
\mathbf{elif}\;x \leq 2.4:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot t\_0\\
\end{array}
\end{array}
if x < -2.8e21Initial program 15.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.6%
Taylor expanded in x around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in x around inf 96.5%
if -2.8e21 < x < 2.39999999999999991Initial program 99.7%
Taylor expanded in x around 0 89.3%
if 2.39999999999999991 < x Initial program 14.2%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around -inf 95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Final simplification92.5%
(FPCore (x y z)
:precision binary64
(if (<= x -4.8e+32)
(* x 4.16438922228)
(if (<= x -3.7e-79)
(*
x
(-
(* y -0.0424927283095952)
(*
x
(+
(* y -0.28294182010212804)
(* 0.0212463641547976 (- 275.038832832 y))))))
(if (<= x 9.6e-7)
(+
(* z -0.0424927283095952)
(* x (- (* z 0.0212463641547976) (* z -0.28294182010212804))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.8e+32) {
tmp = x * 4.16438922228;
} else if (x <= -3.7e-79) {
tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y)))));
} else if (x <= 9.6e-7) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} 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 <= (-4.8d+32)) then
tmp = x * 4.16438922228d0
else if (x <= (-3.7d-79)) then
tmp = x * ((y * (-0.0424927283095952d0)) - (x * ((y * (-0.28294182010212804d0)) + (0.0212463641547976d0 * (275.038832832d0 - y)))))
else if (x <= 9.6d-7) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((z * 0.0212463641547976d0) - (z * (-0.28294182010212804d0))))
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 <= -4.8e+32) {
tmp = x * 4.16438922228;
} else if (x <= -3.7e-79) {
tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y)))));
} else if (x <= 9.6e-7) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.8e+32: tmp = x * 4.16438922228 elif x <= -3.7e-79: tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y))))) elif x <= 9.6e-7: tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) 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 <= -4.8e+32) tmp = Float64(x * 4.16438922228); elseif (x <= -3.7e-79) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(x * Float64(Float64(y * -0.28294182010212804) + Float64(0.0212463641547976 * Float64(275.038832832 - y)))))); elseif (x <= 9.6e-7) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(z * 0.0212463641547976) - Float64(z * -0.28294182010212804)))); 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 <= -4.8e+32) tmp = x * 4.16438922228; elseif (x <= -3.7e-79) tmp = x * ((y * -0.0424927283095952) - (x * ((y * -0.28294182010212804) + (0.0212463641547976 * (275.038832832 - y))))); elseif (x <= 9.6e-7) tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))); 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, -4.8e+32], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -3.7e-79], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(y * -0.28294182010212804), $MachinePrecision] + N[(0.0212463641547976 * N[(275.038832832 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.6e-7], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(z * -0.28294182010212804), $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 -4.8 \cdot 10^{+32}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -3.7 \cdot 10^{-79}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 - x \cdot \left(y \cdot -0.28294182010212804 + 0.0212463641547976 \cdot \left(275.038832832 - y\right)\right)\right)\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{-7}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(z \cdot 0.0212463641547976 - z \cdot -0.28294182010212804\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 < -4.79999999999999983e32Initial program 10.3%
Taylor expanded in x around inf 95.0%
*-commutative95.0%
Simplified95.0%
if -4.79999999999999983e32 < x < -3.70000000000000018e-79Initial program 95.9%
Taylor expanded in z around 0 56.2%
Taylor expanded in x around 0 45.3%
if -3.70000000000000018e-79 < x < 9.59999999999999914e-7Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around inf 76.2%
Taylor expanded in x around 0 76.0%
if 9.59999999999999914e-7 < x Initial program 15.4%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
Simplified20.7%
Taylor expanded in x around -inf 86.4%
mul-1-neg86.4%
unsub-neg86.4%
sub-neg86.4%
associate-*r/86.4%
metadata-eval86.4%
distribute-neg-frac86.4%
metadata-eval86.4%
Simplified86.4%
Final simplification79.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2.8e+21) (not (<= x 5.8)))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.8e+21) || !(x <= 5.8)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -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 <= (-2.8d+21)) .or. (.not. (x <= 5.8d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.8e+21) || !(x <= 5.8)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.8e+21) or not (x <= 5.8): tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.8e+21) || !(x <= 5.8)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.8e+21) || ~((x <= 5.8))) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.8e+21], N[Not[LessEqual[x, 5.8]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{+21} \lor \neg \left(x \leq 5.8\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\end{array}
\end{array}
if x < -2.8e21 or 5.79999999999999982 < x Initial program 14.6%
associate-/l*19.2%
sub-neg19.2%
metadata-eval19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
Simplified19.2%
Taylor expanded in x around -inf 95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
Simplified95.8%
Taylor expanded in x around inf 94.9%
if -2.8e21 < x < 5.79999999999999982Initial program 99.7%
Taylor expanded in x around 0 89.3%
Final simplification92.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2.8e+21) (not (<= x 2.7)))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.8e+21) || !(x <= 2.7)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-2.8d+21)) .or. (.not. (x <= 2.7d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.8e+21) || !(x <= 2.7)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.8e+21) or not (x <= 2.7): tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.8e+21) || !(x <= 2.7)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.8e+21) || ~((x <= 2.7))) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.8e+21], N[Not[LessEqual[x, 2.7]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{+21} \lor \neg \left(x \leq 2.7\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -2.8e21 or 2.7000000000000002 < x Initial program 14.6%
associate-/l*19.2%
sub-neg19.2%
metadata-eval19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
Simplified19.2%
Taylor expanded in x around -inf 95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
mul-1-neg95.8%
unsub-neg95.8%
Simplified95.8%
Taylor expanded in x around inf 94.9%
if -2.8e21 < x < 2.7000000000000002Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.8%
Simplified99.8%
Taylor expanded in x around 0 89.3%
Final simplification92.0%
(FPCore (x y z)
:precision binary64
(if (<= x -2.8e+21)
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= x 5.4)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
x
(-
(/
(+
-110.1139242984811
(/ (- (/ (+ y -130977.50649958357) x) -3655.1204654076414) x))
x)
-4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.8e+21) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 5.4) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = x * (((-110.1139242984811 + ((((y + -130977.50649958357) / x) - -3655.1204654076414) / x)) / 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 <= (-2.8d+21)) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 5.4d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = x * ((((-110.1139242984811d0) + ((((y + (-130977.50649958357d0)) / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.8e+21) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 5.4) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = x * (((-110.1139242984811 + ((((y + -130977.50649958357) / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.8e+21: tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif x <= 5.4: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = x * (((-110.1139242984811 + ((((y + -130977.50649958357) / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.8e+21) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 5.4) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(Float64(y + -130977.50649958357) / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.8e+21) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 5.4) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = x * (((-110.1139242984811 + ((((y + -130977.50649958357) / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.8e+21], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(N[(y + -130977.50649958357), $MachinePrecision] / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{+21}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 5.4:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y + -130977.50649958357}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\end{array}
\end{array}
if x < -2.8e21Initial program 15.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.6%
Taylor expanded in x around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
Simplified96.5%
Taylor expanded in x around inf 96.5%
if -2.8e21 < x < 5.4000000000000004Initial program 99.7%
Taylor expanded in x around 0 89.3%
if 5.4000000000000004 < x Initial program 14.2%
Taylor expanded in z around 0 12.7%
Taylor expanded in x around -inf 95.3%
Simplified95.3%
Final simplification92.4%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+30)
(* x 4.16438922228)
(if (<= x 9.6e-7)
(+
(* z -0.0424927283095952)
(* x (- (* z 0.0212463641547976) (* z -0.28294182010212804))))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 9.6e-7) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} 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.5d+30)) then
tmp = x * 4.16438922228d0
else if (x <= 9.6d-7) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((z * 0.0212463641547976d0) - (z * (-0.28294182010212804d0))))
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.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 9.6e-7) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} 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.5e+30: tmp = x * 4.16438922228 elif x <= 9.6e-7: tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) 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.5e+30) tmp = Float64(x * 4.16438922228); elseif (x <= 9.6e-7) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(z * 0.0212463641547976) - Float64(z * -0.28294182010212804)))); 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.5e+30) tmp = x * 4.16438922228; elseif (x <= 9.6e-7) tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))); 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.5e+30], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 9.6e-7], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(z * -0.28294182010212804), $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.5 \cdot 10^{+30}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{-7}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(z \cdot 0.0212463641547976 - z \cdot -0.28294182010212804\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.49999999999999989e30Initial program 11.9%
Taylor expanded in x around inf 91.4%
*-commutative91.4%
Simplified91.4%
if -1.49999999999999989e30 < x < 9.59999999999999914e-7Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.8%
Simplified99.8%
Taylor expanded in z around inf 69.7%
Taylor expanded in x around 0 65.7%
if 9.59999999999999914e-7 < x Initial program 15.4%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
Simplified20.7%
Taylor expanded in x around -inf 86.4%
mul-1-neg86.4%
unsub-neg86.4%
sub-neg86.4%
associate-*r/86.4%
metadata-eval86.4%
distribute-neg-frac86.4%
metadata-eval86.4%
Simplified86.4%
Final simplification76.6%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+30)
(* x 4.16438922228)
(if (<= x 9.6e-7)
(* 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.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 9.6e-7) {
tmp = 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.5d+30)) then
tmp = x * 4.16438922228d0
else if (x <= 9.6d-7) then
tmp = 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.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 9.6e-7) {
tmp = 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.5e+30: tmp = x * 4.16438922228 elif x <= 9.6e-7: tmp = 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.5e+30) tmp = Float64(x * 4.16438922228); elseif (x <= 9.6e-7) tmp = 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.5e+30) tmp = x * 4.16438922228; elseif (x <= 9.6e-7) tmp = 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.5e+30], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 9.6e-7], N[(z * -0.0424927283095952), $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.5 \cdot 10^{+30}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{-7}:\\
\;\;\;\;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.49999999999999989e30Initial program 11.9%
Taylor expanded in x around inf 91.4%
*-commutative91.4%
Simplified91.4%
if -1.49999999999999989e30 < x < 9.59999999999999914e-7Initial program 99.7%
Taylor expanded in x around 0 65.5%
if 9.59999999999999914e-7 < x Initial program 15.4%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
Simplified20.7%
Taylor expanded in x around -inf 86.4%
mul-1-neg86.4%
unsub-neg86.4%
sub-neg86.4%
associate-*r/86.4%
metadata-eval86.4%
distribute-neg-frac86.4%
metadata-eval86.4%
Simplified86.4%
Final simplification76.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+30)
(* x 4.16438922228)
(if (<= x 2.0)
(* z -0.0424927283095952)
(*
x
(+
4.16438922228
(/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / 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.5d+30)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+30: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+30) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+30) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+30], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+30}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.49999999999999989e30Initial program 11.9%
Taylor expanded in x around inf 91.4%
*-commutative91.4%
Simplified91.4%
if -1.49999999999999989e30 < x < 2Initial program 99.7%
Taylor expanded in x around 0 65.0%
if 2 < x Initial program 14.2%
Taylor expanded in z around 0 12.7%
Taylor expanded in x around inf 87.5%
associate--l+87.5%
unpow287.5%
associate-/r*87.5%
metadata-eval87.5%
associate-*r/87.5%
associate-*r/87.5%
metadata-eval87.5%
div-sub87.5%
sub-neg87.5%
metadata-eval87.5%
associate-*r/87.5%
metadata-eval87.5%
Simplified87.5%
Final simplification76.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+30)
(* x 4.16438922228)
(if (<= x 1.75e-13)
(* z -0.0424927283095952)
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 1.75e-13) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.5d+30)) then
tmp = x * 4.16438922228d0
else if (x <= 1.75d-13) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 1.75e-13) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+30: tmp = x * 4.16438922228 elif x <= 1.75e-13: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+30) tmp = Float64(x * 4.16438922228); elseif (x <= 1.75e-13) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+30) tmp = x * 4.16438922228; elseif (x <= 1.75e-13) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+30], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.75e-13], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+30}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-13}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.49999999999999989e30Initial program 11.9%
Taylor expanded in x around inf 91.4%
*-commutative91.4%
Simplified91.4%
if -1.49999999999999989e30 < x < 1.7500000000000001e-13Initial program 99.7%
Taylor expanded in x around 0 65.9%
if 1.7500000000000001e-13 < x Initial program 16.6%
Taylor expanded in x around inf 84.7%
associate-*r/84.7%
metadata-eval84.7%
Simplified84.7%
Final simplification76.3%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+30)
(* x 4.16438922228)
(if (<= x 1.75e-13)
(* z -0.0424927283095952)
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 1.75e-13) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.5d+30)) then
tmp = x * 4.16438922228d0
else if (x <= 1.75d-13) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+30) {
tmp = x * 4.16438922228;
} else if (x <= 1.75e-13) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+30: tmp = x * 4.16438922228 elif x <= 1.75e-13: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+30) tmp = Float64(x * 4.16438922228); elseif (x <= 1.75e-13) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+30) tmp = x * 4.16438922228; elseif (x <= 1.75e-13) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+30], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 1.75e-13], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+30}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-13}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -1.49999999999999989e30Initial program 11.9%
Taylor expanded in x around inf 91.4%
*-commutative91.4%
Simplified91.4%
if -1.49999999999999989e30 < x < 1.7500000000000001e-13Initial program 99.7%
Taylor expanded in x around 0 65.9%
if 1.7500000000000001e-13 < x Initial program 16.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around inf 83.5%
Final simplification76.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.5e+30) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+30) || !(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.5d+30)) .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.5e+30) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.5e+30) 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.5e+30) || !(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.5e+30) || ~((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.5e+30], 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.5 \cdot 10^{+30} \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.49999999999999989e30 or 2 < x Initial program 13.3%
Taylor expanded in x around inf 88.1%
*-commutative88.1%
Simplified88.1%
if -1.49999999999999989e30 < x < 2Initial program 99.7%
Taylor expanded in x around 0 65.0%
Final simplification76.0%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 58.5%
Taylor expanded in x around 0 35.5%
Final simplification35.5%
(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 2024111
(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)))