
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(x) * (sin(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cosh x \cdot \frac{\sin y}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(x) * (sin(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cosh x \cdot \frac{\sin y}{y}
\end{array}
(FPCore (x y) :precision binary64 (/ (sin y) (/ y (cosh x))))
double code(double x, double y) {
return sin(y) / (y / cosh(x));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(y) / (y / cosh(x))
end function
public static double code(double x, double y) {
return Math.sin(y) / (y / Math.cosh(x));
}
def code(x, y): return math.sin(y) / (y / math.cosh(x))
function code(x, y) return Float64(sin(y) / Float64(y / cosh(x))) end
function tmp = code(x, y) tmp = sin(y) / (y / cosh(x)); end
code[x_, y_] := N[(N[Sin[y], $MachinePrecision] / N[(y / N[Cosh[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin y}{\frac{y}{\cosh x}}
\end{array}
Initial program 99.9%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f6499.9%
Applied egg-rr99.9%
(FPCore (x y) :precision binary64 (* (cosh x) (/ (sin y) y)))
double code(double x, double y) {
return cosh(x) * (sin(y) / y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x) * (sin(y) / y)
end function
public static double code(double x, double y) {
return Math.cosh(x) * (Math.sin(y) / y);
}
def code(x, y): return math.cosh(x) * (math.sin(y) / y)
function code(x, y) return Float64(cosh(x) * Float64(sin(y) / y)) end
function tmp = code(x, y) tmp = cosh(x) * (sin(y) / y); end
code[x_, y_] := N[(N[Cosh[x], $MachinePrecision] * N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cosh x \cdot \frac{\sin y}{y}
\end{array}
Initial program 99.9%
(FPCore (x y)
:precision binary64
(let* ((t_0
(*
(/ (sin y) y)
(+
1.0
(*
(* x x)
(+
0.5
(*
x
(*
x
(+
0.041666666666666664
(* (* x x) 0.001388888888888889))))))))))
(if (<= x 0.46)
t_0
(if (<= x 6e+51)
(* (cosh x) (+ 1.0 (* y (* y -0.16666666666666666))))
t_0))))
double code(double x, double y) {
double t_0 = (sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * (0.041666666666666664 + ((x * x) * 0.001388888888888889)))))));
double tmp;
if (x <= 0.46) {
tmp = t_0;
} else if (x <= 6e+51) {
tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = (sin(y) / y) * (1.0d0 + ((x * x) * (0.5d0 + (x * (x * (0.041666666666666664d0 + ((x * x) * 0.001388888888888889d0)))))))
if (x <= 0.46d0) then
tmp = t_0
else if (x <= 6d+51) then
tmp = cosh(x) * (1.0d0 + (y * (y * (-0.16666666666666666d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = (Math.sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * (0.041666666666666664 + ((x * x) * 0.001388888888888889)))))));
double tmp;
if (x <= 0.46) {
tmp = t_0;
} else if (x <= 6e+51) {
tmp = Math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = (math.sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))) tmp = 0 if x <= 0.46: tmp = t_0 elif x <= 6e+51: tmp = math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666))) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(Float64(sin(y) / y) * Float64(1.0 + Float64(Float64(x * x) * Float64(0.5 + Float64(x * Float64(x * Float64(0.041666666666666664 + Float64(Float64(x * x) * 0.001388888888888889)))))))) tmp = 0.0 if (x <= 0.46) tmp = t_0; elseif (x <= 6e+51) tmp = Float64(cosh(x) * Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = (sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))); tmp = 0.0; if (x <= 0.46) tmp = t_0; elseif (x <= 6e+51) tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision] * N[(1.0 + N[(N[(x * x), $MachinePrecision] * N[(0.5 + N[(x * N[(x * N[(0.041666666666666664 + N[(N[(x * x), $MachinePrecision] * 0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 0.46], t$95$0, If[LessEqual[x, 6e+51], N[(N[Cosh[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin y}{y} \cdot \left(1 + \left(x \cdot x\right) \cdot \left(0.5 + x \cdot \left(x \cdot \left(0.041666666666666664 + \left(x \cdot x\right) \cdot 0.001388888888888889\right)\right)\right)\right)\\
\mathbf{if}\;x \leq 0.46:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+51}:\\
\;\;\;\;\cosh x \cdot \left(1 + y \cdot \left(y \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 0.46000000000000002 or 6e51 < x Initial program 99.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6495.3%
Simplified95.3%
if 0.46000000000000002 < x < 6e51Initial program 100.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6485.8%
Simplified85.8%
Final simplification95.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 0.5 (* x (* x 0.041666666666666664)))))
(if (<= x 0.68)
(* (/ (sin y) y) (+ 1.0 (* (* x x) t_0)))
(if (<= x 1.45e+74)
(* (cosh x) (+ 1.0 (* y (* y -0.16666666666666666))))
(/ (sin y) (/ y (+ 1.0 (* x (* x t_0)))))))))
double code(double x, double y) {
double t_0 = 0.5 + (x * (x * 0.041666666666666664));
double tmp;
if (x <= 0.68) {
tmp = (sin(y) / y) * (1.0 + ((x * x) * t_0));
} else if (x <= 1.45e+74) {
tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = sin(y) / (y / (1.0 + (x * (x * t_0))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = 0.5d0 + (x * (x * 0.041666666666666664d0))
if (x <= 0.68d0) then
tmp = (sin(y) / y) * (1.0d0 + ((x * x) * t_0))
else if (x <= 1.45d+74) then
tmp = cosh(x) * (1.0d0 + (y * (y * (-0.16666666666666666d0))))
else
tmp = sin(y) / (y / (1.0d0 + (x * (x * t_0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 0.5 + (x * (x * 0.041666666666666664));
double tmp;
if (x <= 0.68) {
tmp = (Math.sin(y) / y) * (1.0 + ((x * x) * t_0));
} else if (x <= 1.45e+74) {
tmp = Math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = Math.sin(y) / (y / (1.0 + (x * (x * t_0))));
}
return tmp;
}
def code(x, y): t_0 = 0.5 + (x * (x * 0.041666666666666664)) tmp = 0 if x <= 0.68: tmp = (math.sin(y) / y) * (1.0 + ((x * x) * t_0)) elif x <= 1.45e+74: tmp = math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666))) else: tmp = math.sin(y) / (y / (1.0 + (x * (x * t_0)))) return tmp
function code(x, y) t_0 = Float64(0.5 + Float64(x * Float64(x * 0.041666666666666664))) tmp = 0.0 if (x <= 0.68) tmp = Float64(Float64(sin(y) / y) * Float64(1.0 + Float64(Float64(x * x) * t_0))); elseif (x <= 1.45e+74) tmp = Float64(cosh(x) * Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666)))); else tmp = Float64(sin(y) / Float64(y / Float64(1.0 + Float64(x * Float64(x * t_0))))); end return tmp end
function tmp_2 = code(x, y) t_0 = 0.5 + (x * (x * 0.041666666666666664)); tmp = 0.0; if (x <= 0.68) tmp = (sin(y) / y) * (1.0 + ((x * x) * t_0)); elseif (x <= 1.45e+74) tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666))); else tmp = sin(y) / (y / (1.0 + (x * (x * t_0)))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(0.5 + N[(x * N[(x * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 0.68], N[(N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision] * N[(1.0 + N[(N[(x * x), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e+74], N[(N[Cosh[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Sin[y], $MachinePrecision] / N[(y / N[(1.0 + N[(x * N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.5 + x \cdot \left(x \cdot 0.041666666666666664\right)\\
\mathbf{if}\;x \leq 0.68:\\
\;\;\;\;\frac{\sin y}{y} \cdot \left(1 + \left(x \cdot x\right) \cdot t\_0\right)\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+74}:\\
\;\;\;\;\cosh x \cdot \left(1 + y \cdot \left(y \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\sin y}{\frac{y}{1 + x \cdot \left(x \cdot t\_0\right)}}\\
\end{array}
\end{array}
if x < 0.680000000000000049Initial program 99.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6493.4%
Simplified93.4%
if 0.680000000000000049 < x < 1.4500000000000001e74Initial program 100.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6483.4%
Simplified83.4%
if 1.4500000000000001e74 < x Initial program 100.0%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6498.0%
Simplified98.0%
Final simplification93.8%
(FPCore (x y)
:precision binary64
(let* ((t_0
(*
(/ (sin y) y)
(+ 1.0 (* (* x x) (+ 0.5 (* x (* x 0.041666666666666664))))))))
(if (<= x 0.31)
t_0
(if (<= x 4e+77)
(* (cosh x) (+ 1.0 (* y (* y -0.16666666666666666))))
t_0))))
double code(double x, double y) {
double t_0 = (sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * 0.041666666666666664)))));
double tmp;
if (x <= 0.31) {
tmp = t_0;
} else if (x <= 4e+77) {
tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = (sin(y) / y) * (1.0d0 + ((x * x) * (0.5d0 + (x * (x * 0.041666666666666664d0)))))
if (x <= 0.31d0) then
tmp = t_0
else if (x <= 4d+77) then
tmp = cosh(x) * (1.0d0 + (y * (y * (-0.16666666666666666d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = (Math.sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * 0.041666666666666664)))));
double tmp;
if (x <= 0.31) {
tmp = t_0;
} else if (x <= 4e+77) {
tmp = Math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = (math.sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * 0.041666666666666664))))) tmp = 0 if x <= 0.31: tmp = t_0 elif x <= 4e+77: tmp = math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666))) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(Float64(sin(y) / y) * Float64(1.0 + Float64(Float64(x * x) * Float64(0.5 + Float64(x * Float64(x * 0.041666666666666664)))))) tmp = 0.0 if (x <= 0.31) tmp = t_0; elseif (x <= 4e+77) tmp = Float64(cosh(x) * Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = (sin(y) / y) * (1.0 + ((x * x) * (0.5 + (x * (x * 0.041666666666666664))))); tmp = 0.0; if (x <= 0.31) tmp = t_0; elseif (x <= 4e+77) tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision] * N[(1.0 + N[(N[(x * x), $MachinePrecision] * N[(0.5 + N[(x * N[(x * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 0.31], t$95$0, If[LessEqual[x, 4e+77], N[(N[Cosh[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin y}{y} \cdot \left(1 + \left(x \cdot x\right) \cdot \left(0.5 + x \cdot \left(x \cdot 0.041666666666666664\right)\right)\right)\\
\mathbf{if}\;x \leq 0.31:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+77}:\\
\;\;\;\;\cosh x \cdot \left(1 + y \cdot \left(y \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 0.309999999999999998 or 3.99999999999999993e77 < x Initial program 99.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6494.6%
Simplified94.6%
if 0.309999999999999998 < x < 3.99999999999999993e77Initial program 100.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6478.6%
Simplified78.6%
Final simplification93.8%
(FPCore (x y)
:precision binary64
(/
(sin y)
(/
y
(+
1.0
(*
x
(*
x
(+
0.5
(*
(* x x)
(+ 0.041666666666666664 (* (* x x) 0.001388888888888889))))))))))
double code(double x, double y) {
return sin(y) / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sin(y) / (y / (1.0d0 + (x * (x * (0.5d0 + ((x * x) * (0.041666666666666664d0 + ((x * x) * 0.001388888888888889d0))))))))
end function
public static double code(double x, double y) {
return Math.sin(y) / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))));
}
def code(x, y): return math.sin(y) / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))))
function code(x, y) return Float64(sin(y) / Float64(y / Float64(1.0 + Float64(x * Float64(x * Float64(0.5 + Float64(Float64(x * x) * Float64(0.041666666666666664 + Float64(Float64(x * x) * 0.001388888888888889))))))))) end
function tmp = code(x, y) tmp = sin(y) / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889)))))))); end
code[x_, y_] := N[(N[Sin[y], $MachinePrecision] / N[(y / N[(1.0 + N[(x * N[(x * N[(0.5 + N[(N[(x * x), $MachinePrecision] * N[(0.041666666666666664 + N[(N[(x * x), $MachinePrecision] * 0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sin y}{\frac{y}{1 + x \cdot \left(x \cdot \left(0.5 + \left(x \cdot x\right) \cdot \left(0.041666666666666664 + \left(x \cdot x\right) \cdot 0.001388888888888889\right)\right)\right)}}
\end{array}
Initial program 99.9%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f6499.9%
Applied egg-rr99.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6495.3%
Simplified95.3%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* (/ (sin y) y) (+ 1.0 (* 0.5 (* x x))))))
(if (<= x 0.3)
t_0
(if (<= x 1.32e+154)
(* (cosh x) (+ 1.0 (* y (* y -0.16666666666666666))))
t_0))))
double code(double x, double y) {
double t_0 = (sin(y) / y) * (1.0 + (0.5 * (x * x)));
double tmp;
if (x <= 0.3) {
tmp = t_0;
} else if (x <= 1.32e+154) {
tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = (sin(y) / y) * (1.0d0 + (0.5d0 * (x * x)))
if (x <= 0.3d0) then
tmp = t_0
else if (x <= 1.32d+154) then
tmp = cosh(x) * (1.0d0 + (y * (y * (-0.16666666666666666d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = (Math.sin(y) / y) * (1.0 + (0.5 * (x * x)));
double tmp;
if (x <= 0.3) {
tmp = t_0;
} else if (x <= 1.32e+154) {
tmp = Math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = (math.sin(y) / y) * (1.0 + (0.5 * (x * x))) tmp = 0 if x <= 0.3: tmp = t_0 elif x <= 1.32e+154: tmp = math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666))) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(Float64(sin(y) / y) * Float64(1.0 + Float64(0.5 * Float64(x * x)))) tmp = 0.0 if (x <= 0.3) tmp = t_0; elseif (x <= 1.32e+154) tmp = Float64(cosh(x) * Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = (sin(y) / y) * (1.0 + (0.5 * (x * x))); tmp = 0.0; if (x <= 0.3) tmp = t_0; elseif (x <= 1.32e+154) tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision] * N[(1.0 + N[(0.5 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 0.3], t$95$0, If[LessEqual[x, 1.32e+154], N[(N[Cosh[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sin y}{y} \cdot \left(1 + 0.5 \cdot \left(x \cdot x\right)\right)\\
\mathbf{if}\;x \leq 0.3:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.32 \cdot 10^{+154}:\\
\;\;\;\;\cosh x \cdot \left(1 + y \cdot \left(y \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 0.299999999999999989 or 1.31999999999999998e154 < x Initial program 99.9%
Taylor expanded in x around 0
*-commutativeN/A
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f6488.8%
Simplified88.8%
if 0.299999999999999989 < x < 1.31999999999999998e154Initial program 100.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6477.8%
Simplified77.8%
Final simplification87.6%
(FPCore (x y)
:precision binary64
(if (<= x 0.3)
(/ (sin y) y)
(if (<= x 4.5e+130)
(* (cosh x) (+ 1.0 (* y (* y -0.16666666666666666))))
(* x (* x (* (* x x) 0.041666666666666664))))))
double code(double x, double y) {
double tmp;
if (x <= 0.3) {
tmp = sin(y) / y;
} else if (x <= 4.5e+130) {
tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.3d0) then
tmp = sin(y) / y
else if (x <= 4.5d+130) then
tmp = cosh(x) * (1.0d0 + (y * (y * (-0.16666666666666666d0))))
else
tmp = x * (x * ((x * x) * 0.041666666666666664d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.3) {
tmp = Math.sin(y) / y;
} else if (x <= 4.5e+130) {
tmp = Math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666)));
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.3: tmp = math.sin(y) / y elif x <= 4.5e+130: tmp = math.cosh(x) * (1.0 + (y * (y * -0.16666666666666666))) else: tmp = x * (x * ((x * x) * 0.041666666666666664)) return tmp
function code(x, y) tmp = 0.0 if (x <= 0.3) tmp = Float64(sin(y) / y); elseif (x <= 4.5e+130) tmp = Float64(cosh(x) * Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666)))); else tmp = Float64(x * Float64(x * Float64(Float64(x * x) * 0.041666666666666664))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.3) tmp = sin(y) / y; elseif (x <= 4.5e+130) tmp = cosh(x) * (1.0 + (y * (y * -0.16666666666666666))); else tmp = x * (x * ((x * x) * 0.041666666666666664)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.3], N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], If[LessEqual[x, 4.5e+130], N[(N[Cosh[x], $MachinePrecision] * N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.3:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+130}:\\
\;\;\;\;\cosh x \cdot \left(1 + y \cdot \left(y \cdot -0.16666666666666666\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)\\
\end{array}
\end{array}
if x < 0.299999999999999989Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6472.3%
Simplified72.3%
if 0.299999999999999989 < x < 4.50000000000000039e130Initial program 100.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6482.6%
Simplified82.6%
if 4.50000000000000039e130 < x Initial program 100.0%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
Simplified83.3%
Taylor expanded in x around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.3%
Simplified83.3%
(FPCore (x y) :precision binary64 (if (<= x 0.3) (/ (sin y) y) (cosh x)))
double code(double x, double y) {
double tmp;
if (x <= 0.3) {
tmp = sin(y) / y;
} else {
tmp = cosh(x);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.3d0) then
tmp = sin(y) / y
else
tmp = cosh(x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.3) {
tmp = Math.sin(y) / y;
} else {
tmp = Math.cosh(x);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.3: tmp = math.sin(y) / y else: tmp = math.cosh(x) return tmp
function code(x, y) tmp = 0.0 if (x <= 0.3) tmp = Float64(sin(y) / y); else tmp = cosh(x); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.3) tmp = sin(y) / y; else tmp = cosh(x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.3], N[(N[Sin[y], $MachinePrecision] / y), $MachinePrecision], N[Cosh[x], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.3:\\
\;\;\;\;\frac{\sin y}{y}\\
\mathbf{else}:\\
\;\;\;\;\cosh x\\
\end{array}
\end{array}
if x < 0.299999999999999989Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6472.3%
Simplified72.3%
if 0.299999999999999989 < x Initial program 100.0%
Taylor expanded in y around 0
Simplified76.4%
*-rgt-identityN/A
cosh-lowering-cosh.f6476.4%
Applied egg-rr76.4%
(FPCore (x y) :precision binary64 (cosh x))
double code(double x, double y) {
return cosh(x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = cosh(x)
end function
public static double code(double x, double y) {
return Math.cosh(x);
}
def code(x, y): return math.cosh(x)
function code(x, y) return cosh(x) end
function tmp = code(x, y) tmp = cosh(x); end
code[x_, y_] := N[Cosh[x], $MachinePrecision]
\begin{array}{l}
\\
\cosh x
\end{array}
Initial program 99.9%
Taylor expanded in y around 0
Simplified63.0%
*-rgt-identityN/A
cosh-lowering-cosh.f6463.0%
Applied egg-rr63.0%
(FPCore (x y)
:precision binary64
(if (<= x 2.2e+49)
(*
(+ 1.0 (* 0.5 (* x x)))
(/ (* y (+ 1.0 (* y (* y -0.16666666666666666)))) y))
(+ 1.0 (* x (* x (* (* x x) (* (* x x) 0.001388888888888889)))))))
double code(double x, double y) {
double tmp;
if (x <= 2.2e+49) {
tmp = (1.0 + (0.5 * (x * x))) * ((y * (1.0 + (y * (y * -0.16666666666666666)))) / y);
} else {
tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 2.2d+49) then
tmp = (1.0d0 + (0.5d0 * (x * x))) * ((y * (1.0d0 + (y * (y * (-0.16666666666666666d0))))) / y)
else
tmp = 1.0d0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 2.2e+49) {
tmp = (1.0 + (0.5 * (x * x))) * ((y * (1.0 + (y * (y * -0.16666666666666666)))) / y);
} else {
tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 2.2e+49: tmp = (1.0 + (0.5 * (x * x))) * ((y * (1.0 + (y * (y * -0.16666666666666666)))) / y) else: tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889)))) return tmp
function code(x, y) tmp = 0.0 if (x <= 2.2e+49) tmp = Float64(Float64(1.0 + Float64(0.5 * Float64(x * x))) * Float64(Float64(y * Float64(1.0 + Float64(y * Float64(y * -0.16666666666666666)))) / y)); else tmp = Float64(1.0 + Float64(x * Float64(x * Float64(Float64(x * x) * Float64(Float64(x * x) * 0.001388888888888889))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 2.2e+49) tmp = (1.0 + (0.5 * (x * x))) * ((y * (1.0 + (y * (y * -0.16666666666666666)))) / y); else tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889)))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 2.2e+49], N[(N[(1.0 + N[(0.5 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(y * N[(1.0 + N[(y * N[(y * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * N[(N[(x * x), $MachinePrecision] * 0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.2 \cdot 10^{+49}:\\
\;\;\;\;\left(1 + 0.5 \cdot \left(x \cdot x\right)\right) \cdot \frac{y \cdot \left(1 + y \cdot \left(y \cdot -0.16666666666666666\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;1 + x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot \left(\left(x \cdot x\right) \cdot 0.001388888888888889\right)\right)\right)\\
\end{array}
\end{array}
if x < 2.2000000000000001e49Initial program 99.9%
Taylor expanded in x around 0
*-commutativeN/A
*-commutativeN/A
associate-/l*N/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f6484.1%
Simplified84.1%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6448.3%
Simplified48.3%
if 2.2000000000000001e49 < x Initial program 100.0%
Taylor expanded in y around 0
Simplified84.6%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.0%
Simplified83.0%
Taylor expanded in x around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.0%
Simplified83.0%
(FPCore (x y)
:precision binary64
(/
y
(/
y
(+
1.0
(*
x
(*
x
(+
0.5
(*
(* x x)
(+ 0.041666666666666664 (* (* x x) 0.001388888888888889))))))))))
double code(double x, double y) {
return y / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = y / (y / (1.0d0 + (x * (x * (0.5d0 + ((x * x) * (0.041666666666666664d0 + ((x * x) * 0.001388888888888889d0))))))))
end function
public static double code(double x, double y) {
return y / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))));
}
def code(x, y): return y / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889))))))))
function code(x, y) return Float64(y / Float64(y / Float64(1.0 + Float64(x * Float64(x * Float64(0.5 + Float64(Float64(x * x) * Float64(0.041666666666666664 + Float64(Float64(x * x) * 0.001388888888888889))))))))) end
function tmp = code(x, y) tmp = y / (y / (1.0 + (x * (x * (0.5 + ((x * x) * (0.041666666666666664 + ((x * x) * 0.001388888888888889)))))))); end
code[x_, y_] := N[(y / N[(y / N[(1.0 + N[(x * N[(x * N[(0.5 + N[(N[(x * x), $MachinePrecision] * N[(0.041666666666666664 + N[(N[(x * x), $MachinePrecision] * 0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{\frac{y}{1 + x \cdot \left(x \cdot \left(0.5 + \left(x \cdot x\right) \cdot \left(0.041666666666666664 + \left(x \cdot x\right) \cdot 0.001388888888888889\right)\right)\right)}}
\end{array}
Initial program 99.9%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f6499.9%
Applied egg-rr99.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6495.3%
Simplified95.3%
Taylor expanded in y around 0
Simplified61.7%
(FPCore (x y) :precision binary64 (if (<= x 9.5e+49) (/ (* y (+ 1.0 (* -0.16666666666666666 (* y y)))) y) (+ 1.0 (* x (* x (* (* x x) (* (* x x) 0.001388888888888889)))))))
double code(double x, double y) {
double tmp;
if (x <= 9.5e+49) {
tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y;
} else {
tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 9.5d+49) then
tmp = (y * (1.0d0 + ((-0.16666666666666666d0) * (y * y)))) / y
else
tmp = 1.0d0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889d0))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 9.5e+49) {
tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y;
} else {
tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889))));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 9.5e+49: tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y else: tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889)))) return tmp
function code(x, y) tmp = 0.0 if (x <= 9.5e+49) tmp = Float64(Float64(y * Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y)))) / y); else tmp = Float64(1.0 + Float64(x * Float64(x * Float64(Float64(x * x) * Float64(Float64(x * x) * 0.001388888888888889))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 9.5e+49) tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y; else tmp = 1.0 + (x * (x * ((x * x) * ((x * x) * 0.001388888888888889)))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 9.5e+49], N[(N[(y * N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(1.0 + N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * N[(N[(x * x), $MachinePrecision] * 0.001388888888888889), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 9.5 \cdot 10^{+49}:\\
\;\;\;\;\frac{y \cdot \left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;1 + x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot \left(\left(x \cdot x\right) \cdot 0.001388888888888889\right)\right)\right)\\
\end{array}
\end{array}
if x < 9.49999999999999969e49Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6469.9%
Simplified69.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6442.9%
Simplified42.9%
if 9.49999999999999969e49 < x Initial program 100.0%
Taylor expanded in y around 0
Simplified84.6%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.0%
Simplified83.0%
Taylor expanded in x around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.0%
Simplified83.0%
(FPCore (x y) :precision binary64 (if (<= x 3e+44) (/ (* y (+ 1.0 (* -0.16666666666666666 (* y y)))) y) (/ y (/ (* y 24.0) (* (* x x) (* x x))))))
double code(double x, double y) {
double tmp;
if (x <= 3e+44) {
tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y;
} else {
tmp = y / ((y * 24.0) / ((x * x) * (x * x)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 3d+44) then
tmp = (y * (1.0d0 + ((-0.16666666666666666d0) * (y * y)))) / y
else
tmp = y / ((y * 24.0d0) / ((x * x) * (x * x)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 3e+44) {
tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y;
} else {
tmp = y / ((y * 24.0) / ((x * x) * (x * x)));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 3e+44: tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y else: tmp = y / ((y * 24.0) / ((x * x) * (x * x))) return tmp
function code(x, y) tmp = 0.0 if (x <= 3e+44) tmp = Float64(Float64(y * Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y)))) / y); else tmp = Float64(y / Float64(Float64(y * 24.0) / Float64(Float64(x * x) * Float64(x * x)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 3e+44) tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y; else tmp = y / ((y * 24.0) / ((x * x) * (x * x))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 3e+44], N[(N[(y * N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(y / N[(N[(y * 24.0), $MachinePrecision] / N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3 \cdot 10^{+44}:\\
\;\;\;\;\frac{y \cdot \left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\frac{y \cdot 24}{\left(x \cdot x\right) \cdot \left(x \cdot x\right)}}\\
\end{array}
\end{array}
if x < 2.99999999999999987e44Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6469.9%
Simplified69.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6442.9%
Simplified42.9%
if 2.99999999999999987e44 < x Initial program 100.0%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6491.0%
Simplified91.0%
Taylor expanded in y around 0
Simplified75.7%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6475.7%
Simplified75.7%
(FPCore (x y) :precision binary64 (if (<= x 1.36e+51) (/ (* y (+ 1.0 (* -0.16666666666666666 (* y y)))) y) (* x (* x (* (* x x) 0.041666666666666664)))))
double code(double x, double y) {
double tmp;
if (x <= 1.36e+51) {
tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y;
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 1.36d+51) then
tmp = (y * (1.0d0 + ((-0.16666666666666666d0) * (y * y)))) / y
else
tmp = x * (x * ((x * x) * 0.041666666666666664d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.36e+51) {
tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y;
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.36e+51: tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y else: tmp = x * (x * ((x * x) * 0.041666666666666664)) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.36e+51) tmp = Float64(Float64(y * Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y)))) / y); else tmp = Float64(x * Float64(x * Float64(Float64(x * x) * 0.041666666666666664))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.36e+51) tmp = (y * (1.0 + (-0.16666666666666666 * (y * y)))) / y; else tmp = x * (x * ((x * x) * 0.041666666666666664)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.36e+51], N[(N[(y * N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.36 \cdot 10^{+51}:\\
\;\;\;\;\frac{y \cdot \left(1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)\\
\end{array}
\end{array}
if x < 1.3599999999999999e51Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6469.9%
Simplified69.9%
Taylor expanded in y around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6442.9%
Simplified42.9%
if 1.3599999999999999e51 < x Initial program 100.0%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6491.0%
Simplified91.0%
Taylor expanded in y around 0
Simplified75.7%
Taylor expanded in x around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6472.2%
Simplified72.2%
(FPCore (x y) :precision binary64 (if (<= x 2.9e+81) (/ y (/ y (+ 1.0 (* x (* x 0.5))))) (* x (* x (* (* x x) 0.041666666666666664)))))
double code(double x, double y) {
double tmp;
if (x <= 2.9e+81) {
tmp = y / (y / (1.0 + (x * (x * 0.5))));
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 2.9d+81) then
tmp = y / (y / (1.0d0 + (x * (x * 0.5d0))))
else
tmp = x * (x * ((x * x) * 0.041666666666666664d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 2.9e+81) {
tmp = y / (y / (1.0 + (x * (x * 0.5))));
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 2.9e+81: tmp = y / (y / (1.0 + (x * (x * 0.5)))) else: tmp = x * (x * ((x * x) * 0.041666666666666664)) return tmp
function code(x, y) tmp = 0.0 if (x <= 2.9e+81) tmp = Float64(y / Float64(y / Float64(1.0 + Float64(x * Float64(x * 0.5))))); else tmp = Float64(x * Float64(x * Float64(Float64(x * x) * 0.041666666666666664))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 2.9e+81) tmp = y / (y / (1.0 + (x * (x * 0.5)))); else tmp = x * (x * ((x * x) * 0.041666666666666664)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 2.9e+81], N[(y / N[(y / N[(1.0 + N[(x * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.9 \cdot 10^{+81}:\\
\;\;\;\;\frac{y}{\frac{y}{1 + x \cdot \left(x \cdot 0.5\right)}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)\\
\end{array}
\end{array}
if x < 2.9e81Initial program 99.9%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f6499.9%
Applied egg-rr99.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6490.7%
Simplified90.7%
Taylor expanded in y around 0
Simplified53.9%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.7%
Simplified50.7%
if 2.9e81 < x Initial program 100.0%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in y around 0
Simplified81.8%
Taylor expanded in x around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6481.8%
Simplified81.8%
(FPCore (x y) :precision binary64 (if (<= x 1.36e+51) (+ 1.0 (* -0.16666666666666666 (* y y))) (* x (* x (* (* x x) 0.041666666666666664)))))
double code(double x, double y) {
double tmp;
if (x <= 1.36e+51) {
tmp = 1.0 + (-0.16666666666666666 * (y * y));
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 1.36d+51) then
tmp = 1.0d0 + ((-0.16666666666666666d0) * (y * y))
else
tmp = x * (x * ((x * x) * 0.041666666666666664d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 1.36e+51) {
tmp = 1.0 + (-0.16666666666666666 * (y * y));
} else {
tmp = x * (x * ((x * x) * 0.041666666666666664));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 1.36e+51: tmp = 1.0 + (-0.16666666666666666 * (y * y)) else: tmp = x * (x * ((x * x) * 0.041666666666666664)) return tmp
function code(x, y) tmp = 0.0 if (x <= 1.36e+51) tmp = Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y))); else tmp = Float64(x * Float64(x * Float64(Float64(x * x) * 0.041666666666666664))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 1.36e+51) tmp = 1.0 + (-0.16666666666666666 * (y * y)); else tmp = x * (x * ((x * x) * 0.041666666666666664)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 1.36e+51], N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(N[(x * x), $MachinePrecision] * 0.041666666666666664), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.36 \cdot 10^{+51}:\\
\;\;\;\;1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(\left(x \cdot x\right) \cdot 0.041666666666666664\right)\right)\\
\end{array}
\end{array}
if x < 1.3599999999999999e51Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6469.9%
Simplified69.9%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.2%
Simplified40.2%
if 1.3599999999999999e51 < x Initial program 100.0%
associate-*r/N/A
clear-numN/A
associate-/r*N/A
clear-numN/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
/-lowering-/.f64N/A
cosh-lowering-cosh.f64100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6491.0%
Simplified91.0%
Taylor expanded in y around 0
Simplified75.7%
Taylor expanded in x around inf
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6472.2%
Simplified72.2%
(FPCore (x y) :precision binary64 (if (<= x 7.2e+136) (+ 1.0 (* -0.16666666666666666 (* y y))) (+ 1.0 (* 0.5 (* x x)))))
double code(double x, double y) {
double tmp;
if (x <= 7.2e+136) {
tmp = 1.0 + (-0.16666666666666666 * (y * y));
} else {
tmp = 1.0 + (0.5 * (x * x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 7.2d+136) then
tmp = 1.0d0 + ((-0.16666666666666666d0) * (y * y))
else
tmp = 1.0d0 + (0.5d0 * (x * x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 7.2e+136) {
tmp = 1.0 + (-0.16666666666666666 * (y * y));
} else {
tmp = 1.0 + (0.5 * (x * x));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 7.2e+136: tmp = 1.0 + (-0.16666666666666666 * (y * y)) else: tmp = 1.0 + (0.5 * (x * x)) return tmp
function code(x, y) tmp = 0.0 if (x <= 7.2e+136) tmp = Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y))); else tmp = Float64(1.0 + Float64(0.5 * Float64(x * x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 7.2e+136) tmp = 1.0 + (-0.16666666666666666 * (y * y)); else tmp = 1.0 + (0.5 * (x * x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 7.2e+136], N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(0.5 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 7.2 \cdot 10^{+136}:\\
\;\;\;\;1 + -0.16666666666666666 \cdot \left(y \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;1 + 0.5 \cdot \left(x \cdot x\right)\\
\end{array}
\end{array}
if x < 7.20000000000000011e136Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6465.0%
Simplified65.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6437.5%
Simplified37.5%
if 7.20000000000000011e136 < x Initial program 100.0%
Taylor expanded in y around 0
Simplified83.3%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6475.8%
Simplified75.8%
(FPCore (x y) :precision binary64 (if (<= y 2.92e+110) 1.0 (* -0.16666666666666666 (* y y))))
double code(double x, double y) {
double tmp;
if (y <= 2.92e+110) {
tmp = 1.0;
} else {
tmp = -0.16666666666666666 * (y * y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2.92d+110) then
tmp = 1.0d0
else
tmp = (-0.16666666666666666d0) * (y * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2.92e+110) {
tmp = 1.0;
} else {
tmp = -0.16666666666666666 * (y * y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2.92e+110: tmp = 1.0 else: tmp = -0.16666666666666666 * (y * y) return tmp
function code(x, y) tmp = 0.0 if (y <= 2.92e+110) tmp = 1.0; else tmp = Float64(-0.16666666666666666 * Float64(y * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2.92e+110) tmp = 1.0; else tmp = -0.16666666666666666 * (y * y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2.92e+110], 1.0, N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.92 \cdot 10^{+110}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;-0.16666666666666666 \cdot \left(y \cdot y\right)\\
\end{array}
\end{array}
if y < 2.9199999999999999e110Initial program 99.9%
Taylor expanded in y around 0
Simplified71.8%
Taylor expanded in x around 0
Simplified35.6%
if 2.9199999999999999e110 < y Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6452.0%
Simplified52.0%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.6%
Simplified21.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6421.6%
Simplified21.6%
(FPCore (x y) :precision binary64 (+ 1.0 (* -0.16666666666666666 (* y y))))
double code(double x, double y) {
return 1.0 + (-0.16666666666666666 * (y * y));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((-0.16666666666666666d0) * (y * y))
end function
public static double code(double x, double y) {
return 1.0 + (-0.16666666666666666 * (y * y));
}
def code(x, y): return 1.0 + (-0.16666666666666666 * (y * y))
function code(x, y) return Float64(1.0 + Float64(-0.16666666666666666 * Float64(y * y))) end
function tmp = code(x, y) tmp = 1.0 + (-0.16666666666666666 * (y * y)); end
code[x_, y_] := N[(1.0 + N[(-0.16666666666666666 * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + -0.16666666666666666 \cdot \left(y \cdot y\right)
\end{array}
Initial program 99.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
sin-lowering-sin.f6456.3%
Simplified56.3%
Taylor expanded in y around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6433.6%
Simplified33.6%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.9%
Taylor expanded in y around 0
Simplified63.0%
Taylor expanded in x around 0
Simplified29.8%
(FPCore (x y) :precision binary64 (/ (* (cosh x) (sin y)) y))
double code(double x, double y) {
return (cosh(x) * sin(y)) / y;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (cosh(x) * sin(y)) / y
end function
public static double code(double x, double y) {
return (Math.cosh(x) * Math.sin(y)) / y;
}
def code(x, y): return (math.cosh(x) * math.sin(y)) / y
function code(x, y) return Float64(Float64(cosh(x) * sin(y)) / y) end
function tmp = code(x, y) tmp = (cosh(x) * sin(y)) / y; end
code[x_, y_] := N[(N[(N[Cosh[x], $MachinePrecision] * N[Sin[y], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\cosh x \cdot \sin y}{y}
\end{array}
herbie shell --seed 2024155
(FPCore (x y)
:name "Linear.Quaternion:$csinh from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (/ (* (cosh x) (sin y)) y))
(* (cosh x) (/ (sin y) y)))