?

Average Error: 0.0 → 0.0
Time: 6.3s
Precision: binary64
Cost: 12992

?

\[e^{re} \cdot \sin im \]
\[e^{re} \cdot \sin im \]
(FPCore (re im) :precision binary64 (* (exp re) (sin im)))
(FPCore (re im) :precision binary64 (* (exp re) (sin im)))
double code(double re, double im) {
	return 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
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);
}
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)
def code(re, im):
	return math.exp(re) * math.sin(im)
function code(re, im)
	return Float64(exp(re) * sin(im))
end
function code(re, im)
	return Float64(exp(re) * sin(im))
end
function tmp = code(re, im)
	tmp = 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]
code[re_, im_] := N[(N[Exp[re], $MachinePrecision] * N[Sin[im], $MachinePrecision]), $MachinePrecision]
e^{re} \cdot \sin im
e^{re} \cdot \sin im

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 0.0

    \[e^{re} \cdot \sin im \]
  2. Final simplification0.0

    \[\leadsto e^{re} \cdot \sin im \]

Alternatives

Alternative 1
Error0.8
Cost13252
\[\begin{array}{l} \mathbf{if}\;e^{re} \leq 0.98:\\ \;\;\;\;e^{re} \cdot im\\ \mathbf{else}:\\ \;\;\;\;\left(re + 1\right) \cdot \sin im\\ \end{array} \]
Alternative 2
Error1.3
Cost13124
\[\begin{array}{l} \mathbf{if}\;e^{re} \leq 0.98:\\ \;\;\;\;e^{re} \cdot im\\ \mathbf{else}:\\ \;\;\;\;\sin im\\ \end{array} \]
Alternative 3
Error11.7
Cost6596
\[\begin{array}{l} t_0 := \frac{\frac{im}{re + 1}}{re + 1}\\ \mathbf{if}\;re \leq -3 \cdot 10^{+36}:\\ \;\;\;\;\left(re + 1\right) \cdot \left(\left(re + 1\right) \cdot \left(t_0 + re \cdot t_0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\sin im\\ \end{array} \]
Alternative 4
Error32.1
Cost1856
\[\begin{array}{l} t_0 := \frac{\frac{im}{re + 1}}{re + 1}\\ \left(re + 1\right) \cdot \left(\left(re + 1\right) \cdot \left(t_0 + re \cdot t_0\right)\right) \end{array} \]
Alternative 5
Error37.1
Cost836
\[\begin{array}{l} \mathbf{if}\;re \leq -1:\\ \;\;\;\;\left(re + 1\right) \cdot \left(\left(re + 1\right) \cdot \frac{im}{re}\right)\\ \mathbf{else}:\\ \;\;\;\;re \cdot im + im\\ \end{array} \]
Alternative 6
Error37.1
Cost832
\[\left(re + 1\right) \cdot \left(\left(re + 1\right) \cdot \frac{im}{re + 1}\right) \]
Alternative 7
Error41.4
Cost64
\[im \]

Error

Reproduce?

herbie shell --seed 2023090 
(FPCore (re im)
  :name "math.exp on complex, imaginary part"
  :precision binary64
  (* (exp re) (sin im)))