
(FPCore (re im) :precision binary64 (* (exp re) (sin im)))
double code(double re, double im) {
return exp(re) * sin(im);
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
code = exp(re) * sin(im)
end function
public static double code(double re, double im) {
return Math.exp(re) * Math.sin(im);
}
def code(re, im): return math.exp(re) * math.sin(im)
function code(re, im) return Float64(exp(re) * sin(im)) end
function tmp = code(re, im) tmp = exp(re) * sin(im); end
code[re_, im_] := N[(N[Exp[re], $MachinePrecision] * N[Sin[im], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
e^{re} \cdot \sin im
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (re im) :precision binary64 (* (exp re) (sin im)))
double code(double re, double im) {
return exp(re) * sin(im);
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
code = exp(re) * sin(im)
end function
public static double code(double re, double im) {
return Math.exp(re) * Math.sin(im);
}
def code(re, im): return math.exp(re) * math.sin(im)
function code(re, im) return Float64(exp(re) * sin(im)) end
function tmp = code(re, im) tmp = exp(re) * sin(im); end
code[re_, im_] := N[(N[Exp[re], $MachinePrecision] * N[Sin[im], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
e^{re} \cdot \sin im
\end{array}
(FPCore (re im) :precision binary64 (* (exp re) (sin im)))
double code(double re, double im) {
return exp(re) * sin(im);
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
code = exp(re) * sin(im)
end function
public static double code(double re, double im) {
return Math.exp(re) * Math.sin(im);
}
def code(re, im): return math.exp(re) * math.sin(im)
function code(re, im) return Float64(exp(re) * sin(im)) end
function tmp = code(re, im) tmp = exp(re) * sin(im); end
code[re_, im_] := N[(N[Exp[re], $MachinePrecision] * N[Sin[im], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
e^{re} \cdot \sin im
\end{array}
Initial program 100.0%
(FPCore (re im) :precision binary64 (let* ((t_0 (* (exp re) im))) (if (<= (exp re) 0.9995) t_0 (if (<= (exp re) 1.05) (sin im) t_0))))
double code(double re, double im) {
double t_0 = exp(re) * im;
double tmp;
if (exp(re) <= 0.9995) {
tmp = t_0;
} else if (exp(re) <= 1.05) {
tmp = sin(im);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = exp(re) * im
if (exp(re) <= 0.9995d0) then
tmp = t_0
else if (exp(re) <= 1.05d0) then
tmp = sin(im)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = Math.exp(re) * im;
double tmp;
if (Math.exp(re) <= 0.9995) {
tmp = t_0;
} else if (Math.exp(re) <= 1.05) {
tmp = Math.sin(im);
} else {
tmp = t_0;
}
return tmp;
}
def code(re, im): t_0 = math.exp(re) * im tmp = 0 if math.exp(re) <= 0.9995: tmp = t_0 elif math.exp(re) <= 1.05: tmp = math.sin(im) else: tmp = t_0 return tmp
function code(re, im) t_0 = Float64(exp(re) * im) tmp = 0.0 if (exp(re) <= 0.9995) tmp = t_0; elseif (exp(re) <= 1.05) tmp = sin(im); else tmp = t_0; end return tmp end
function tmp_2 = code(re, im) t_0 = exp(re) * im; tmp = 0.0; if (exp(re) <= 0.9995) tmp = t_0; elseif (exp(re) <= 1.05) tmp = sin(im); else tmp = t_0; end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(N[Exp[re], $MachinePrecision] * im), $MachinePrecision]}, If[LessEqual[N[Exp[re], $MachinePrecision], 0.9995], t$95$0, If[LessEqual[N[Exp[re], $MachinePrecision], 1.05], N[Sin[im], $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{re} \cdot im\\
\mathbf{if}\;e^{re} \leq 0.9995:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;e^{re} \leq 1.05:\\
\;\;\;\;\sin im\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if (exp.f64 re) < 0.99950000000000006 or 1.05000000000000004 < (exp.f64 re) Initial program 100.0%
Taylor expanded in im around 0
Simplified92.1%
if 0.99950000000000006 < (exp.f64 re) < 1.05000000000000004Initial program 100.0%
Taylor expanded in re around 0
sin-lowering-sin.f6499.1%
Simplified99.1%
(FPCore (re im)
:precision binary64
(let* ((t_0 (* (exp re) im))
(t_1
(*
(sin im)
(+ 1.0 (* re (+ 1.0 (* re (+ 0.5 (* re 0.16666666666666666)))))))))
(if (<= re -0.038)
t_0
(if (<= re 0.047) t_1 (if (<= re 1.02e+103) t_0 t_1)))))
double code(double re, double im) {
double t_0 = exp(re) * im;
double t_1 = sin(im) * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666))))));
double tmp;
if (re <= -0.038) {
tmp = t_0;
} else if (re <= 0.047) {
tmp = t_1;
} else if (re <= 1.02e+103) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = exp(re) * im
t_1 = sin(im) * (1.0d0 + (re * (1.0d0 + (re * (0.5d0 + (re * 0.16666666666666666d0))))))
if (re <= (-0.038d0)) then
tmp = t_0
else if (re <= 0.047d0) then
tmp = t_1
else if (re <= 1.02d+103) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = Math.exp(re) * im;
double t_1 = Math.sin(im) * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666))))));
double tmp;
if (re <= -0.038) {
tmp = t_0;
} else if (re <= 0.047) {
tmp = t_1;
} else if (re <= 1.02e+103) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(re, im): t_0 = math.exp(re) * im t_1 = math.sin(im) * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666)))))) tmp = 0 if re <= -0.038: tmp = t_0 elif re <= 0.047: tmp = t_1 elif re <= 1.02e+103: tmp = t_0 else: tmp = t_1 return tmp
function code(re, im) t_0 = Float64(exp(re) * im) t_1 = Float64(sin(im) * Float64(1.0 + Float64(re * Float64(1.0 + Float64(re * Float64(0.5 + Float64(re * 0.16666666666666666))))))) tmp = 0.0 if (re <= -0.038) tmp = t_0; elseif (re <= 0.047) tmp = t_1; elseif (re <= 1.02e+103) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(re, im) t_0 = exp(re) * im; t_1 = sin(im) * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666)))))); tmp = 0.0; if (re <= -0.038) tmp = t_0; elseif (re <= 0.047) tmp = t_1; elseif (re <= 1.02e+103) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(N[Exp[re], $MachinePrecision] * im), $MachinePrecision]}, Block[{t$95$1 = N[(N[Sin[im], $MachinePrecision] * N[(1.0 + N[(re * N[(1.0 + N[(re * N[(0.5 + N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -0.038], t$95$0, If[LessEqual[re, 0.047], t$95$1, If[LessEqual[re, 1.02e+103], t$95$0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{re} \cdot im\\
t_1 := \sin im \cdot \left(1 + re \cdot \left(1 + re \cdot \left(0.5 + re \cdot 0.16666666666666666\right)\right)\right)\\
\mathbf{if}\;re \leq -0.038:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;re \leq 0.047:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;re \leq 1.02 \cdot 10^{+103}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if re < -0.0379999999999999991 or 0.047 < re < 1.01999999999999991e103Initial program 100.0%
Taylor expanded in im around 0
Simplified95.1%
if -0.0379999999999999991 < re < 0.047 or 1.01999999999999991e103 < re Initial program 100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6499.6%
Simplified99.6%
Final simplification97.8%
(FPCore (re im)
:precision binary64
(let* ((t_0 (* (exp re) im))
(t_1 (* (sin im) (+ 1.0 (* re (+ 1.0 (* re 0.5)))))))
(if (<= re -0.015)
t_0
(if (<= re 0.034) t_1 (if (<= re 1.85e+154) t_0 t_1)))))
double code(double re, double im) {
double t_0 = exp(re) * im;
double t_1 = sin(im) * (1.0 + (re * (1.0 + (re * 0.5))));
double tmp;
if (re <= -0.015) {
tmp = t_0;
} else if (re <= 0.034) {
tmp = t_1;
} else if (re <= 1.85e+154) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = exp(re) * im
t_1 = sin(im) * (1.0d0 + (re * (1.0d0 + (re * 0.5d0))))
if (re <= (-0.015d0)) then
tmp = t_0
else if (re <= 0.034d0) then
tmp = t_1
else if (re <= 1.85d+154) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = Math.exp(re) * im;
double t_1 = Math.sin(im) * (1.0 + (re * (1.0 + (re * 0.5))));
double tmp;
if (re <= -0.015) {
tmp = t_0;
} else if (re <= 0.034) {
tmp = t_1;
} else if (re <= 1.85e+154) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(re, im): t_0 = math.exp(re) * im t_1 = math.sin(im) * (1.0 + (re * (1.0 + (re * 0.5)))) tmp = 0 if re <= -0.015: tmp = t_0 elif re <= 0.034: tmp = t_1 elif re <= 1.85e+154: tmp = t_0 else: tmp = t_1 return tmp
function code(re, im) t_0 = Float64(exp(re) * im) t_1 = Float64(sin(im) * Float64(1.0 + Float64(re * Float64(1.0 + Float64(re * 0.5))))) tmp = 0.0 if (re <= -0.015) tmp = t_0; elseif (re <= 0.034) tmp = t_1; elseif (re <= 1.85e+154) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(re, im) t_0 = exp(re) * im; t_1 = sin(im) * (1.0 + (re * (1.0 + (re * 0.5)))); tmp = 0.0; if (re <= -0.015) tmp = t_0; elseif (re <= 0.034) tmp = t_1; elseif (re <= 1.85e+154) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(N[Exp[re], $MachinePrecision] * im), $MachinePrecision]}, Block[{t$95$1 = N[(N[Sin[im], $MachinePrecision] * N[(1.0 + N[(re * N[(1.0 + N[(re * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -0.015], t$95$0, If[LessEqual[re, 0.034], t$95$1, If[LessEqual[re, 1.85e+154], t$95$0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{re} \cdot im\\
t_1 := \sin im \cdot \left(1 + re \cdot \left(1 + re \cdot 0.5\right)\right)\\
\mathbf{if}\;re \leq -0.015:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;re \leq 0.034:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;re \leq 1.85 \cdot 10^{+154}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if re < -0.014999999999999999 or 0.034000000000000002 < re < 1.84999999999999997e154Initial program 100.0%
Taylor expanded in im around 0
Simplified94.8%
if -0.014999999999999999 < re < 0.034000000000000002 or 1.84999999999999997e154 < re Initial program 100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6499.4%
Simplified99.4%
Final simplification97.3%
(FPCore (re im) :precision binary64 (let* ((t_0 (* (exp re) im))) (if (<= re -0.00036) t_0 (if (<= re 0.024) (* (sin im) (+ re 1.0)) t_0))))
double code(double re, double im) {
double t_0 = exp(re) * im;
double tmp;
if (re <= -0.00036) {
tmp = t_0;
} else if (re <= 0.024) {
tmp = sin(im) * (re + 1.0);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = exp(re) * im
if (re <= (-0.00036d0)) then
tmp = t_0
else if (re <= 0.024d0) then
tmp = sin(im) * (re + 1.0d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = Math.exp(re) * im;
double tmp;
if (re <= -0.00036) {
tmp = t_0;
} else if (re <= 0.024) {
tmp = Math.sin(im) * (re + 1.0);
} else {
tmp = t_0;
}
return tmp;
}
def code(re, im): t_0 = math.exp(re) * im tmp = 0 if re <= -0.00036: tmp = t_0 elif re <= 0.024: tmp = math.sin(im) * (re + 1.0) else: tmp = t_0 return tmp
function code(re, im) t_0 = Float64(exp(re) * im) tmp = 0.0 if (re <= -0.00036) tmp = t_0; elseif (re <= 0.024) tmp = Float64(sin(im) * Float64(re + 1.0)); else tmp = t_0; end return tmp end
function tmp_2 = code(re, im) t_0 = exp(re) * im; tmp = 0.0; if (re <= -0.00036) tmp = t_0; elseif (re <= 0.024) tmp = sin(im) * (re + 1.0); else tmp = t_0; end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(N[Exp[re], $MachinePrecision] * im), $MachinePrecision]}, If[LessEqual[re, -0.00036], t$95$0, If[LessEqual[re, 0.024], N[(N[Sin[im], $MachinePrecision] * N[(re + 1.0), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := e^{re} \cdot im\\
\mathbf{if}\;re \leq -0.00036:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;re \leq 0.024:\\
\;\;\;\;\sin im \cdot \left(re + 1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if re < -3.60000000000000023e-4 or 0.024 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified92.1%
if -3.60000000000000023e-4 < re < 0.024Initial program 100.0%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6499.4%
Simplified99.4%
Final simplification95.3%
(FPCore (re im)
:precision binary64
(let* ((t_0 (+ 0.5 (* re 0.16666666666666666)))
(t_1 (+ 1.0 (* re t_0)))
(t_2 (* re t_1))
(t_3 (* t_0 (* re re))))
(if (<= re -48000000000000.0)
(* (+ re 1.0) (* im (* -0.16666666666666666 (* im im))))
(if (<= re 0.024)
(sin im)
(if (<= re 1.15e+51)
(/
(* im (+ 1.0 (* t_2 (* (* re re) (* t_1 t_1)))))
(+ 1.0 (* t_2 (+ t_2 -1.0))))
(if (<= re 1.02e+103)
(* im (+ 1.0 (/ (- (* re re) (* t_3 t_3)) (- re t_3))))
(* im (* re (* re (* re 0.16666666666666666))))))))))
double code(double re, double im) {
double t_0 = 0.5 + (re * 0.16666666666666666);
double t_1 = 1.0 + (re * t_0);
double t_2 = re * t_1;
double t_3 = t_0 * (re * re);
double tmp;
if (re <= -48000000000000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 0.024) {
tmp = sin(im);
} else if (re <= 1.15e+51) {
tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0)));
} else if (re <= 1.02e+103) {
tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = 0.5d0 + (re * 0.16666666666666666d0)
t_1 = 1.0d0 + (re * t_0)
t_2 = re * t_1
t_3 = t_0 * (re * re)
if (re <= (-48000000000000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else if (re <= 0.024d0) then
tmp = sin(im)
else if (re <= 1.15d+51) then
tmp = (im * (1.0d0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0d0 + (t_2 * (t_2 + (-1.0d0))))
else if (re <= 1.02d+103) then
tmp = im * (1.0d0 + (((re * re) - (t_3 * t_3)) / (re - t_3)))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = 0.5 + (re * 0.16666666666666666);
double t_1 = 1.0 + (re * t_0);
double t_2 = re * t_1;
double t_3 = t_0 * (re * re);
double tmp;
if (re <= -48000000000000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 0.024) {
tmp = Math.sin(im);
} else if (re <= 1.15e+51) {
tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0)));
} else if (re <= 1.02e+103) {
tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): t_0 = 0.5 + (re * 0.16666666666666666) t_1 = 1.0 + (re * t_0) t_2 = re * t_1 t_3 = t_0 * (re * re) tmp = 0 if re <= -48000000000000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) elif re <= 0.024: tmp = math.sin(im) elif re <= 1.15e+51: tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0))) elif re <= 1.02e+103: tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) t_0 = Float64(0.5 + Float64(re * 0.16666666666666666)) t_1 = Float64(1.0 + Float64(re * t_0)) t_2 = Float64(re * t_1) t_3 = Float64(t_0 * Float64(re * re)) tmp = 0.0 if (re <= -48000000000000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); elseif (re <= 0.024) tmp = sin(im); elseif (re <= 1.15e+51) tmp = Float64(Float64(im * Float64(1.0 + Float64(t_2 * Float64(Float64(re * re) * Float64(t_1 * t_1))))) / Float64(1.0 + Float64(t_2 * Float64(t_2 + -1.0)))); elseif (re <= 1.02e+103) tmp = Float64(im * Float64(1.0 + Float64(Float64(Float64(re * re) - Float64(t_3 * t_3)) / Float64(re - t_3)))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) t_0 = 0.5 + (re * 0.16666666666666666); t_1 = 1.0 + (re * t_0); t_2 = re * t_1; t_3 = t_0 * (re * re); tmp = 0.0; if (re <= -48000000000000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); elseif (re <= 0.024) tmp = sin(im); elseif (re <= 1.15e+51) tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0))); elseif (re <= 1.02e+103) tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(0.5 + N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(1.0 + N[(re * t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(re * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$0 * N[(re * re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -48000000000000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 0.024], N[Sin[im], $MachinePrecision], If[LessEqual[re, 1.15e+51], N[(N[(im * N[(1.0 + N[(t$95$2 * N[(N[(re * re), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(t$95$2 * N[(t$95$2 + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 1.02e+103], N[(im * N[(1.0 + N[(N[(N[(re * re), $MachinePrecision] - N[(t$95$3 * t$95$3), $MachinePrecision]), $MachinePrecision] / N[(re - t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.5 + re \cdot 0.16666666666666666\\
t_1 := 1 + re \cdot t\_0\\
t_2 := re \cdot t\_1\\
t_3 := t\_0 \cdot \left(re \cdot re\right)\\
\mathbf{if}\;re \leq -48000000000000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{elif}\;re \leq 0.024:\\
\;\;\;\;\sin im\\
\mathbf{elif}\;re \leq 1.15 \cdot 10^{+51}:\\
\;\;\;\;\frac{im \cdot \left(1 + t\_2 \cdot \left(\left(re \cdot re\right) \cdot \left(t\_1 \cdot t\_1\right)\right)\right)}{1 + t\_2 \cdot \left(t\_2 + -1\right)}\\
\mathbf{elif}\;re \leq 1.02 \cdot 10^{+103}:\\
\;\;\;\;im \cdot \left(1 + \frac{re \cdot re - t\_3 \cdot t\_3}{re - t\_3}\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -4.8e13Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.8%
Simplified65.8%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6440.9%
Simplified40.9%
if -4.8e13 < re < 0.024Initial program 100.0%
Taylor expanded in re around 0
sin-lowering-sin.f6495.3%
Simplified95.3%
if 0.024 < re < 1.15000000000000003e51Initial program 100.0%
Taylor expanded in im around 0
Simplified72.2%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f647.4%
Simplified7.4%
flip3-+N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr39.3%
if 1.15000000000000003e51 < re < 1.01999999999999991e103Initial program 100.0%
Taylor expanded in im around 0
Simplified100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6428.9%
Simplified28.9%
distribute-rgt-inN/A
*-lft-identityN/A
flip-+N/A
/-lowering-/.f64N/A
Applied egg-rr100.0%
if 1.01999999999999991e103 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified85.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Final simplification74.4%
(FPCore (re im)
:precision binary64
(let* ((t_0 (+ 0.5 (* re 0.16666666666666666)))
(t_1 (+ 1.0 (* re t_0)))
(t_2 (* re t_1))
(t_3 (* t_0 (* re re))))
(if (<= re -600000.0)
(* (+ re 1.0) (* im (* -0.16666666666666666 (* im im))))
(if (<= re 1.15e+51)
(/
(* im (+ 1.0 (* t_2 (* (* re re) (* t_1 t_1)))))
(+ 1.0 (* t_2 (+ t_2 -1.0))))
(if (<= re 1.02e+103)
(* im (+ 1.0 (/ (- (* re re) (* t_3 t_3)) (- re t_3))))
(* im (* re (* re (* re 0.16666666666666666)))))))))
double code(double re, double im) {
double t_0 = 0.5 + (re * 0.16666666666666666);
double t_1 = 1.0 + (re * t_0);
double t_2 = re * t_1;
double t_3 = t_0 * (re * re);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 1.15e+51) {
tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0)));
} else if (re <= 1.02e+103) {
tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = 0.5d0 + (re * 0.16666666666666666d0)
t_1 = 1.0d0 + (re * t_0)
t_2 = re * t_1
t_3 = t_0 * (re * re)
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else if (re <= 1.15d+51) then
tmp = (im * (1.0d0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0d0 + (t_2 * (t_2 + (-1.0d0))))
else if (re <= 1.02d+103) then
tmp = im * (1.0d0 + (((re * re) - (t_3 * t_3)) / (re - t_3)))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = 0.5 + (re * 0.16666666666666666);
double t_1 = 1.0 + (re * t_0);
double t_2 = re * t_1;
double t_3 = t_0 * (re * re);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 1.15e+51) {
tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0)));
} else if (re <= 1.02e+103) {
tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): t_0 = 0.5 + (re * 0.16666666666666666) t_1 = 1.0 + (re * t_0) t_2 = re * t_1 t_3 = t_0 * (re * re) tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) elif re <= 1.15e+51: tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0))) elif re <= 1.02e+103: tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) t_0 = Float64(0.5 + Float64(re * 0.16666666666666666)) t_1 = Float64(1.0 + Float64(re * t_0)) t_2 = Float64(re * t_1) t_3 = Float64(t_0 * Float64(re * re)) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); elseif (re <= 1.15e+51) tmp = Float64(Float64(im * Float64(1.0 + Float64(t_2 * Float64(Float64(re * re) * Float64(t_1 * t_1))))) / Float64(1.0 + Float64(t_2 * Float64(t_2 + -1.0)))); elseif (re <= 1.02e+103) tmp = Float64(im * Float64(1.0 + Float64(Float64(Float64(re * re) - Float64(t_3 * t_3)) / Float64(re - t_3)))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) t_0 = 0.5 + (re * 0.16666666666666666); t_1 = 1.0 + (re * t_0); t_2 = re * t_1; t_3 = t_0 * (re * re); tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); elseif (re <= 1.15e+51) tmp = (im * (1.0 + (t_2 * ((re * re) * (t_1 * t_1))))) / (1.0 + (t_2 * (t_2 + -1.0))); elseif (re <= 1.02e+103) tmp = im * (1.0 + (((re * re) - (t_3 * t_3)) / (re - t_3))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(0.5 + N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(1.0 + N[(re * t$95$0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(re * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$0 * N[(re * re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 1.15e+51], N[(N[(im * N[(1.0 + N[(t$95$2 * N[(N[(re * re), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(t$95$2 * N[(t$95$2 + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 1.02e+103], N[(im * N[(1.0 + N[(N[(N[(re * re), $MachinePrecision] - N[(t$95$3 * t$95$3), $MachinePrecision]), $MachinePrecision] / N[(re - t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.5 + re \cdot 0.16666666666666666\\
t_1 := 1 + re \cdot t\_0\\
t_2 := re \cdot t\_1\\
t_3 := t\_0 \cdot \left(re \cdot re\right)\\
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{elif}\;re \leq 1.15 \cdot 10^{+51}:\\
\;\;\;\;\frac{im \cdot \left(1 + t\_2 \cdot \left(\left(re \cdot re\right) \cdot \left(t\_1 \cdot t\_1\right)\right)\right)}{1 + t\_2 \cdot \left(t\_2 + -1\right)}\\
\mathbf{elif}\;re \leq 1.02 \cdot 10^{+103}:\\
\;\;\;\;im \cdot \left(1 + \frac{re \cdot re - t\_3 \cdot t\_3}{re - t\_3}\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 1.15000000000000003e51Initial program 100.0%
Taylor expanded in im around 0
Simplified51.5%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6441.3%
Simplified41.3%
flip3-+N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr45.6%
if 1.15000000000000003e51 < re < 1.01999999999999991e103Initial program 100.0%
Taylor expanded in im around 0
Simplified100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6428.9%
Simplified28.9%
distribute-rgt-inN/A
*-lft-identityN/A
flip-+N/A
/-lowering-/.f64N/A
Applied egg-rr100.0%
if 1.01999999999999991e103 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified85.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Final simplification51.8%
(FPCore (re im)
:precision binary64
(let* ((t_0 (* re (* re 0.5))))
(if (<= re -600000.0)
(* (+ re 1.0) (* im (* -0.16666666666666666 (* im im))))
(if (<= re 2e+97)
(*
(+ 1.0 (/ (- (* re re) (* t_0 t_0)) (- re t_0)))
(*
im
(+
1.0
(*
im
(*
im
(+ -0.16666666666666666 (* im (* im 0.008333333333333333))))))))
(* im (* re (* re (* re 0.16666666666666666))))))))
double code(double re, double im) {
double t_0 = re * (re * 0.5);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 2e+97) {
tmp = (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0))) * (im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333)))))));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = re * (re * 0.5d0)
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else if (re <= 2d+97) then
tmp = (1.0d0 + (((re * re) - (t_0 * t_0)) / (re - t_0))) * (im * (1.0d0 + (im * (im * ((-0.16666666666666666d0) + (im * (im * 0.008333333333333333d0)))))))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = re * (re * 0.5);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 2e+97) {
tmp = (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0))) * (im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333)))))));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): t_0 = re * (re * 0.5) tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) elif re <= 2e+97: tmp = (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0))) * (im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333))))))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) t_0 = Float64(re * Float64(re * 0.5)) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); elseif (re <= 2e+97) tmp = Float64(Float64(1.0 + Float64(Float64(Float64(re * re) - Float64(t_0 * t_0)) / Float64(re - t_0))) * Float64(im * Float64(1.0 + Float64(im * Float64(im * Float64(-0.16666666666666666 + Float64(im * Float64(im * 0.008333333333333333)))))))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) t_0 = re * (re * 0.5); tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); elseif (re <= 2e+97) tmp = (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0))) * (im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333))))))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(re * N[(re * 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 2e+97], N[(N[(1.0 + N[(N[(N[(re * re), $MachinePrecision] - N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision] / N[(re - t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(im * N[(1.0 + N[(im * N[(im * N[(-0.16666666666666666 + N[(im * N[(im * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := re \cdot \left(re \cdot 0.5\right)\\
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{elif}\;re \leq 2 \cdot 10^{+97}:\\
\;\;\;\;\left(1 + \frac{re \cdot re - t\_0 \cdot t\_0}{re - t\_0}\right) \cdot \left(im \cdot \left(1 + im \cdot \left(im \cdot \left(-0.16666666666666666 + im \cdot \left(im \cdot 0.008333333333333333\right)\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 2.0000000000000001e97Initial program 100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6480.7%
Simplified80.7%
Taylor expanded in im around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6442.7%
Simplified42.7%
distribute-lft-inN/A
*-rgt-identityN/A
flip-+N/A
*-lft-identityN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
fmm-defN/A
*-lft-identityN/A
Applied egg-rr45.4%
if 2.0000000000000001e97 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified85.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Final simplification50.0%
(FPCore (re im)
:precision binary64
(let* ((t_0 (* (+ 0.5 (* re 0.16666666666666666)) (* re re))))
(if (<= re -600000.0)
(* (+ re 1.0) (* im (* -0.16666666666666666 (* im im))))
(if (<= re 1.02e+103)
(* im (+ 1.0 (/ (- (* re re) (* t_0 t_0)) (- re t_0))))
(* im (* re (* re (* re 0.16666666666666666))))))))
double code(double re, double im) {
double t_0 = (0.5 + (re * 0.16666666666666666)) * (re * re);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 1.02e+103) {
tmp = im * (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = (0.5d0 + (re * 0.16666666666666666d0)) * (re * re)
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else if (re <= 1.02d+103) then
tmp = im * (1.0d0 + (((re * re) - (t_0 * t_0)) / (re - t_0)))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = (0.5 + (re * 0.16666666666666666)) * (re * re);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 1.02e+103) {
tmp = im * (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): t_0 = (0.5 + (re * 0.16666666666666666)) * (re * re) tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) elif re <= 1.02e+103: tmp = im * (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) t_0 = Float64(Float64(0.5 + Float64(re * 0.16666666666666666)) * Float64(re * re)) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); elseif (re <= 1.02e+103) tmp = Float64(im * Float64(1.0 + Float64(Float64(Float64(re * re) - Float64(t_0 * t_0)) / Float64(re - t_0)))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) t_0 = (0.5 + (re * 0.16666666666666666)) * (re * re); tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); elseif (re <= 1.02e+103) tmp = im * (1.0 + (((re * re) - (t_0 * t_0)) / (re - t_0))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(N[(0.5 + N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision] * N[(re * re), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 1.02e+103], N[(im * N[(1.0 + N[(N[(N[(re * re), $MachinePrecision] - N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision] / N[(re - t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(0.5 + re \cdot 0.16666666666666666\right) \cdot \left(re \cdot re\right)\\
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{elif}\;re \leq 1.02 \cdot 10^{+103}:\\
\;\;\;\;im \cdot \left(1 + \frac{re \cdot re - t\_0 \cdot t\_0}{re - t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 1.01999999999999991e103Initial program 100.0%
Taylor expanded in im around 0
Simplified54.3%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6440.6%
Simplified40.6%
distribute-rgt-inN/A
*-lft-identityN/A
flip-+N/A
/-lowering-/.f64N/A
Applied egg-rr44.6%
if 1.01999999999999991e103 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified85.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Final simplification49.5%
(FPCore (re im)
:precision binary64
(let* ((t_0 (+ 0.5 (* re 0.16666666666666666))))
(if (<= re -600000.0)
(* (+ re 1.0) (* im (* -0.16666666666666666 (* im im))))
(if (<= re 5e+153)
(*
im
(+
1.0
(/ (* re (- 1.0 (* t_0 (* t_0 (* re re))))) (- 1.0 (* re t_0)))))
(* im (* 0.5 (* re re)))))))
double code(double re, double im) {
double t_0 = 0.5 + (re * 0.16666666666666666);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 5e+153) {
tmp = im * (1.0 + ((re * (1.0 - (t_0 * (t_0 * (re * re))))) / (1.0 - (re * t_0))));
} else {
tmp = im * (0.5 * (re * re));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = 0.5d0 + (re * 0.16666666666666666d0)
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else if (re <= 5d+153) then
tmp = im * (1.0d0 + ((re * (1.0d0 - (t_0 * (t_0 * (re * re))))) / (1.0d0 - (re * t_0))))
else
tmp = im * (0.5d0 * (re * re))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = 0.5 + (re * 0.16666666666666666);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 5e+153) {
tmp = im * (1.0 + ((re * (1.0 - (t_0 * (t_0 * (re * re))))) / (1.0 - (re * t_0))));
} else {
tmp = im * (0.5 * (re * re));
}
return tmp;
}
def code(re, im): t_0 = 0.5 + (re * 0.16666666666666666) tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) elif re <= 5e+153: tmp = im * (1.0 + ((re * (1.0 - (t_0 * (t_0 * (re * re))))) / (1.0 - (re * t_0)))) else: tmp = im * (0.5 * (re * re)) return tmp
function code(re, im) t_0 = Float64(0.5 + Float64(re * 0.16666666666666666)) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); elseif (re <= 5e+153) tmp = Float64(im * Float64(1.0 + Float64(Float64(re * Float64(1.0 - Float64(t_0 * Float64(t_0 * Float64(re * re))))) / Float64(1.0 - Float64(re * t_0))))); else tmp = Float64(im * Float64(0.5 * Float64(re * re))); end return tmp end
function tmp_2 = code(re, im) t_0 = 0.5 + (re * 0.16666666666666666); tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); elseif (re <= 5e+153) tmp = im * (1.0 + ((re * (1.0 - (t_0 * (t_0 * (re * re))))) / (1.0 - (re * t_0)))); else tmp = im * (0.5 * (re * re)); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(0.5 + N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 5e+153], N[(im * N[(1.0 + N[(N[(re * N[(1.0 - N[(t$95$0 * N[(t$95$0 * N[(re * re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 - N[(re * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(0.5 * N[(re * re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.5 + re \cdot 0.16666666666666666\\
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{elif}\;re \leq 5 \cdot 10^{+153}:\\
\;\;\;\;im \cdot \left(1 + \frac{re \cdot \left(1 - t\_0 \cdot \left(t\_0 \cdot \left(re \cdot re\right)\right)\right)}{1 - re \cdot t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(0.5 \cdot \left(re \cdot re\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 5.00000000000000018e153Initial program 100.0%
Taylor expanded in im around 0
Simplified57.2%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6444.6%
Simplified44.6%
*-commutativeN/A
flip-+N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr47.7%
if 5.00000000000000018e153 < re Initial program 100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64100.0%
Simplified100.0%
Taylor expanded in im around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6482.1%
Simplified82.1%
Taylor expanded in re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6482.1%
Simplified82.1%
Taylor expanded in im around 0
Simplified82.1%
Final simplification49.2%
(FPCore (re im)
:precision binary64
(if (<= re -600000.0)
(* (+ re 1.0) (* im (* -0.16666666666666666 (* im im))))
(if (<= re 2.45e+48)
(*
im
(+
1.0
(*
im
(* im (+ -0.16666666666666666 (* im (* im 0.008333333333333333)))))))
(* im (* re (* re (* re 0.16666666666666666)))))))
double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 2.45e+48) {
tmp = im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333))))));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else if (re <= 2.45d+48) then
tmp = im * (1.0d0 + (im * (im * ((-0.16666666666666666d0) + (im * (im * 0.008333333333333333d0))))))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else if (re <= 2.45e+48) {
tmp = im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333))))));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) elif re <= 2.45e+48: tmp = im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333)))))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); elseif (re <= 2.45e+48) tmp = Float64(im * Float64(1.0 + Float64(im * Float64(im * Float64(-0.16666666666666666 + Float64(im * Float64(im * 0.008333333333333333))))))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); elseif (re <= 2.45e+48) tmp = im * (1.0 + (im * (im * (-0.16666666666666666 + (im * (im * 0.008333333333333333)))))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 2.45e+48], N[(im * N[(1.0 + N[(im * N[(im * N[(-0.16666666666666666 + N[(im * N[(im * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{elif}\;re \leq 2.45 \cdot 10^{+48}:\\
\;\;\;\;im \cdot \left(1 + im \cdot \left(im \cdot \left(-0.16666666666666666 + im \cdot \left(im \cdot 0.008333333333333333\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 2.45000000000000015e48Initial program 100.0%
Taylor expanded in re around 0
sin-lowering-sin.f6485.1%
Simplified85.1%
Taylor expanded in im around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6442.7%
Simplified42.7%
if 2.45000000000000015e48 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified87.8%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6474.2%
Simplified74.2%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6474.2%
Simplified74.2%
Final simplification47.9%
(FPCore (re im)
:precision binary64
(let* ((t_0 (* im (* -0.16666666666666666 (* im im)))))
(if (<= re -600000.0)
(* (+ re 1.0) t_0)
(if (<= re 3e+46)
(* (+ re 1.0) (+ im t_0))
(* im (* re (* re (* re 0.16666666666666666))))))))
double code(double re, double im) {
double t_0 = im * (-0.16666666666666666 * (im * im));
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * t_0;
} else if (re <= 3e+46) {
tmp = (re + 1.0) * (im + t_0);
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = im * ((-0.16666666666666666d0) * (im * im))
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * t_0
else if (re <= 3d+46) then
tmp = (re + 1.0d0) * (im + t_0)
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = im * (-0.16666666666666666 * (im * im));
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * t_0;
} else if (re <= 3e+46) {
tmp = (re + 1.0) * (im + t_0);
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): t_0 = im * (-0.16666666666666666 * (im * im)) tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * t_0 elif re <= 3e+46: tmp = (re + 1.0) * (im + t_0) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) t_0 = Float64(im * Float64(-0.16666666666666666 * Float64(im * im))) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * t_0); elseif (re <= 3e+46) tmp = Float64(Float64(re + 1.0) * Float64(im + t_0)); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) t_0 = im * (-0.16666666666666666 * (im * im)); tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * t_0; elseif (re <= 3e+46) tmp = (re + 1.0) * (im + t_0); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[re, 3e+46], N[(N[(re + 1.0), $MachinePrecision] * N[(im + t$95$0), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\\
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot t\_0\\
\mathbf{elif}\;re \leq 3 \cdot 10^{+46}:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im + t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 3.00000000000000023e46Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.6%
Simplified51.6%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6442.8%
Simplified42.8%
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6442.8%
Applied egg-rr42.8%
if 3.00000000000000023e46 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified88.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Final simplification47.8%
(FPCore (re im)
:precision binary64
(let* ((t_0 (* -0.16666666666666666 (* im im))))
(if (<= re -600000.0)
(* (+ re 1.0) (* im t_0))
(if (<= re 1.85e+46)
(* (+ re 1.0) (* im (+ 1.0 t_0)))
(* im (* re (* re (* re 0.16666666666666666))))))))
double code(double re, double im) {
double t_0 = -0.16666666666666666 * (im * im);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * t_0);
} else if (re <= 1.85e+46) {
tmp = (re + 1.0) * (im * (1.0 + t_0));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.16666666666666666d0) * (im * im)
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * t_0)
else if (re <= 1.85d+46) then
tmp = (re + 1.0d0) * (im * (1.0d0 + t_0))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = -0.16666666666666666 * (im * im);
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * t_0);
} else if (re <= 1.85e+46) {
tmp = (re + 1.0) * (im * (1.0 + t_0));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): t_0 = -0.16666666666666666 * (im * im) tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * t_0) elif re <= 1.85e+46: tmp = (re + 1.0) * (im * (1.0 + t_0)) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) t_0 = Float64(-0.16666666666666666 * Float64(im * im)) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * t_0)); elseif (re <= 1.85e+46) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(1.0 + t_0))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) t_0 = -0.16666666666666666 * (im * im); tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * t_0); elseif (re <= 1.85e+46) tmp = (re + 1.0) * (im * (1.0 + t_0)); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 1.85e+46], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(1.0 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.16666666666666666 \cdot \left(im \cdot im\right)\\
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot t\_0\right)\\
\mathbf{elif}\;re \leq 1.85 \cdot 10^{+46}:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(1 + t\_0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 1.84999999999999995e46Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.6%
Simplified51.6%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6442.8%
Simplified42.8%
if 1.84999999999999995e46 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified88.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Final simplification47.8%
(FPCore (re im) :precision binary64 (if (<= re -600000.0) (* (+ re 1.0) (* im (* -0.16666666666666666 (* im im)))) (* im (+ 1.0 (* re (+ 1.0 (* re (+ 0.5 (* re 0.16666666666666666)))))))))
double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666))))));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else
tmp = im * (1.0d0 + (re * (1.0d0 + (re * (0.5d0 + (re * 0.16666666666666666d0))))))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666))))));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) else: tmp = im * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666)))))) return tmp
function code(re, im) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); else tmp = Float64(im * Float64(1.0 + Float64(re * Float64(1.0 + Float64(re * Float64(0.5 + Float64(re * 0.16666666666666666))))))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); else tmp = im * (1.0 + (re * (1.0 + (re * (0.5 + (re * 0.16666666666666666)))))); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(1.0 + N[(re * N[(1.0 + N[(re * N[(0.5 + N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(1 + re \cdot \left(1 + re \cdot \left(0.5 + re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified61.1%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6450.4%
Simplified50.4%
Final simplification47.3%
(FPCore (re im) :precision binary64 (if (<= re -600000.0) (* (+ re 1.0) (* im (* -0.16666666666666666 (* im im)))) (* im (+ 1.0 (* re (* (* re re) (+ 0.16666666666666666 (/ 0.5 re))))))))
double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (1.0 + (re * ((re * re) * (0.16666666666666666 + (0.5 / re)))));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * (im * ((-0.16666666666666666d0) * (im * im)))
else
tmp = im * (1.0d0 + (re * ((re * re) * (0.16666666666666666d0 + (0.5d0 / re)))))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (1.0 + (re * ((re * re) * (0.16666666666666666 + (0.5 / re)))));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))) else: tmp = im * (1.0 + (re * ((re * re) * (0.16666666666666666 + (0.5 / re))))) return tmp
function code(re, im) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); else tmp = Float64(im * Float64(1.0 + Float64(re * Float64(Float64(re * re) * Float64(0.16666666666666666 + Float64(0.5 / re)))))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * (im * (-0.16666666666666666 * (im * im))); else tmp = im * (1.0 + (re * ((re * re) * (0.16666666666666666 + (0.5 / re))))); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(1.0 + N[(re * N[(N[(re * re), $MachinePrecision] * N[(0.16666666666666666 + N[(0.5 / re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot \left(im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(1 + re \cdot \left(\left(re \cdot re\right) \cdot \left(0.16666666666666666 + \frac{0.5}{re}\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified61.1%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6450.4%
Simplified50.4%
Taylor expanded in re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6450.0%
Simplified50.0%
Final simplification47.0%
(FPCore (re im)
:precision binary64
(let* ((t_0 (* im (* -0.16666666666666666 (* im im)))))
(if (<= re -600000.0)
(* (+ re 1.0) t_0)
(if (<= re 1.55e+46)
(+ im t_0)
(* im (* re (* re (* re 0.16666666666666666))))))))
double code(double re, double im) {
double t_0 = im * (-0.16666666666666666 * (im * im));
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * t_0;
} else if (re <= 1.55e+46) {
tmp = im + t_0;
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: t_0
real(8) :: tmp
t_0 = im * ((-0.16666666666666666d0) * (im * im))
if (re <= (-600000.0d0)) then
tmp = (re + 1.0d0) * t_0
else if (re <= 1.55d+46) then
tmp = im + t_0
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double t_0 = im * (-0.16666666666666666 * (im * im));
double tmp;
if (re <= -600000.0) {
tmp = (re + 1.0) * t_0;
} else if (re <= 1.55e+46) {
tmp = im + t_0;
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): t_0 = im * (-0.16666666666666666 * (im * im)) tmp = 0 if re <= -600000.0: tmp = (re + 1.0) * t_0 elif re <= 1.55e+46: tmp = im + t_0 else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) t_0 = Float64(im * Float64(-0.16666666666666666 * Float64(im * im))) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(re + 1.0) * t_0); elseif (re <= 1.55e+46) tmp = Float64(im + t_0); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) t_0 = im * (-0.16666666666666666 * (im * im)); tmp = 0.0; if (re <= -600000.0) tmp = (re + 1.0) * t_0; elseif (re <= 1.55e+46) tmp = im + t_0; else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := Block[{t$95$0 = N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[re, -600000.0], N[(N[(re + 1.0), $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[re, 1.55e+46], N[(im + t$95$0), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\\
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(re + 1\right) \cdot t\_0\\
\mathbf{elif}\;re \leq 1.55 \cdot 10^{+46}:\\
\;\;\;\;im + t\_0\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
unpow3N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6439.9%
Simplified39.9%
if -6e5 < re < 1.54999999999999988e46Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.6%
Simplified51.6%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6442.8%
Simplified42.8%
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6442.8%
Applied egg-rr42.8%
Taylor expanded in re around 0
Simplified42.5%
if 1.54999999999999988e46 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified88.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Final simplification47.7%
(FPCore (re im)
:precision binary64
(if (<= re -600000.0)
(* (* im im) (* im (+ -0.16666666666666666 (* re -0.16666666666666666))))
(if (<= re 1.95e+46)
(+ im (* im (* -0.16666666666666666 (* im im))))
(* im (* re (* re (* re 0.16666666666666666)))))))
double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (im * im) * (im * (-0.16666666666666666 + (re * -0.16666666666666666)));
} else if (re <= 1.95e+46) {
tmp = im + (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= (-600000.0d0)) then
tmp = (im * im) * (im * ((-0.16666666666666666d0) + (re * (-0.16666666666666666d0))))
else if (re <= 1.95d+46) then
tmp = im + (im * ((-0.16666666666666666d0) * (im * im)))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= -600000.0) {
tmp = (im * im) * (im * (-0.16666666666666666 + (re * -0.16666666666666666)));
} else if (re <= 1.95e+46) {
tmp = im + (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= -600000.0: tmp = (im * im) * (im * (-0.16666666666666666 + (re * -0.16666666666666666))) elif re <= 1.95e+46: tmp = im + (im * (-0.16666666666666666 * (im * im))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) tmp = 0.0 if (re <= -600000.0) tmp = Float64(Float64(im * im) * Float64(im * Float64(-0.16666666666666666 + Float64(re * -0.16666666666666666)))); elseif (re <= 1.95e+46) tmp = Float64(im + Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= -600000.0) tmp = (im * im) * (im * (-0.16666666666666666 + (re * -0.16666666666666666))); elseif (re <= 1.95e+46) tmp = im + (im * (-0.16666666666666666 * (im * im))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, -600000.0], N[(N[(im * im), $MachinePrecision] * N[(im * N[(-0.16666666666666666 + N[(re * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[re, 1.95e+46], N[(im + N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq -600000:\\
\;\;\;\;\left(im \cdot im\right) \cdot \left(im \cdot \left(-0.16666666666666666 + re \cdot -0.16666666666666666\right)\right)\\
\mathbf{elif}\;re \leq 1.95 \cdot 10^{+46}:\\
\;\;\;\;im + im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < -6e5Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.3%
Simplified65.3%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f642.6%
Simplified2.6%
Taylor expanded in im around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f6434.8%
Simplified34.8%
if -6e5 < re < 1.94999999999999997e46Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.6%
Simplified51.6%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6442.8%
Simplified42.8%
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6442.8%
Applied egg-rr42.8%
Taylor expanded in re around 0
Simplified42.5%
if 1.94999999999999997e46 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified88.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Final simplification46.2%
(FPCore (re im) :precision binary64 (if (<= re 3.3e+46) (+ im (* im (* -0.16666666666666666 (* im im)))) (* im (* re (* re (* re 0.16666666666666666))))))
double code(double re, double im) {
double tmp;
if (re <= 3.3e+46) {
tmp = im + (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= 3.3d+46) then
tmp = im + (im * ((-0.16666666666666666d0) * (im * im)))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= 3.3e+46) {
tmp = im + (im * (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= 3.3e+46: tmp = im + (im * (-0.16666666666666666 * (im * im))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) tmp = 0.0 if (re <= 3.3e+46) tmp = Float64(im + Float64(im * Float64(-0.16666666666666666 * Float64(im * im)))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= 3.3e+46) tmp = im + (im * (-0.16666666666666666 * (im * im))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, 3.3e+46], N[(im + N[(im * N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq 3.3 \cdot 10^{+46}:\\
\;\;\;\;im + im \cdot \left(-0.16666666666666666 \cdot \left(im \cdot im\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < 3.2999999999999998e46Initial program 100.0%
Taylor expanded in im around 0
+-commutativeN/A
associate-*r*N/A
distribute-lft1-inN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6456.6%
Simplified56.6%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6428.2%
Simplified28.2%
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6428.2%
Applied egg-rr28.2%
Taylor expanded in re around 0
Simplified28.3%
if 3.2999999999999998e46 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified88.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Final simplification37.0%
(FPCore (re im) :precision binary64 (if (<= re 2.25e+46) (* im (+ 1.0 (* -0.16666666666666666 (* im im)))) (* im (* re (* re (* re 0.16666666666666666))))))
double code(double re, double im) {
double tmp;
if (re <= 2.25e+46) {
tmp = im * (1.0 + (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= 2.25d+46) then
tmp = im * (1.0d0 + ((-0.16666666666666666d0) * (im * im)))
else
tmp = im * (re * (re * (re * 0.16666666666666666d0)))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= 2.25e+46) {
tmp = im * (1.0 + (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (re * (re * (re * 0.16666666666666666)));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= 2.25e+46: tmp = im * (1.0 + (-0.16666666666666666 * (im * im))) else: tmp = im * (re * (re * (re * 0.16666666666666666))) return tmp
function code(re, im) tmp = 0.0 if (re <= 2.25e+46) tmp = Float64(im * Float64(1.0 + Float64(-0.16666666666666666 * Float64(im * im)))); else tmp = Float64(im * Float64(re * Float64(re * Float64(re * 0.16666666666666666)))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= 2.25e+46) tmp = im * (1.0 + (-0.16666666666666666 * (im * im))); else tmp = im * (re * (re * (re * 0.16666666666666666))); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, 2.25e+46], N[(im * N[(1.0 + N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(re * N[(re * N[(re * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq 2.25 \cdot 10^{+46}:\\
\;\;\;\;im \cdot \left(1 + -0.16666666666666666 \cdot \left(im \cdot im\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(re \cdot \left(re \cdot \left(re \cdot 0.16666666666666666\right)\right)\right)\\
\end{array}
\end{array}
if re < 2.25000000000000005e46Initial program 100.0%
Taylor expanded in re around 0
sin-lowering-sin.f6456.0%
Simplified56.0%
Taylor expanded in im around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.3%
Simplified28.3%
if 2.25000000000000005e46 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified88.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Taylor expanded in re around inf
cube-multN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.8%
Simplified72.8%
Final simplification37.0%
(FPCore (re im) :precision binary64 (if (<= re 1.4e+46) (* im (+ 1.0 (* -0.16666666666666666 (* im im)))) (* im (* 0.5 (* re re)))))
double code(double re, double im) {
double tmp;
if (re <= 1.4e+46) {
tmp = im * (1.0 + (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (0.5 * (re * re));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= 1.4d+46) then
tmp = im * (1.0d0 + ((-0.16666666666666666d0) * (im * im)))
else
tmp = im * (0.5d0 * (re * re))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= 1.4e+46) {
tmp = im * (1.0 + (-0.16666666666666666 * (im * im)));
} else {
tmp = im * (0.5 * (re * re));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= 1.4e+46: tmp = im * (1.0 + (-0.16666666666666666 * (im * im))) else: tmp = im * (0.5 * (re * re)) return tmp
function code(re, im) tmp = 0.0 if (re <= 1.4e+46) tmp = Float64(im * Float64(1.0 + Float64(-0.16666666666666666 * Float64(im * im)))); else tmp = Float64(im * Float64(0.5 * Float64(re * re))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= 1.4e+46) tmp = im * (1.0 + (-0.16666666666666666 * (im * im))); else tmp = im * (0.5 * (re * re)); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, 1.4e+46], N[(im * N[(1.0 + N[(-0.16666666666666666 * N[(im * im), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(im * N[(0.5 * N[(re * re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq 1.4 \cdot 10^{+46}:\\
\;\;\;\;im \cdot \left(1 + -0.16666666666666666 \cdot \left(im \cdot im\right)\right)\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(0.5 \cdot \left(re \cdot re\right)\right)\\
\end{array}
\end{array}
if re < 1.40000000000000009e46Initial program 100.0%
Taylor expanded in re around 0
sin-lowering-sin.f6456.0%
Simplified56.0%
Taylor expanded in im around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6428.3%
Simplified28.3%
if 1.40000000000000009e46 < re Initial program 100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6458.3%
Simplified58.3%
Taylor expanded in im around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.3%
Simplified61.3%
Taylor expanded in re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6461.3%
Simplified61.3%
Taylor expanded in im around 0
Simplified59.3%
Final simplification34.4%
(FPCore (re im) :precision binary64 (if (<= re 1.4) im (* im (* 0.5 (* re re)))))
double code(double re, double im) {
double tmp;
if (re <= 1.4) {
tmp = im;
} else {
tmp = im * (0.5 * (re * re));
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= 1.4d0) then
tmp = im
else
tmp = im * (0.5d0 * (re * re))
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= 1.4) {
tmp = im;
} else {
tmp = im * (0.5 * (re * re));
}
return tmp;
}
def code(re, im): tmp = 0 if re <= 1.4: tmp = im else: tmp = im * (0.5 * (re * re)) return tmp
function code(re, im) tmp = 0.0 if (re <= 1.4) tmp = im; else tmp = Float64(im * Float64(0.5 * Float64(re * re))); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= 1.4) tmp = im; else tmp = im * (0.5 * (re * re)); end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, 1.4], im, N[(im * N[(0.5 * N[(re * re), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq 1.4:\\
\;\;\;\;im\\
\mathbf{else}:\\
\;\;\;\;im \cdot \left(0.5 \cdot \left(re \cdot re\right)\right)\\
\end{array}
\end{array}
if re < 1.3999999999999999Initial program 100.0%
Taylor expanded in im around 0
Simplified69.0%
Taylor expanded in re around 0
Simplified29.4%
if 1.3999999999999999 < re Initial program 100.0%
Taylor expanded in re around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6446.2%
Simplified46.2%
Taylor expanded in im around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.3%
Simplified51.3%
Taylor expanded in re around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6451.3%
Simplified51.3%
Taylor expanded in im around 0
Simplified46.8%
Final simplification33.8%
(FPCore (re im) :precision binary64 (if (<= re 290.0) im (* re im)))
double code(double re, double im) {
double tmp;
if (re <= 290.0) {
tmp = im;
} else {
tmp = re * im;
}
return tmp;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
real(8) :: tmp
if (re <= 290.0d0) then
tmp = im
else
tmp = re * im
end if
code = tmp
end function
public static double code(double re, double im) {
double tmp;
if (re <= 290.0) {
tmp = im;
} else {
tmp = re * im;
}
return tmp;
}
def code(re, im): tmp = 0 if re <= 290.0: tmp = im else: tmp = re * im return tmp
function code(re, im) tmp = 0.0 if (re <= 290.0) tmp = im; else tmp = Float64(re * im); end return tmp end
function tmp_2 = code(re, im) tmp = 0.0; if (re <= 290.0) tmp = im; else tmp = re * im; end tmp_2 = tmp; end
code[re_, im_] := If[LessEqual[re, 290.0], im, N[(re * im), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;re \leq 290:\\
\;\;\;\;im\\
\mathbf{else}:\\
\;\;\;\;re \cdot im\\
\end{array}
\end{array}
if re < 290Initial program 100.0%
Taylor expanded in im around 0
Simplified69.0%
Taylor expanded in re around 0
Simplified29.4%
if 290 < re Initial program 100.0%
Taylor expanded in im around 0
Simplified82.8%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6424.2%
Simplified24.2%
Taylor expanded in re around inf
Simplified24.2%
(FPCore (re im) :precision binary64 (* im (+ re 1.0)))
double code(double re, double im) {
return im * (re + 1.0);
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
code = im * (re + 1.0d0)
end function
public static double code(double re, double im) {
return im * (re + 1.0);
}
def code(re, im): return im * (re + 1.0)
function code(re, im) return Float64(im * Float64(re + 1.0)) end
function tmp = code(re, im) tmp = im * (re + 1.0); end
code[re_, im_] := N[(im * N[(re + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
im \cdot \left(re + 1\right)
\end{array}
Initial program 100.0%
Taylor expanded in im around 0
Simplified72.5%
Taylor expanded in re around 0
+-commutativeN/A
+-lowering-+.f6427.9%
Simplified27.9%
Final simplification27.9%
(FPCore (re im) :precision binary64 im)
double code(double re, double im) {
return im;
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
code = im
end function
public static double code(double re, double im) {
return im;
}
def code(re, im): return im
function code(re, im) return im end
function tmp = code(re, im) tmp = im; end
code[re_, im_] := im
\begin{array}{l}
\\
im
\end{array}
Initial program 100.0%
Taylor expanded in im around 0
Simplified72.5%
Taylor expanded in re around 0
Simplified22.9%
herbie shell --seed 2024138
(FPCore (re im)
:name "math.exp on complex, imaginary part"
:precision binary64
(* (exp re) (sin im)))