
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)) (t_2 (+ t_1 0.5)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_2 (+ t_0 0.5))) (exp (- t_2)))
(+
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (+ t_0 1.0)))
(/ -1259.1392167224028 (+ t_0 2.0)))
(/ 771.3234287776531 (+ t_0 3.0)))
(/ -176.6150291621406 (+ t_0 4.0)))
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
t_2 := t\_1 + 0.5\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_2}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_2}\right) \cdot \left(\left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{t\_0 + 1}\right) + \frac{-1259.1392167224028}{t\_0 + 2}\right) + \frac{771.3234287776531}{t\_0 + 3}\right) + \frac{-176.6150291621406}{t\_0 + 4}\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)) (t_2 (+ t_1 0.5)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_2 (+ t_0 0.5))) (exp (- t_2)))
(+
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (+ t_0 1.0)))
(/ -1259.1392167224028 (+ t_0 2.0)))
(/ 771.3234287776531 (+ t_0 3.0)))
(/ -176.6150291621406 (+ t_0 4.0)))
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
t_2 := t\_1 + 0.5\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_2}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_2}\right) \cdot \left(\left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{t\_0 + 1}\right) + \frac{-1259.1392167224028}{t\_0 + 2}\right) + \frac{771.3234287776531}{t\_0 + 3}\right) + \frac{-176.6150291621406}{t\_0 + 4}\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) -3.0))
(t_1 (- (- 1.0 z) 1.0))
(t_2 (+ t_1 7.0))
(t_3 (- (- 1.0 z) -4.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (* (PI) 2.0)) (pow (- 7.5 z) (- 0.5 z)))
(exp (- (+ t_2 0.5))))
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (- 1.0 z)))
(/ -1259.1392167224028 (- 2.0 z)))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))
(/
(fma -176.6150291621406 t_3 (* t_0 12.507343278686905))
(* t_0 t_3)))
(/ -0.13857109526572012 (+ t_1 6.0)))
(/ 9.984369578019572e-6 t_2))
(/ 1.5056327351493116e-7 (+ t_1 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - -3\\
t_1 := \left(1 - z\right) - 1\\
t_2 := t\_1 + 7\\
t_3 := \left(1 - z\right) - -4\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot e^{-\left(t\_2 + 0.5\right)}\right) \cdot \left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{1 - z}\right) + \frac{-1259.1392167224028}{2 - z}\right) + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right) + \frac{\mathsf{fma}\left(-176.6150291621406, t\_3, t\_0 \cdot 12.507343278686905\right)}{t\_0 \cdot t\_3}\right) + \frac{-0.13857109526572012}{t\_1 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_2}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_1 + 8}\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Applied rewrites98.1%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
Taylor expanded in z around inf
pow-to-expN/A
lift-pow.f64N/A
lift--.f64N/A
lift--.f6498.1
Applied rewrites98.1%
lift-+.f64N/A
lift-/.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift--.f64N/A
lift--.f64N/A
frac-addN/A
lower-/.f64N/A
lower-fma.f64N/A
lift--.f64N/A
lift--.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift--.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift--.f64N/A
Applied rewrites98.1%
Final simplification98.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (* (PI) 2.0)) (pow (- 7.5 z) (- 0.5 z)))
(/ 1.0 (exp (+ t_1 0.5))))
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (- 1.0 z)))
(/ -1259.1392167224028 (- 2.0 z)))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 12.507343278686905 (- (- 1.0 z) -4.0))))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot \frac{1}{e^{t\_1 + 0.5}}\right) \cdot \left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{1 - z}\right) + \frac{-1259.1392167224028}{2 - z}\right) + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{12.507343278686905}{\left(1 - z\right) - -4}\right)\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Applied rewrites98.1%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
Taylor expanded in z around inf
pow-to-expN/A
lift-pow.f64N/A
lift--.f64N/A
lift--.f6498.1
Applied rewrites98.1%
lift-exp.f64N/A
lift-neg.f64N/A
lift-+.f64N/A
lift-+.f64N/A
lift--.f64N/A
lift--.f64N/A
exp-negN/A
lower-/.f64N/A
lower-exp.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-+.f64N/A
lift-+.f6498.1
Applied rewrites98.1%
Final simplification98.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (PI)) (* (pow (- 7.5 z) (- 0.5 z)) (sqrt 2.0)))
(exp (- (+ t_1 0.5))))
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (- 1.0 z)))
(/ -1259.1392167224028 (- (- 1.0 z) -1.0)))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 12.507343278686905 (- (- 1.0 z) -4.0))))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
1.8820409189366395e-8)))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right)} \cdot \left({\left(7.5 - z\right)}^{\left(0.5 - z\right)} \cdot \sqrt{2}\right)\right) \cdot e^{-\left(t\_1 + 0.5\right)}\right) \cdot \left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{1 - z}\right) + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right) + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{12.507343278686905}{\left(1 - z\right) - -4}\right)\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + 1.8820409189366395 \cdot 10^{-8}\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Applied rewrites98.1%
Taylor expanded in z around 0
Applied rewrites97.6%
Taylor expanded in z around inf
lower-*.f64N/A
lift-sqrt.f64N/A
lift-PI.f64N/A
pow-to-expN/A
lower-*.f64N/A
lift-pow.f64N/A
lift--.f64N/A
lift--.f64N/A
lift-sqrt.f6497.6
Applied rewrites97.6%
Final simplification97.6%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (* (sqrt (* (PI) 2.0)) (pow (- 7.5 z) (- 0.5 z))) (exp (- z 7.5)))
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (- 1.0 z)))
(/ -1259.1392167224028 (- 2.0 z)))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 12.507343278686905 (- (- 1.0 z) -4.0))))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 (+ t_0 7.0)))
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot e^{z - 7.5}\right) \cdot \left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{1 - z}\right) + \frac{-1259.1392167224028}{2 - z}\right) + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{12.507343278686905}{\left(1 - z\right) - -4}\right)\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_0 + 7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Applied rewrites98.1%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
Taylor expanded in z around inf
pow-to-expN/A
lift-pow.f64N/A
lift--.f64N/A
lift--.f6498.1
Applied rewrites98.1%
Taylor expanded in z around 0
lower--.f6498.1
Applied rewrites98.1%
Final simplification98.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (* (PI) 2.0)) (pow (- 7.5 z) (- 0.5 z)))
(exp (- (+ t_1 0.5))))
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (- 1.0 z)))
(/ -1259.1392167224028 (- 2.0 z)))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 12.507343278686905 (- (- 1.0 z) -4.0))))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
(+ 1.8820409189366395e-8 (* 2.3525511486707994e-9 z)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot e^{-\left(t\_1 + 0.5\right)}\right) \cdot \left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{1 - z}\right) + \frac{-1259.1392167224028}{2 - z}\right) + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{12.507343278686905}{\left(1 - z\right) - -4}\right)\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + \left(1.8820409189366395 \cdot 10^{-8} + 2.3525511486707994 \cdot 10^{-9} \cdot z\right)\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Applied rewrites98.1%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
Taylor expanded in z around inf
pow-to-expN/A
lift-pow.f64N/A
lift--.f64N/A
lift--.f6498.1
Applied rewrites98.1%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f6497.7
Applied rewrites97.7%
Final simplification97.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ t_0 7.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (* (PI) 2.0)) (pow (- 7.5 z) (- 0.5 z)))
(exp (- (+ t_1 0.5))))
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (- 1.0 z)))
(/ -1259.1392167224028 (- (- 1.0 z) -1.0)))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 12.507343278686905 (- (- 1.0 z) -4.0))))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 t_1))
1.8820409189366395e-8)))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := t\_0 + 7\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot e^{-\left(t\_1 + 0.5\right)}\right) \cdot \left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{1 - z}\right) + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right) + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{12.507343278686905}{\left(1 - z\right) - -4}\right)\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1}\right) + 1.8820409189366395 \cdot 10^{-8}\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Applied rewrites98.1%
Taylor expanded in z around 0
Applied rewrites97.6%
Taylor expanded in z around inf
pow-to-expN/A
lift-pow.f64N/A
lift--.f64N/A
lift--.f6497.6
Applied rewrites97.6%
Final simplification97.6%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ (+ t_0 7.0) 0.5)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(+
(+
(+
(+
(+
(+
(+ 0.9999999999998099 (/ 676.5203681218851 (- 1.0 z)))
(/ -1259.1392167224028 (- (- 1.0 z) -1.0)))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 12.507343278686905 (- (- 1.0 z) -4.0))))
(/ -0.13857109526572012 (+ t_0 6.0)))
1.426338511145653e-6)
1.8820409189366395e-8)))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \left(\left(\left(\left(\left(\left(\left(0.9999999999998099 + \frac{676.5203681218851}{1 - z}\right) + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right) + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{12.507343278686905}{\left(1 - z\right) - -4}\right)\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + 1.426338511145653 \cdot 10^{-6}\right) + 1.8820409189366395 \cdot 10^{-8}\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Applied rewrites98.1%
Taylor expanded in z around 0
Applied rewrites97.6%
Taylor expanded in z around 0
Applied rewrites97.3%
Final simplification97.3%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0))
(t_1 (+ (+ t_0 7.0) 0.5))
(t_2 (* z (+ 436.8961725563396 (* 545.0353078428827 z)))))
(*
(/ (- 1.0 (* -0.16666666666666666 (pow (* z (PI)) 2.0))) z)
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(/ (- 69370.70318429549 (* t_2 t_2)) (- 263.3831869810514 t_2))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
t_2 := z \cdot \left(436.8961725563396 + 545.0353078428827 \cdot z\right)\\
\frac{1 - -0.16666666666666666 \cdot {\left(z \cdot \mathsf{PI}\left(\right)\right)}^{2}}{z} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \frac{69370.70318429549 - t\_2 \cdot t\_2}{263.3831869810514 - t\_2}\right)
\end{array}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.4
Applied rewrites96.4%
lift-+.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
flip-+N/A
lower-/.f64N/A
lower--.f64N/A
metadata-evalN/A
lower-*.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lower--.f64N/A
Applied rewrites97.1%
Taylor expanded in z around 0
lower-/.f64N/A
fp-cancel-sign-sub-invN/A
lower--.f64N/A
metadata-evalN/A
lower-*.f64N/A
pow-prod-downN/A
lower-pow.f64N/A
lower-*.f64N/A
lift-PI.f6497.2
Applied rewrites97.2%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0))
(t_1 (* z (+ 436.8961725563396 (* 545.0353078428827 z))))
(t_2 (+ (+ t_0 7.0) 0.5)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_2 (+ t_0 0.5))) (exp (- t_2)))
(/ (- 69370.70318429549 (* t_1 t_1)) (- 263.3831869810514 t_1))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := z \cdot \left(436.8961725563396 + 545.0353078428827 \cdot z\right)\\
t_2 := \left(t\_0 + 7\right) + 0.5\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_2}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_2}\right) \cdot \frac{69370.70318429549 - t\_1 \cdot t\_1}{263.3831869810514 - t\_1}\right)
\end{array}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.4
Applied rewrites96.4%
lift-+.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
flip-+N/A
lower-/.f64N/A
lower--.f64N/A
metadata-evalN/A
lower-*.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lower--.f64N/A
Applied rewrites97.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ (+ t_0 7.0) 0.5)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (* (* (sqrt (PI)) (sqrt 2.0)) (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(+
263.3831869810514
(* z (+ 436.8961725563396 (* 545.0353078428827 z))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\left(\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{2}\right) \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + 545.0353078428827 \cdot z\right)\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.4
Applied rewrites96.4%
lift-sqrt.f64N/A
lift-PI.f64N/A
lift-*.f64N/A
sqrt-prodN/A
lower-*.f64N/A
lift-sqrt.f64N/A
lift-PI.f64N/A
lift-sqrt.f6497.1
Applied rewrites97.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ (+ t_0 7.0) 0.5)))
(*
(pow z -1.0)
(*
(* (* (* (sqrt (PI)) (sqrt 2.0)) (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(+
263.3831869810514
(* z (+ 436.8961725563396 (* 545.0353078428827 z))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
{z}^{-1} \cdot \left(\left(\left(\left(\sqrt{\mathsf{PI}\left(\right)} \cdot \sqrt{2}\right) \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + 545.0353078428827 \cdot z\right)\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.4
Applied rewrites96.4%
Taylor expanded in z around 0
inv-powN/A
lift-pow.f6496.0
Applied rewrites96.0%
lift-sqrt.f64N/A
lift-PI.f64N/A
lift-*.f64N/A
sqrt-prodN/A
lower-*.f64N/A
lift-sqrt.f64N/A
lift-PI.f64N/A
lower-sqrt.f6497.0
Applied rewrites97.0%
(FPCore (z)
:precision binary64
(let* ((t_0 (* z (+ 436.8961725563396 (* 545.0353078428827 z))))
(t_1 (- (- 1.0 z) 1.0))
(t_2 (+ (+ t_1 7.0) 0.5)))
(*
(/ (PI) (* z (PI)))
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_2 (+ t_1 0.5))) (exp (- t_2)))
(/ (- 69370.70318429549 (* t_0 t_0)) (- 263.3831869810514 t_0))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(436.8961725563396 + 545.0353078428827 \cdot z\right)\\
t_1 := \left(1 - z\right) - 1\\
t_2 := \left(t\_1 + 7\right) + 0.5\\
\frac{\mathsf{PI}\left(\right)}{z \cdot \mathsf{PI}\left(\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_2}^{\left(t\_1 + 0.5\right)}\right) \cdot e^{-t\_2}\right) \cdot \frac{69370.70318429549 - t\_0 \cdot t\_0}{263.3831869810514 - t\_0}\right)
\end{array}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.4
Applied rewrites96.4%
lift-+.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
flip-+N/A
lower-/.f64N/A
lower--.f64N/A
metadata-evalN/A
lower-*.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lower--.f64N/A
Applied rewrites97.1%
Taylor expanded in z around 0
lower-*.f64N/A
lift-PI.f6496.8
Applied rewrites96.8%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ (+ t_0 7.0) 0.5)))
(*
(/ (PI) (* z (PI)))
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(+
263.3831869810514
(* z (+ 436.8961725563396 (* 545.0353078428827 z))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
\frac{\mathsf{PI}\left(\right)}{z \cdot \mathsf{PI}\left(\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + 545.0353078428827 \cdot z\right)\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.4
Applied rewrites96.4%
Taylor expanded in z around 0
lower-*.f64N/A
lift-PI.f6496.1
Applied rewrites96.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (+ (+ t_0 7.0) 0.5)))
(*
(/ 1.0 z)
(*
(* (* (sqrt (* (PI) 2.0)) (pow t_1 (+ t_0 0.5))) (exp (- t_1)))
(+
263.3831869810514
(* z (+ 436.8961725563396 (* 545.0353078428827 z))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(t\_0 + 7\right) + 0.5\\
\frac{1}{z} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {t\_1}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{-t\_1}\right) \cdot \left(263.3831869810514 + z \cdot \left(436.8961725563396 + 545.0353078428827 \cdot z\right)\right)\right)
\end{array}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6496.4
Applied rewrites96.4%
Taylor expanded in z around 0
inv-powN/A
lift-pow.f6496.0
Applied rewrites96.0%
lift-pow.f64N/A
inv-powN/A
lower-/.f6496.0
Applied rewrites96.0%
(FPCore (z) :precision binary64 (* (* 263.3831869810514 (/ (* (exp -7.5) (sqrt 15.0)) z)) (sqrt (PI))))
\begin{array}{l}
\\
\left(263.3831869810514 \cdot \frac{e^{-7.5} \cdot \sqrt{15}}{z}\right) \cdot \sqrt{\mathsf{PI}\left(\right)}
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
associate-*r*N/A
lower-*.f64N/A
Applied rewrites95.9%
(FPCore (z) :precision binary64 (* 263.3831869810514 (* (/ (* (exp -7.5) (sqrt 15.0)) z) (sqrt (PI)))))
\begin{array}{l}
\\
263.3831869810514 \cdot \left(\frac{e^{-7.5} \cdot \sqrt{15}}{z} \cdot \sqrt{\mathsf{PI}\left(\right)}\right)
\end{array}
Initial program 97.0%
Taylor expanded in z around 0
associate-*r*N/A
lower-*.f64N/A
Applied rewrites95.9%
Taylor expanded in z around 0
sqrt-unprodN/A
metadata-evalN/A
Applied rewrites95.9%
herbie shell --seed 2025079
(FPCore (z)
:name "Jmat.Real.gamma, branch z less than 0.5"
:precision binary64
:pre (<= z 0.5)
(* (/ (PI) (sin (* (PI) z))) (* (* (* (sqrt (* (PI) 2.0)) (pow (+ (+ (- (- 1.0 z) 1.0) 7.0) 0.5) (+ (- (- 1.0 z) 1.0) 0.5))) (exp (- (+ (+ (- (- 1.0 z) 1.0) 7.0) 0.5)))) (+ (+ (+ (+ (+ (+ (+ (+ 0.9999999999998099 (/ 676.5203681218851 (+ (- (- 1.0 z) 1.0) 1.0))) (/ -1259.1392167224028 (+ (- (- 1.0 z) 1.0) 2.0))) (/ 771.3234287776531 (+ (- (- 1.0 z) 1.0) 3.0))) (/ -176.6150291621406 (+ (- (- 1.0 z) 1.0) 4.0))) (/ 12.507343278686905 (+ (- (- 1.0 z) 1.0) 5.0))) (/ -0.13857109526572012 (+ (- (- 1.0 z) 1.0) 6.0))) (/ 9.984369578019572e-6 (+ (- (- 1.0 z) 1.0) 7.0))) (/ 1.5056327351493116e-7 (+ (- (- 1.0 z) 1.0) 8.0))))))