
(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 19 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) -1.0)) (t_1 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (PI)) (pow (- 7.5 z) (- 0.5 z)))
(* (exp (- z 7.5)) (/ 2.0 (sqrt 2.0))))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(/
(fma 676.5203681218851 t_0 (* (- 1.0 z) -1259.1392167224028))
(* (- 1.0 z) t_0))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))))
(/ 12.507343278686905 (+ t_1 5.0)))
(/ -0.13857109526572012 (+ t_1 6.0)))
(/ 9.984369578019572e-6 (+ t_1 7.0)))
(/ 1.5056327351493116e-7 (+ t_1 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - -1\\
t_1 := \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 {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot \left(e^{z - 7.5} \cdot \frac{2}{\sqrt{2}}\right)\right) \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{\mathsf{fma}\left(676.5203681218851, t\_0, \left(1 - z\right) \cdot -1259.1392167224028\right)}{\left(1 - z\right) \cdot t\_0} + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right)\right)\right) + \frac{12.507343278686905}{t\_1 + 5}\right) + \frac{-0.13857109526572012}{t\_1 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_1 + 7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_1 + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Taylor expanded in z around inf
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-PI.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
lower--.f64N/A
lower-sqrt.f6498.1
Applied rewrites98.1%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-/.f64N/A
frac-addN/A
lower-/.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
Applied rewrites98.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)) (t_1 (- (- 1.0 z) -1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (PI)) (pow (- 7.5 z) (- 0.5 z)))
(* (exp (- z 7.5)) (sqrt 2.0)))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(/
(fma 676.5203681218851 t_1 (* (- 1.0 z) -1259.1392167224028))
(* (- 1.0 z) t_1))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))))
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 (+ t_0 7.0)))
(/ 1.5056327351493116e-7 (+ (- z) 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \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 {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot \left(e^{z - 7.5} \cdot \sqrt{2}\right)\right) \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{\mathsf{fma}\left(676.5203681218851, t\_1, \left(1 - z\right) \cdot -1259.1392167224028\right)}{\left(1 - z\right) \cdot t\_1} + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right)\right)\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{t\_0 + 7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{\left(-z\right) + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Taylor expanded in z around inf
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-PI.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
lower--.f64N/A
lower-sqrt.f6498.1
Applied rewrites98.1%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-/.f64N/A
frac-addN/A
lower-/.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6498.1
Applied rewrites98.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (PI)) (pow (- 7.5 z) (- 0.5 z)))
(* (exp (- z 7.5)) (sqrt 2.0)))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(+
(/ -1259.1392167224028 (- (- 1.0 z) -1.0))
(/ 676.5203681218851 (- 1.0 z)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))))
(/ 12.507343278686905 (+ t_0 5.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 {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot \left(e^{z - 7.5} \cdot \sqrt{2}\right)\right) \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\left(\frac{-1259.1392167224028}{\left(1 - z\right) - -1} + \frac{676.5203681218851}{1 - z}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right)\right)\right) + \frac{12.507343278686905}{t\_0 + 5}\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 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Taylor expanded in z around inf
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-PI.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
lower--.f64N/A
lower-sqrt.f6498.1
Applied rewrites98.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) -6.0)) (t_1 (+ 0.5 t_0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(+
(+
(+
(+
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 (- (- 1.0 z) -5.0))))
(+
(/ 9.984369578019572e-6 t_0)
(/ 1.5056327351493116e-7 (- (- 1.0 z) -7.0))))
(* (exp (- t_1)) (* (pow t_1 (- (- 1.0 z) 0.5)) (sqrt (* 2.0 (PI)))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - -6\\
t_1 := 0.5 + t\_0\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{676.5203681218851}{1 - z} + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right)\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} + \frac{-176.6150291621406}{\left(1 - z\right) - -3}\right)\right) + \left(\frac{12.507343278686905}{\left(1 - z\right) - -4} + \frac{-0.13857109526572012}{\left(1 - z\right) - -5}\right)\right) + \left(\frac{9.984369578019572 \cdot 10^{-6}}{t\_0} + \frac{1.5056327351493116 \cdot 10^{-7}}{\left(1 - z\right) - -7}\right)\right) \cdot \left(e^{-t\_1} \cdot \left({t\_1}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \sqrt{2 \cdot \mathsf{PI}\left(\right)}\right)\right)\right)
\end{array}
\end{array}
Initial program 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Applied rewrites98.0%
(FPCore (z)
:precision binary64
(let* ((t_0 (+ 0.5 (- (- 1.0 z) -6.0))))
(*
(/ (PI) (sin (* (PI) z)))
(*
(+
(+
(+
(+
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 (- (- 1.0 z) -5.0))))
(fma
(fma 2.9403018100637997e-8 z 2.0611519559804982e-7)
z
1.4451589203350195e-6))
(* (exp (- t_0)) (* (pow t_0 (- (- 1.0 z) 0.5)) (sqrt (* 2.0 (PI)))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.5 + \left(\left(1 - z\right) - -6\right)\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{676.5203681218851}{1 - z} + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right)\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} + \frac{-176.6150291621406}{\left(1 - z\right) - -3}\right)\right) + \left(\frac{12.507343278686905}{\left(1 - z\right) - -4} + \frac{-0.13857109526572012}{\left(1 - z\right) - -5}\right)\right) + \mathsf{fma}\left(\mathsf{fma}\left(2.9403018100637997 \cdot 10^{-8}, z, 2.0611519559804982 \cdot 10^{-7}\right), z, 1.4451589203350195 \cdot 10^{-6}\right)\right) \cdot \left(e^{-t\_0} \cdot \left({t\_0}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \sqrt{2 \cdot \mathsf{PI}\left(\right)}\right)\right)\right)
\end{array}
\end{array}
Initial program 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Applied rewrites98.0%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6497.6
Applied rewrites97.6%
(FPCore (z)
:precision binary64
(let* ((t_0 (+ 0.5 (- (- 1.0 z) -6.0))))
(*
(/ (PI) (sin (* (PI) z)))
(*
(+
(+
(+
(+
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 (- (- 1.0 z) -5.0))))
(fma 2.0611519559804982e-7 z 1.4451589203350195e-6))
(* (exp (- t_0)) (* (pow t_0 (- (- 1.0 z) 0.5)) (sqrt (* 2.0 (PI)))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.5 + \left(\left(1 - z\right) - -6\right)\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{676.5203681218851}{1 - z} + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right)\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} + \frac{-176.6150291621406}{\left(1 - z\right) - -3}\right)\right) + \left(\frac{12.507343278686905}{\left(1 - z\right) - -4} + \frac{-0.13857109526572012}{\left(1 - z\right) - -5}\right)\right) + \mathsf{fma}\left(2.0611519559804982 \cdot 10^{-7}, z, 1.4451589203350195 \cdot 10^{-6}\right)\right) \cdot \left(e^{-t\_0} \cdot \left({t\_0}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \sqrt{2 \cdot \mathsf{PI}\left(\right)}\right)\right)\right)
\end{array}
\end{array}
Initial program 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Applied rewrites98.0%
Taylor expanded in z around 0
+-commutativeN/A
lower-fma.f6497.5
Applied rewrites97.5%
(FPCore (z)
:precision binary64
(let* ((t_0 (+ 0.5 (- (- 1.0 z) -6.0))))
(*
(/ (PI) (sin (* (PI) z)))
(*
(+
(+
(+
(+
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 (- (- 1.0 z) -5.0))))
1.4451589203350195e-6)
(* (exp (- t_0)) (* (pow t_0 (- (- 1.0 z) 0.5)) (sqrt (* 2.0 (PI)))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.5 + \left(\left(1 - z\right) - -6\right)\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{676.5203681218851}{1 - z} + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right)\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} + \frac{-176.6150291621406}{\left(1 - z\right) - -3}\right)\right) + \left(\frac{12.507343278686905}{\left(1 - z\right) - -4} + \frac{-0.13857109526572012}{\left(1 - z\right) - -5}\right)\right) + 1.4451589203350195 \cdot 10^{-6}\right) \cdot \left(e^{-t\_0} \cdot \left({t\_0}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \sqrt{2 \cdot \mathsf{PI}\left(\right)}\right)\right)\right)
\end{array}
\end{array}
Initial program 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Applied rewrites98.0%
Taylor expanded in z around 0
Applied rewrites97.3%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) -6.0)) (t_1 (+ 0.5 t_0)))
(*
(/ (fma (* 0.16666666666666666 (* z z)) (* (PI) (PI)) 1.0) z)
(*
(+
(+
(+
(+
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 (- (- 1.0 z) -5.0))))
(+
(/ 9.984369578019572e-6 t_0)
(/ 1.5056327351493116e-7 (- (- 1.0 z) -7.0))))
(* (exp (- t_1)) (* (pow t_1 (- (- 1.0 z) 0.5)) (sqrt (* 2.0 (PI)))))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - -6\\
t_1 := 0.5 + t\_0\\
\frac{\mathsf{fma}\left(0.16666666666666666 \cdot \left(z \cdot z\right), \mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right), 1\right)}{z} \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{676.5203681218851}{1 - z} + \frac{-1259.1392167224028}{\left(1 - z\right) - -1}\right)\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} + \frac{-176.6150291621406}{\left(1 - z\right) - -3}\right)\right) + \left(\frac{12.507343278686905}{\left(1 - z\right) - -4} + \frac{-0.13857109526572012}{\left(1 - z\right) - -5}\right)\right) + \left(\frac{9.984369578019572 \cdot 10^{-6}}{t\_0} + \frac{1.5056327351493116 \cdot 10^{-7}}{\left(1 - z\right) - -7}\right)\right) \cdot \left(e^{-t\_1} \cdot \left({t\_1}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \sqrt{2 \cdot \mathsf{PI}\left(\right)}\right)\right)\right)
\end{array}
\end{array}
Initial program 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Applied rewrites98.0%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
lower-PI.f64N/A
lower-PI.f6496.9
Applied rewrites96.9%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ 1.0 z)
(*
(*
(* (sqrt (PI)) (pow (- 7.5 z) (- 0.5 z)))
(* (+ z 1.0) (* (sqrt 2.0) (exp -7.5))))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(+
(/ -1259.1392167224028 (- (- 1.0 z) -1.0))
(/ 676.5203681218851 (- 1.0 z)))
(+
(/ -176.6150291621406 (- (- 1.0 z) -3.0))
(/ 771.3234287776531 (- (- 1.0 z) -2.0)))))
(/ 12.507343278686905 (+ t_0 5.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{1}{z} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right)} \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot \left(\left(z + 1\right) \cdot \left(\sqrt{2} \cdot e^{-7.5}\right)\right)\right) \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\left(\frac{-1259.1392167224028}{\left(1 - z\right) - -1} + \frac{676.5203681218851}{1 - z}\right) + \left(\frac{-176.6150291621406}{\left(1 - z\right) - -3} + \frac{771.3234287776531}{\left(1 - z\right) - -2}\right)\right)\right) + \frac{12.507343278686905}{t\_0 + 5}\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 96.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
associate-+l+N/A
Applied rewrites98.0%
Taylor expanded in z around inf
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-PI.f64N/A
exp-to-powN/A
lower-pow.f64N/A
lower--.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
lower--.f64N/A
lower-sqrt.f6498.1
Applied rewrites98.1%
Taylor expanded in z around 0
lower-/.f6496.3
Applied rewrites96.3%
Taylor expanded in z around 0
Applied rewrites96.8%
(FPCore (z)
:precision binary64
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (sqrt (PI)) (exp (fma 1.0 z -7.5)))
(* (pow (fma -1.0 z 7.5) (fma -1.0 z 0.5)) (sqrt 2.0)))
(+
(fma
(fma (fma 606.676680916724 z 545.0353078425886) z 436.896172553987)
z
263.383186962231)
(/ 1.5056327351493116e-7 (+ (- (- 1.0 z) 1.0) 8.0))))))\begin{array}{l}
\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right)} \cdot e^{\mathsf{fma}\left(1, z, -7.5\right)}\right) \cdot \left({\left(\mathsf{fma}\left(-1, z, 7.5\right)\right)}^{\left(\mathsf{fma}\left(-1, z, 0.5\right)\right)} \cdot \sqrt{2}\right)\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(606.676680916724, z, 545.0353078425886\right), z, 436.896172553987\right), z, 263.383186962231\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{\left(\left(1 - z\right) - 1\right) + 8}\right)\right)
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.0
Applied rewrites96.0%
Taylor expanded in z around -inf
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-PI.f64N/A
lower-exp.f64N/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
metadata-evalN/A
metadata-evalN/A
lower-fma.f64N/A
lower-*.f64N/A
Applied rewrites96.7%
(FPCore (z)
:precision binary64
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(* (* (pow (fma -1.0 z 7.5) (fma -1.0 z 0.5)) (sqrt (PI))) (sqrt 2.0))
(exp (- (- (- (+ -1.0 z) -1.0) 7.0) 0.5)))
(fma
(fma (fma 606.6766809167608 z 545.0353078428827) z 436.8961725563396)
z
263.3831869810514))))\begin{array}{l}
\\
\frac{\mathsf{PI}\left(\right)}{\sin \left(\mathsf{PI}\left(\right) \cdot z\right)} \cdot \left(\left(\left(\left({\left(\mathsf{fma}\left(-1, z, 7.5\right)\right)}^{\left(\mathsf{fma}\left(-1, z, 0.5\right)\right)} \cdot \sqrt{\mathsf{PI}\left(\right)}\right) \cdot \sqrt{2}\right) \cdot e^{\left(\left(\left(-1 + z\right) - -1\right) - 7\right) - 0.5}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(606.6766809167608, z, 545.0353078428827\right), z, 436.8961725563396\right), z, 263.3831869810514\right)\right)
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.0
Applied rewrites96.0%
Taylor expanded in z around -inf
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
exp-to-powN/A
lower-pow.f64N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
lower-sqrt.f64N/A
lower-PI.f64N/A
lower-sqrt.f6496.7
Applied rewrites96.7%
Final simplification96.7%
(FPCore (z)
:precision binary64
(*
(*
(/ (PI) (sin (* z (PI))))
(*
(exp (- (+ (+ -1.0 z) -6.0) 0.5))
(*
(pow (+ (- (- 1.0 z) -6.0) 0.5) (- (- 1.0 z) 0.5))
(sqrt (* 2.0 (PI))))))
(fma
(fma (fma 606.6766809167608 z 545.0353078428827) z 436.8961725563396)
z
263.3831869810514)))\begin{array}{l}
\\
\left(\frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)} \cdot \left(e^{\left(\left(-1 + z\right) + -6\right) - 0.5} \cdot \left({\left(\left(\left(1 - z\right) - -6\right) + 0.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \sqrt{2 \cdot \mathsf{PI}\left(\right)}\right)\right)\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(606.6766809167608, z, 545.0353078428827\right), z, 436.8961725563396\right), z, 263.3831869810514\right)
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.0
Applied rewrites96.0%
Applied rewrites96.2%
Final simplification96.2%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/
(PI)
(* (fma (* -0.16666666666666666 (* z z)) (* (* (PI) (PI)) (PI)) (PI)) z))
(*
(*
(* (sqrt (* (PI) 2.0)) (pow (+ (+ t_0 7.0) 0.5) (+ t_0 0.5)))
(exp (- (- (- (+ -1.0 z) -1.0) 7.0) 0.5)))
(+
(fma
(fma (fma 606.676680916724 z 545.0353078425886) z 436.896172553987)
z
263.383186962231)
(/ 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)}{\mathsf{fma}\left(-0.16666666666666666 \cdot \left(z \cdot z\right), \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right), \mathsf{PI}\left(\right)\right) \cdot z} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(\left(t\_0 + 7\right) + 0.5\right)}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{\left(\left(\left(-1 + z\right) - -1\right) - 7\right) - 0.5}\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(606.676680916724, z, 545.0353078425886\right), z, 436.896172553987\right), z, 263.383186962231\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.0
Applied rewrites96.0%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
lower-pow.f64N/A
lower-PI.f64N/A
lower-PI.f6496.0
Applied rewrites96.0%
Applied rewrites96.0%
Final simplification96.0%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (fma (* 0.16666666666666666 (* z z)) (* (PI) (PI)) 1.0) z)
(*
(*
(* (sqrt (* (PI) 2.0)) (pow (+ (+ t_0 7.0) 0.5) (+ t_0 0.5)))
(exp (- (- (- (+ -1.0 z) -1.0) 7.0) 0.5)))
(+
(fma
(fma (fma 606.676680916724 z 545.0353078425886) z 436.896172553987)
z
263.383186962231)
(/ 1.5056327351493116e-7 (+ t_0 8.0)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\frac{\mathsf{fma}\left(0.16666666666666666 \cdot \left(z \cdot z\right), \mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right), 1\right)}{z} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(\left(t\_0 + 7\right) + 0.5\right)}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{\left(\left(\left(-1 + z\right) - -1\right) - 7\right) - 0.5}\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(606.676680916724, z, 545.0353078425886\right), z, 436.896172553987\right), z, 263.383186962231\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.0
Applied rewrites96.0%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
lower-PI.f64N/A
lower-PI.f6496.0
Applied rewrites96.0%
Final simplification96.0%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (fma (* 0.16666666666666666 (* z z)) (* (PI) (PI)) 1.0) z)
(*
(*
(* (sqrt (* (PI) 2.0)) (pow (+ (+ t_0 7.0) 0.5) (+ t_0 0.5)))
(exp (- (- (- (+ -1.0 z) -1.0) 7.0) 0.5)))
(fma
(fma (fma 606.6766809167608 z 545.0353078428827) z 436.8961725563396)
z
263.3831869810514)))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\frac{\mathsf{fma}\left(0.16666666666666666 \cdot \left(z \cdot z\right), \mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right), 1\right)}{z} \cdot \left(\left(\left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot {\left(\left(t\_0 + 7\right) + 0.5\right)}^{\left(t\_0 + 0.5\right)}\right) \cdot e^{\left(\left(\left(-1 + z\right) - -1\right) - 7\right) - 0.5}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(606.6766809167608, z, 545.0353078428827\right), z, 436.8961725563396\right), z, 263.3831869810514\right)\right)
\end{array}
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.0
Applied rewrites96.0%
Taylor expanded in z around 0
lower-/.f64N/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
lower-PI.f64N/A
lower-PI.f6496.0
Applied rewrites96.0%
Final simplification96.0%
(FPCore (z) :precision binary64 (* (/ (* (/ (PI) (sqrt (PI))) (* (* (sqrt 7.5) (sqrt 2.0)) (exp -7.5))) z) 263.3831869810514))
\begin{array}{l}
\\
\frac{\frac{\mathsf{PI}\left(\right)}{\sqrt{\mathsf{PI}\left(\right)}} \cdot \left(\left(\sqrt{7.5} \cdot \sqrt{2}\right) \cdot e^{-7.5}\right)}{z} \cdot 263.3831869810514
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites95.0%
Applied rewrites95.7%
(FPCore (z) :precision binary64 (* (* (* (exp -7.5) (/ (sqrt 15.0) z)) (sqrt (PI))) 263.3831869810514))
\begin{array}{l}
\\
\left(\left(e^{-7.5} \cdot \frac{\sqrt{15}}{z}\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right) \cdot 263.3831869810514
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites95.0%
Applied rewrites95.0%
Taylor expanded in z around 0
Applied rewrites95.4%
(FPCore (z) :precision binary64 (* (/ (* (sqrt (* (PI) 15.0)) (exp -7.5)) z) 263.3831869810514))
\begin{array}{l}
\\
\frac{\sqrt{\mathsf{PI}\left(\right) \cdot 15} \cdot e^{-7.5}}{z} \cdot 263.3831869810514
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites95.0%
Applied rewrites95.0%
(FPCore (z) :precision binary64 (* (sqrt (* 15.0 (PI))) (* (/ (exp -7.5) z) 263.3831869810514)))
\begin{array}{l}
\\
\sqrt{15 \cdot \mathsf{PI}\left(\right)} \cdot \left(\frac{e^{-7.5}}{z} \cdot 263.3831869810514\right)
\end{array}
Initial program 96.2%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites95.0%
Applied rewrites95.0%
Applied rewrites94.9%
Applied rewrites94.9%
herbie shell --seed 2025017
(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))))))