\[\left(0.5 \cdot \sin re\right) \cdot \left(e^{0 - im} + e^{im}\right)
\]
↓
\[\left(e^{im} + e^{-im}\right) \cdot \left(0.5 \cdot \sin re\right)
\]
(FPCore (re im)
:precision binary64
(* (* 0.5 (sin re)) (+ (exp (- 0.0 im)) (exp im))))
↓
(FPCore (re im)
:precision binary64
(* (+ (exp im) (exp (- im))) (* 0.5 (sin re))))
double code(double re, double im) {
return (0.5 * sin(re)) * (exp((0.0 - im)) + exp(im));
}
↓
double code(double re, double im) {
return (exp(im) + exp(-im)) * (0.5 * sin(re));
}
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
code = (0.5d0 * sin(re)) * (exp((0.0d0 - im)) + exp(im))
end function
↓
real(8) function code(re, im)
real(8), intent (in) :: re
real(8), intent (in) :: im
code = (exp(im) + exp(-im)) * (0.5d0 * sin(re))
end function
public static double code(double re, double im) {
return (0.5 * Math.sin(re)) * (Math.exp((0.0 - im)) + Math.exp(im));
}
↓
public static double code(double re, double im) {
return (Math.exp(im) + Math.exp(-im)) * (0.5 * Math.sin(re));
}
def code(re, im):
return (0.5 * math.sin(re)) * (math.exp((0.0 - im)) + math.exp(im))
↓
def code(re, im):
return (math.exp(im) + math.exp(-im)) * (0.5 * math.sin(re))
function code(re, im)
return Float64(Float64(0.5 * sin(re)) * Float64(exp(Float64(0.0 - im)) + exp(im)))
end
↓
function code(re, im)
return Float64(Float64(exp(im) + exp(Float64(-im))) * Float64(0.5 * sin(re)))
end
function tmp = code(re, im)
tmp = (0.5 * sin(re)) * (exp((0.0 - im)) + exp(im));
end
↓
function tmp = code(re, im)
tmp = (exp(im) + exp(-im)) * (0.5 * sin(re));
end
code[re_, im_] := N[(N[(0.5 * N[Sin[re], $MachinePrecision]), $MachinePrecision] * N[(N[Exp[N[(0.0 - im), $MachinePrecision]], $MachinePrecision] + N[Exp[im], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[re_, im_] := N[(N[(N[Exp[im], $MachinePrecision] + N[Exp[(-im)], $MachinePrecision]), $MachinePrecision] * N[(0.5 * N[Sin[re], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(0.5 \cdot \sin re\right) \cdot \left(e^{0 - im} + e^{im}\right)
↓
\left(e^{im} + e^{-im}\right) \cdot \left(0.5 \cdot \sin re\right)