
(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 10 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)) (t_2 (- t_1 7.0)))
(*
(*
(-
(-
(-
(-
(-
(-
(/ 771.3234287776531 (+ 3.0 t_0))
(-
(-
(/ -1259.1392167224028 (- -1.0 (- 1.0 z)))
(/ 676.5203681218851 (- 1.0 z)))
0.9999999999998099))
(/ -176.6150291621406 (- t_1 4.0)))
(/ 12.507343278686905 (- t_1 5.0)))
(/ -0.13857109526572012 (- t_1 6.0)))
(/ 9.984369578019572e-6 t_2))
(/ 1.5056327351493116e-7 (- t_1 8.0)))
(*
(exp (- t_2 0.5))
(* (pow (+ 0.5 (+ 7.0 t_0)) (+ (- z) 0.5)) (* (sqrt 2.0) (sqrt (PI))))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
t_1 := \left(-1 + z\right) - -1\\
t_2 := t\_1 - 7\\
\left(\left(\left(\left(\left(\left(\left(\frac{771.3234287776531}{3 + t\_0} - \left(\left(\frac{-1259.1392167224028}{-1 - \left(1 - z\right)} - \frac{676.5203681218851}{1 - z}\right) - 0.9999999999998099\right)\right) - \frac{-176.6150291621406}{t\_1 - 4}\right) - \frac{12.507343278686905}{t\_1 - 5}\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) \cdot \left(e^{t\_2 - 0.5} \cdot \left({\left(0.5 + \left(7 + t\_0\right)\right)}^{\left(\left(-z\right) + 0.5\right)} \cdot \left(\sqrt{2} \cdot \sqrt{\mathsf{PI}\left(\right)}\right)\right)\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
lift-sqrt.f64N/A
lift-*.f64N/A
sqrt-prodN/A
pow1/2N/A
lower-*.f64N/A
lower-sqrt.f64N/A
pow1/2N/A
lower-sqrt.f6496.8
Applied rewrites96.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lower-+.f64N/A
Applied rewrites98.5%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6498.5
Applied rewrites98.5%
Final simplification98.5%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (+ -1.0 z) -1.0)))
(*
(*
(-
(-
(-
(-
(-
(-
(/ 771.3234287776531 (- 3.0 z))
(-
(-
(/ -1259.1392167224028 (- -1.0 (- 1.0 z)))
(/ 676.5203681218851 (- 1.0 z)))
0.9999999999998099))
(/ -176.6150291621406 (- t_0 4.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)))
(*
(pow (- 7.5 z) (- 0.5 z))
(* (* (exp (- z 7.5)) (sqrt (PI))) (sqrt 2.0))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(-1 + z\right) - -1\\
\left(\left(\left(\left(\left(\left(\left(\frac{771.3234287776531}{3 - z} - \left(\left(\frac{-1259.1392167224028}{-1 - \left(1 - z\right)} - \frac{676.5203681218851}{1 - z}\right) - 0.9999999999998099\right)\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\_0 - 7}\right) - \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 - 8}\right) \cdot \left({\left(7.5 - z\right)}^{\left(0.5 - z\right)} \cdot \left(\left(e^{z - 7.5} \cdot \sqrt{\mathsf{PI}\left(\right)}\right) \cdot \sqrt{2}\right)\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
lift-sqrt.f64N/A
lift-*.f64N/A
sqrt-prodN/A
pow1/2N/A
lower-*.f64N/A
lower-sqrt.f64N/A
pow1/2N/A
lower-sqrt.f6496.8
Applied rewrites96.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lower-+.f64N/A
Applied rewrites98.5%
Taylor expanded in z around inf
Applied rewrites98.5%
Taylor expanded in z around 0
mul-1-negN/A
unsub-negN/A
lower--.f6498.5
Applied rewrites98.5%
Final simplification98.5%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (+ -1.0 z) -1.0)))
(*
(*
(-
(+
(/ 9.984369578019572e-6 7.0)
(-
(-
(-
(-
(/ 771.3234287776531 (+ 3.0 (- (- 1.0 z) 1.0)))
(-
(-
(/ -1259.1392167224028 (- -1.0 (- 1.0 z)))
(/ 676.5203681218851 (- 1.0 z)))
0.9999999999998099))
(/ -176.6150291621406 (- t_0 4.0)))
(/ 12.507343278686905 (- t_0 5.0)))
(/ -0.13857109526572012 (- t_0 6.0))))
(/ 1.5056327351493116e-7 (- t_0 8.0)))
(*
(pow (- 7.5 z) (- 0.5 z))
(* (* (exp (- z 7.5)) (sqrt (PI))) (sqrt 2.0))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(-1 + z\right) - -1\\
\left(\left(\left(\frac{9.984369578019572 \cdot 10^{-6}}{7} + \left(\left(\left(\left(\frac{771.3234287776531}{3 + \left(\left(1 - z\right) - 1\right)} - \left(\left(\frac{-1259.1392167224028}{-1 - \left(1 - z\right)} - \frac{676.5203681218851}{1 - z}\right) - 0.9999999999998099\right)\right) - \frac{-176.6150291621406}{t\_0 - 4}\right) - \frac{12.507343278686905}{t\_0 - 5}\right) - \frac{-0.13857109526572012}{t\_0 - 6}\right)\right) - \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 - 8}\right) \cdot \left({\left(7.5 - z\right)}^{\left(0.5 - z\right)} \cdot \left(\left(e^{z - 7.5} \cdot \sqrt{\mathsf{PI}\left(\right)}\right) \cdot \sqrt{2}\right)\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
lift-sqrt.f64N/A
lift-*.f64N/A
sqrt-prodN/A
pow1/2N/A
lower-*.f64N/A
lower-sqrt.f64N/A
pow1/2N/A
lower-sqrt.f6496.8
Applied rewrites96.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lower-+.f64N/A
Applied rewrites98.5%
Taylor expanded in z around inf
Applied rewrites98.5%
Taylor expanded in z around 0
Applied rewrites98.1%
Final simplification98.1%
(FPCore (z)
:precision binary64
(*
(*
(* (* (sqrt (* 2.0 (PI))) (exp (- z 7.5))) (pow (- 7.5 z) (- 0.5 z)))
(+
(+
(+
(+
(+
(+
(-
(/ 676.5203681218851 (- 1.0 z))
(/ -1259.1392167224028 (- -1.0 (- 1.0 z))))
(+ (/ 771.3234287776531 (- (- 1.0 z) -2.0)) 0.9999999999998099))
(/ -176.6150291621406 (- (- 1.0 z) -3.0)))
(/ 12.507343278686905 (- (- 1.0 z) -4.0)))
(/ -0.13857109526572012 (- (- 1.0 z) -5.0)))
(/ 9.984369578019572e-6 (- (- 1.0 z) -6.0)))
(/ 1.5056327351493116e-7 (- (- 1.0 z) -7.0))))
(/ (PI) (sin (* z (PI))))))\begin{array}{l}
\\
\left(\left(\left(\sqrt{2 \cdot \mathsf{PI}\left(\right)} \cdot e^{z - 7.5}\right) \cdot {\left(7.5 - z\right)}^{\left(0.5 - z\right)}\right) \cdot \left(\left(\left(\left(\left(\left(\left(\frac{676.5203681218851}{1 - z} - \frac{-1259.1392167224028}{-1 - \left(1 - z\right)}\right) + \left(\frac{771.3234287776531}{\left(1 - z\right) - -2} + 0.9999999999998099\right)\right) + \frac{-176.6150291621406}{\left(1 - z\right) - -3}\right) + \frac{12.507343278686905}{\left(1 - z\right) - -4}\right) + \frac{-0.13857109526572012}{\left(1 - z\right) - -5}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{\left(1 - z\right) - -6}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{\left(1 - z\right) - -7}\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
Initial program 96.5%
lift-sqrt.f64N/A
lift-*.f64N/A
sqrt-prodN/A
pow1/2N/A
lower-*.f64N/A
lower-sqrt.f64N/A
pow1/2N/A
lower-sqrt.f6496.8
Applied rewrites96.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lower-+.f64N/A
Applied rewrites98.5%
Taylor expanded in z around inf
Applied rewrites98.5%
Applied rewrites97.7%
Final simplification97.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (+ -1.0 z) -1.0)))
(*
(*
(-
(-
(-
(-
(-
(+
(fma
(fma
(fma 597.824167076735 z 519.1279660315847)
z
361.7355639412844)
z
47.95075976068351)
(/ 771.3234287776531 (- 3.0 z)))
(/ -176.6150291621406 (- t_0 4.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)))
(*
(pow (- 7.5 z) (- (- 1.0 z) 0.5))
(* (sqrt (* 2.0 (PI))) (exp (- z 7.5)))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(-1 + z\right) - -1\\
\left(\left(\left(\left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(597.824167076735, z, 519.1279660315847\right), z, 361.7355639412844\right), z, 47.95075976068351\right) + \frac{771.3234287776531}{3 - z}\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\_0 - 7}\right) - \frac{1.5056327351493116 \cdot 10^{-7}}{t\_0 - 8}\right) \cdot \left({\left(7.5 - z\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{2 \cdot \mathsf{PI}\left(\right)} \cdot e^{z - 7.5}\right)\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
lift-*.f64N/A
lift-exp.f64N/A
lift-neg.f64N/A
exp-negN/A
un-div-invN/A
lower-/.f64N/A
Applied rewrites96.0%
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.f6495.8
Applied rewrites95.8%
Applied rewrites96.7%
Taylor expanded in z around 0
mul-1-negN/A
unsub-negN/A
lower--.f6496.7
Applied rewrites96.7%
Final simplification96.7%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(*
(+
(+
(+
(+
(+
(+
(fma
(fma
(fma 597.824167076735 z 519.1279660315847)
z
361.7355639412844)
z
47.95075976068351)
(/ 771.3234287776531 (+ 3.0 t_0)))
(/ -176.6150291621406 (+ 4.0 t_0)))
(/ 12.507343278686905 (+ 5.0 t_0)))
(/ -0.13857109526572012 (+ 6.0 t_0)))
(/ 9.984369578019572e-6 7.0))
(/ 1.5056327351493116e-7 (+ 8.0 t_0)))
(*
(pow (- 7.5 z) (- (- 1.0 z) 0.5))
(* (sqrt (* 2.0 (PI))) (exp (- z 7.5)))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\left(\left(\left(\left(\left(\left(\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(597.824167076735, z, 519.1279660315847\right), z, 361.7355639412844\right), z, 47.95075976068351\right) + \frac{771.3234287776531}{3 + t\_0}\right) + \frac{-176.6150291621406}{4 + t\_0}\right) + \frac{12.507343278686905}{5 + t\_0}\right) + \frac{-0.13857109526572012}{6 + t\_0}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{7}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{8 + t\_0}\right) \cdot \left({\left(7.5 - z\right)}^{\left(\left(1 - z\right) - 0.5\right)} \cdot \left(\sqrt{2 \cdot \mathsf{PI}\left(\right)} \cdot e^{z - 7.5}\right)\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
lift-*.f64N/A
lift-exp.f64N/A
lift-neg.f64N/A
exp-negN/A
un-div-invN/A
lower-/.f64N/A
Applied rewrites96.0%
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.f6495.8
Applied rewrites95.8%
Applied rewrites96.7%
Taylor expanded in z around 0
Applied rewrites96.6%
Final simplification96.6%
(FPCore (z)
:precision binary64
(let* ((t_0 (sqrt (sqrt (PI)))) (t_1 (- (- 1.0 z) 1.0)))
(*
(*
(+
(+
(+
(+
(+
(+ 47.95075976068351 (/ 771.3234287776531 (+ 3.0 t_1)))
(/ -176.6150291621406 (+ 4.0 t_1)))
(/ 12.507343278686905 (+ 5.0 t_1)))
(/ -0.13857109526572012 (+ 6.0 t_1)))
(/ 9.984369578019572e-6 (+ 7.0 t_1)))
(/ 1.5056327351493116e-7 (+ 8.0 t_1)))
(* (* t_0 t_0) (* (sqrt 15.0) (exp -7.5))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sqrt{\sqrt{\mathsf{PI}\left(\right)}}\\
t_1 := \left(1 - z\right) - 1\\
\left(\left(\left(\left(\left(\left(\left(47.95075976068351 + \frac{771.3234287776531}{3 + t\_1}\right) + \frac{-176.6150291621406}{4 + t\_1}\right) + \frac{12.507343278686905}{5 + t\_1}\right) + \frac{-0.13857109526572012}{6 + t\_1}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{7 + t\_1}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{8 + t\_1}\right) \cdot \left(\left(t\_0 \cdot t\_0\right) \cdot \left(\sqrt{15} \cdot e^{-7.5}\right)\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
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.0
Applied rewrites94.0%
Taylor expanded in z around 0
Applied rewrites95.3%
Applied rewrites95.3%
Applied rewrites96.1%
Final simplification96.1%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(*
(+
(+
(+
(+
(+
(/ -176.6150291621406 4.0)
(+ 47.95075976068351 (/ 771.3234287776531 (+ 3.0 t_0))))
(/ 12.507343278686905 (+ 5.0 t_0)))
(/ -0.13857109526572012 (+ 6.0 t_0)))
(/ 9.984369578019572e-6 (+ 7.0 t_0)))
(/ 1.5056327351493116e-7 (+ 8.0 t_0)))
(* (* (sqrt 15.0) (exp -7.5)) (sqrt (PI))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\left(\left(\left(\left(\left(\left(\frac{-176.6150291621406}{4} + \left(47.95075976068351 + \frac{771.3234287776531}{3 + t\_0}\right)\right) + \frac{12.507343278686905}{5 + t\_0}\right) + \frac{-0.13857109526572012}{6 + t\_0}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{7 + t\_0}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{8 + t\_0}\right) \cdot \left(\left(\sqrt{15} \cdot e^{-7.5}\right) \cdot \sqrt{\mathsf{PI}\left(\right)}\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
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.0
Applied rewrites94.0%
Taylor expanded in z around 0
Applied rewrites95.3%
Applied rewrites95.3%
Taylor expanded in z around 0
Applied rewrites95.3%
Final simplification95.3%
(FPCore (z)
:precision binary64
(let* ((t_0 (- (- 1.0 z) 1.0)))
(*
(*
(* (sqrt (* 15.0 (PI))) (exp -7.5))
(+
(+
(+
(+
(+
(+ 47.95075976068351 (/ 771.3234287776531 (+ 3.0 t_0)))
(/ -176.6150291621406 (+ 4.0 t_0)))
(/ 12.507343278686905 (+ 5.0 t_0)))
(/ -0.13857109526572012 (+ 6.0 t_0)))
(/ 9.984369578019572e-6 (+ 7.0 t_0)))
(/ 1.5056327351493116e-7 (+ 8.0 t_0))))
(/ (PI) (sin (* z (PI)))))))\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(1 - z\right) - 1\\
\left(\left(\sqrt{15 \cdot \mathsf{PI}\left(\right)} \cdot e^{-7.5}\right) \cdot \left(\left(\left(\left(\left(\left(47.95075976068351 + \frac{771.3234287776531}{3 + t\_0}\right) + \frac{-176.6150291621406}{4 + t\_0}\right) + \frac{12.507343278686905}{5 + t\_0}\right) + \frac{-0.13857109526572012}{6 + t\_0}\right) + \frac{9.984369578019572 \cdot 10^{-6}}{7 + t\_0}\right) + \frac{1.5056327351493116 \cdot 10^{-7}}{8 + t\_0}\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
\end{array}
Initial program 96.5%
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.0
Applied rewrites94.0%
Taylor expanded in z around 0
Applied rewrites95.3%
Applied rewrites95.3%
Applied rewrites95.3%
Final simplification95.3%
(FPCore (z) :precision binary64 (* (* (* (* (sqrt 7.5) (sqrt 2.0)) (exp -7.5)) (* 263.3831869810514 (sqrt (PI)))) (/ (PI) (sin (* z (PI))))))
\begin{array}{l}
\\
\left(\left(\left(\sqrt{7.5} \cdot \sqrt{2}\right) \cdot e^{-7.5}\right) \cdot \left(263.3831869810514 \cdot \sqrt{\mathsf{PI}\left(\right)}\right)\right) \cdot \frac{\mathsf{PI}\left(\right)}{\sin \left(z \cdot \mathsf{PI}\left(\right)\right)}
\end{array}
Initial program 96.5%
lift-sqrt.f64N/A
lift-*.f64N/A
sqrt-prodN/A
pow1/2N/A
lower-*.f64N/A
lower-sqrt.f64N/A
pow1/2N/A
lower-sqrt.f6496.8
Applied rewrites96.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lower-+.f64N/A
Applied rewrites98.5%
Taylor expanded in z around inf
Applied rewrites98.5%
Taylor expanded in z around 0
associate-*r*N/A
lower-*.f64N/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-PI.f64N/A
lower-*.f64N/A
lower-exp.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-sqrt.f64N/A
lower-sqrt.f6495.2
Applied rewrites95.2%
Final simplification95.2%
herbie shell --seed 2024331
(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))))))