
(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 14 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)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow
(/ (- (pow (- (- 1.0 z) -6.0) 2.0) 0.25) (- (- 1.0 z) -5.5))
(- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.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 (- 6.0 z)))
(/ 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(\frac{{\left(\left(1 - z\right) - -6\right)}^{2} - 0.25}{\left(1 - z\right) - -5.5}\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\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}{6 - z}\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.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
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.7%
lift--.f64N/A
metadata-evalN/A
associate-+l-N/A
lift--.f64N/A
metadata-evalN/A
associate-+l+N/A
lift-+.f64N/A
flip-+N/A
lower-/.f64N/A
lower--.f64N/A
pow2N/A
lower-pow.f64N/A
lift-+.f64N/A
lift--.f64N/A
associate-+l-N/A
lower--.f64N/A
metadata-evalN/A
metadata-evalN/A
Applied rewrites98.7%
Taylor expanded in z around 0
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f6498.7
Applied rewrites98.7%
Final simplification98.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) -1.0)) (t_1 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (* (- (/ 0.5 z) 1.0) z))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.5))))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(/
(fma 676.5203681218851 t_0 (* -1259.1392167224028 (- 1.0 z)))
(* t_0 (- 1.0 z)))
(+
(/ -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(\left(1 - z\right) - -6.5\right)}^{\left(\left(\frac{0.5}{z} - 1\right) \cdot z\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\right)\right) \cdot \left(\left(\left(\left(\left(0.9999999999998099 + \left(\frac{\mathsf{fma}\left(676.5203681218851, t\_0, -1259.1392167224028 \cdot \left(1 - z\right)\right)}{t\_0 \cdot \left(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\_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.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
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.7%
lift-+.f64N/A
lift-/.f64N/A
lift-/.f64N/A
frac-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6498.7
Applied rewrites98.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f6498.7
Applied rewrites98.7%
Final simplification98.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.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 (- 7.0 z)))
(/ 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\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}}{7 - z}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
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.7%
Taylor expanded in z around 0
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f6498.7
Applied rewrites98.7%
Final simplification98.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.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 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\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}}{7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
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.7%
Taylor expanded in z around 0
Applied rewrites98.1%
Final simplification98.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.5))))
(+
(+
(+
(+
(+
0.9999999999998099
(+
(+
(/ -1259.1392167224028 (- (- 1.0 z) -1.0))
(/ 676.5203681218851 (- 1.0 z)))
(fma
(fma 25.80792456851389 z 74.66416387488323)
z
212.9540523020159)))
(/ 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\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) + \mathsf{fma}\left(\mathsf{fma}\left(25.80792456851389, z, 74.66416387488323\right), z, 212.9540523020159\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.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
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.7%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.9
Applied rewrites96.9%
Final simplification96.9%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (- (- 7.5 z)))))
(+
(+
(+
(+
(fma (fma 544.9358906000987 z 436.3997278161676) z 260.9048120626994)
(/ 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{-\left(7.5 - z\right)}\right)\right) \cdot \left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(544.9358906000987, z, 436.3997278161676\right), z, 260.9048120626994\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.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.8
Applied rewrites96.8%
Taylor expanded in z around 0
metadata-evalN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
lower--.f6496.8
Applied rewrites96.8%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.5))))
(+
(+
(+
(+
(fma (fma 544.9358906000987 z 436.3997278161676) z 260.9048120626994)
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 (- 7.0 z)))
(/ 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\right)\right) \cdot \left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(544.9358906000987, z, 436.3997278161676\right), z, 260.9048120626994\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{7 - z}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.8
Applied rewrites96.8%
Taylor expanded in z around 0
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f6496.8
Applied rewrites96.8%
Final simplification96.8%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.5))))
(+
(+
(+
(+
(fma (fma 544.9358906000987 z 436.3997278161676) z 260.9048120626994)
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 (+ t_0 6.0)))
(/ 9.984369578019572e-6 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\right)\right) \cdot \left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(544.9358906000987, z, 436.3997278161676\right), z, 260.9048120626994\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{t\_0 + 6}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 + 8}\right)\right)
\end{array}
\end{array}
Initial program 96.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.8
Applied rewrites96.8%
Taylor expanded in z around 0
Applied rewrites96.8%
Final simplification96.8%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (- (- 7.5 z)))))
(+
(+
(+
(+
(fma (fma 544.9358906000987 z 436.3997278161676) z 260.9048120626994)
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{-\left(7.5 - z\right)}\right)\right) \cdot \left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(544.9358906000987, z, 436.3997278161676\right), z, 260.9048120626994\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{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.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.8
Applied rewrites96.8%
Taylor expanded in z around 0
Applied rewrites96.5%
Taylor expanded in z around 0
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f6496.5
Applied rewrites96.5%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- 0.5 z))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.5))))
(+
(+
(+
(+
(fma (fma 544.9358906000987 z 436.3997278161676) z 260.9048120626994)
(/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 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(\left(1 - z\right) - -6.5\right)}^{\left(0.5 - z\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\right)\right) \cdot \left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(544.9358906000987, z, 436.3997278161676\right), z, 260.9048120626994\right) + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{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.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.8
Applied rewrites96.8%
Taylor expanded in z around 0
Applied rewrites96.5%
Taylor expanded in z around 0
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f6496.5
Applied rewrites96.5%
Final simplification96.5%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(*
(pow (- (- 1.0 z) -6.5) (- (- 1.0 z) 0.5))
(* (sqrt (* (PI) 2.0)) (exp (+ (+ -1.0 z) -6.5))))
(+
(+
(+
(+
(fma (fma 544.9358906000987 z 436.3997278161676) z 260.9048120626994)
(/ 12.507343278686905 (- 5.0 z)))
(/ -0.13857109526572012 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(\left(1 - z\right) - -6.5\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{\mathsf{PI}\left(\right) \cdot 2} \cdot e^{\left(-1 + z\right) + -6.5}\right)\right) \cdot \left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(544.9358906000987, z, 436.3997278161676\right), z, 260.9048120626994\right) + \frac{12.507343278686905}{5 - z}\right) + \frac{-0.13857109526572012}{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.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lower-*.f64N/A
Applied rewrites96.9%
Taylor expanded in z around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6496.8
Applied rewrites96.8%
Taylor expanded in z around 0
Applied rewrites96.5%
Taylor expanded in z around 0
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f6496.5
Applied rewrites96.5%
Final simplification96.5%
(FPCore (z)
:precision binary64
(let* ((t_0 (sqrt (sqrt (PI)))) (t_1 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (* (* (sqrt 7.5) (sqrt 2.0)) (exp -7.5)) (* t_0 t_0))
(+
(+
(+
(+ 260.9048120626994 (/ 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 := \sqrt{\sqrt{\mathsf{PI}\left(\right)}}\\
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(\left(\sqrt{7.5} \cdot \sqrt{2}\right) \cdot e^{-7.5}\right) \cdot \left(t\_0 \cdot t\_0\right)\right) \cdot \left(\left(\left(\left(260.9048120626994 + \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.9%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
lower-exp.f64N/A
lower-sqrt.f64N/A
lower-PI.f6494.5
Applied rewrites94.5%
Taylor expanded in z around 0
Applied rewrites95.7%
Applied rewrites96.4%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (sqrt (PI)) (* (exp -7.5) (sqrt 15.0)))
(+
(+
(+
(+ 260.9048120626994 (/ 12.507343278686905 (+ t_0 5.0)))
(/ -0.13857109526572012 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(\sqrt{\mathsf{PI}\left(\right)} \cdot \left(e^{-7.5} \cdot \sqrt{15}\right)\right) \cdot \left(\left(\left(\left(260.9048120626994 + \frac{12.507343278686905}{t\_0 + 5}\right) + \frac{-0.13857109526572012}{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.9%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
lower-exp.f64N/A
lower-sqrt.f64N/A
lower-PI.f6494.5
Applied rewrites94.5%
Taylor expanded in z around 0
Applied rewrites95.7%
Applied rewrites95.7%
Taylor expanded in z around 0
Applied rewrites95.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(/ (PI) (sin (* (PI) z)))
(*
(* (sqrt (PI)) (* (exp -7.5) (sqrt 15.0)))
(+
(+
(+
(+ 260.9048120626994 (/ 12.507343278686905 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(\sqrt{\mathsf{PI}\left(\right)} \cdot \left(e^{-7.5} \cdot \sqrt{15}\right)\right) \cdot \left(\left(\left(\left(260.9048120626994 + \frac{12.507343278686905}{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.9%
Taylor expanded in z around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f64N/A
lower-exp.f64N/A
lower-sqrt.f64N/A
lower-PI.f6494.5
Applied rewrites94.5%
Taylor expanded in z around 0
Applied rewrites95.7%
Applied rewrites95.7%
Taylor expanded in z around 0
Applied rewrites95.7%
herbie shell --seed 2024353
(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))))))