Lanczos kernel

Percentage Accurate: 97.9% → 97.7%
Time: 7.5s
Alternatives: 16
Speedup: N/A×

Specification

?
\[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
\[\begin{array}{l} t_1 := \left(x \cdot \pi\right) \cdot tau\\ \frac{\sin t\_1}{t\_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \end{array} \]
(FPCore (x tau)
  :precision binary32
  :pre (and (and (<= 1e-5 x) (<= x 1.0))
     (and (<= 1.0 tau) (<= tau 5.0)))
  (let* ((t_1 (* (* x PI) tau)))
  (* (/ (sin t_1) t_1) (/ (sin (* x PI)) (* x PI)))))
float code(float x, float tau) {
	float t_1 = (x * ((float) M_PI)) * tau;
	return (sinf(t_1) / t_1) * (sinf((x * ((float) M_PI))) / (x * ((float) M_PI)));
}
function code(x, tau)
	t_1 = Float32(Float32(x * Float32(pi)) * tau)
	return Float32(Float32(sin(t_1) / t_1) * Float32(sin(Float32(x * Float32(pi))) / Float32(x * Float32(pi))))
end
function tmp = code(x, tau)
	t_1 = (x * single(pi)) * tau;
	tmp = (sin(t_1) / t_1) * (sin((x * single(pi))) / (x * single(pi)));
end
\begin{array}{l}
t_1 := \left(x \cdot \pi\right) \cdot tau\\
\frac{\sin t\_1}{t\_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi}
\end{array}

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 16 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 97.9% accurate, 1.0× speedup?

\[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
\[\begin{array}{l} t_1 := \left(x \cdot \pi\right) \cdot tau\\ \frac{\sin t\_1}{t\_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \end{array} \]
(FPCore (x tau)
  :precision binary32
  :pre (and (and (<= 1e-5 x) (<= x 1.0))
     (and (<= 1.0 tau) (<= tau 5.0)))
  (let* ((t_1 (* (* x PI) tau)))
  (* (/ (sin t_1) t_1) (/ (sin (* x PI)) (* x PI)))))
float code(float x, float tau) {
	float t_1 = (x * ((float) M_PI)) * tau;
	return (sinf(t_1) / t_1) * (sinf((x * ((float) M_PI))) / (x * ((float) M_PI)));
}
function code(x, tau)
	t_1 = Float32(Float32(x * Float32(pi)) * tau)
	return Float32(Float32(sin(t_1) / t_1) * Float32(sin(Float32(x * Float32(pi))) / Float32(x * Float32(pi))))
end
function tmp = code(x, tau)
	t_1 = (x * single(pi)) * tau;
	tmp = (sin(t_1) / t_1) * (sin((x * single(pi))) / (x * single(pi)));
end
\begin{array}{l}
t_1 := \left(x \cdot \pi\right) \cdot tau\\
\frac{\sin t\_1}{t\_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi}
\end{array}

Alternative 1: 97.7% accurate, 1.0× speedup?

\[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
\[\begin{array}{l} t_1 := tau \cdot \left(\pi \cdot x\right)\\ \frac{\sin \left(\pi \cdot x\right) \cdot \sin t\_1}{t\_1 \cdot \left(\pi \cdot x\right)} \end{array} \]
(FPCore (x tau)
  :precision binary32
  :pre (and (and (<= 1e-5 x) (<= x 1.0))
     (and (<= 1.0 tau) (<= tau 5.0)))
  (let* ((t_1 (* tau (* PI x))))
  (/ (* (sin (* PI x)) (sin t_1)) (* t_1 (* PI x)))))
float code(float x, float tau) {
	float t_1 = tau * (((float) M_PI) * x);
	return (sinf((((float) M_PI) * x)) * sinf(t_1)) / (t_1 * (((float) M_PI) * x));
}
function code(x, tau)
	t_1 = Float32(tau * Float32(Float32(pi) * x))
	return Float32(Float32(sin(Float32(Float32(pi) * x)) * sin(t_1)) / Float32(t_1 * Float32(Float32(pi) * x)))
end
function tmp = code(x, tau)
	t_1 = tau * (single(pi) * x);
	tmp = (sin((single(pi) * x)) * sin(t_1)) / (t_1 * (single(pi) * x));
end
\begin{array}{l}
t_1 := tau \cdot \left(\pi \cdot x\right)\\
\frac{\sin \left(\pi \cdot x\right) \cdot \sin t\_1}{t\_1 \cdot \left(\pi \cdot x\right)}
\end{array}
Derivation
  1. Initial program 97.9%

    \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  2. Step-by-step derivation
    1. Applied rewrites97.7%

      \[\leadsto \frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{\left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \left(\pi \cdot x\right)} \]
    2. Add Preprocessing

    Alternative 2: 97.6% accurate, 1.0× speedup?

    \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
    \[\begin{array}{l} t_1 := tau \cdot \left(\pi \cdot x\right)\\ \sin t\_1 \cdot \frac{\sin \left(\pi \cdot x\right)}{t\_1 \cdot \left(\pi \cdot x\right)} \end{array} \]
    (FPCore (x tau)
      :precision binary32
      :pre (and (and (<= 1e-5 x) (<= x 1.0))
         (and (<= 1.0 tau) (<= tau 5.0)))
      (let* ((t_1 (* tau (* PI x))))
      (* (sin t_1) (/ (sin (* PI x)) (* t_1 (* PI x))))))
    float code(float x, float tau) {
    	float t_1 = tau * (((float) M_PI) * x);
    	return sinf(t_1) * (sinf((((float) M_PI) * x)) / (t_1 * (((float) M_PI) * x)));
    }
    
    function code(x, tau)
    	t_1 = Float32(tau * Float32(Float32(pi) * x))
    	return Float32(sin(t_1) * Float32(sin(Float32(Float32(pi) * x)) / Float32(t_1 * Float32(Float32(pi) * x))))
    end
    
    function tmp = code(x, tau)
    	t_1 = tau * (single(pi) * x);
    	tmp = sin(t_1) * (sin((single(pi) * x)) / (t_1 * (single(pi) * x)));
    end
    
    \begin{array}{l}
    t_1 := tau \cdot \left(\pi \cdot x\right)\\
    \sin t\_1 \cdot \frac{\sin \left(\pi \cdot x\right)}{t\_1 \cdot \left(\pi \cdot x\right)}
    \end{array}
    
    Derivation
    1. Initial program 97.9%

      \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. Step-by-step derivation
      1. Applied rewrites97.6%

        \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \left(\pi \cdot x\right)} \]
      2. Add Preprocessing

      Alternative 3: 97.3% accurate, 1.0× speedup?

      \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
      \[\sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{tau \cdot \left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot x\right)\right)} \]
      (FPCore (x tau)
        :precision binary32
        :pre (and (and (<= 1e-5 x) (<= x 1.0))
           (and (<= 1.0 tau) (<= tau 5.0)))
        (*
       (sin (* tau (* PI x)))
       (/ (sin (* PI x)) (* tau (* (* PI x) (* PI x))))))
      float code(float x, float tau) {
      	return sinf((tau * (((float) M_PI) * x))) * (sinf((((float) M_PI) * x)) / (tau * ((((float) M_PI) * x) * (((float) M_PI) * x))));
      }
      
      function code(x, tau)
      	return Float32(sin(Float32(tau * Float32(Float32(pi) * x))) * Float32(sin(Float32(Float32(pi) * x)) / Float32(tau * Float32(Float32(Float32(pi) * x) * Float32(Float32(pi) * x)))))
      end
      
      function tmp = code(x, tau)
      	tmp = sin((tau * (single(pi) * x))) * (sin((single(pi) * x)) / (tau * ((single(pi) * x) * (single(pi) * x))));
      end
      
      \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{tau \cdot \left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot x\right)\right)}
      
      Derivation
      1. Initial program 97.9%

        \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
      2. Step-by-step derivation
        1. Applied rewrites97.6%

          \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \left(\pi \cdot x\right)} \]
        2. Step-by-step derivation
          1. Applied rewrites97.3%

            \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{tau \cdot \left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot x\right)\right)} \]
          2. Add Preprocessing

          Alternative 4: 96.1% accurate, 1.0× speedup?

          \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
          \[\frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{tau \cdot \left(\left(x \cdot x\right) \cdot 9.869604110717773\right)} \]
          (FPCore (x tau)
            :precision binary32
            :pre (and (and (<= 1e-5 x) (<= x 1.0))
               (and (<= 1.0 tau) (<= tau 5.0)))
            (/
           (* (sin (* PI x)) (sin (* tau (* PI x))))
           (* tau (* (* x x) 9.869604110717773))))
          float code(float x, float tau) {
          	return (sinf((((float) M_PI) * x)) * sinf((tau * (((float) M_PI) * x)))) / (tau * ((x * x) * 9.869604110717773f));
          }
          
          function code(x, tau)
          	return Float32(Float32(sin(Float32(Float32(pi) * x)) * sin(Float32(tau * Float32(Float32(pi) * x)))) / Float32(tau * Float32(Float32(x * x) * Float32(9.869604110717773))))
          end
          
          function tmp = code(x, tau)
          	tmp = (sin((single(pi) * x)) * sin((tau * (single(pi) * x)))) / (tau * ((x * x) * single(9.869604110717773)));
          end
          
          \frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{tau \cdot \left(\left(x \cdot x\right) \cdot 9.869604110717773\right)}
          
          Derivation
          1. Initial program 97.9%

            \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
          2. Step-by-step derivation
            1. Applied rewrites97.7%

              \[\leadsto \frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{\left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \left(\pi \cdot x\right)} \]
            2. Step-by-step derivation
              1. Applied rewrites97.3%

                \[\leadsto \frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{tau \cdot \left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot x\right)\right)} \]
              2. Step-by-step derivation
                1. Applied rewrites96.8%

                  \[\leadsto \frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{tau \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi\right)\right)} \]
                2. Evaluated real constant96.1%

                  \[\leadsto \frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{tau \cdot \left(\left(x \cdot x\right) \cdot 9.869604110717773\right)} \]
                3. Add Preprocessing

                Alternative 5: 91.5% accurate, 1.3× speedup?

                \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                \[\begin{array}{l} t_1 := \left(x \cdot \pi\right) \cdot tau\\ \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\pi \cdot \pi, -0.16666666666666666, 0.8117424249649048 \cdot \left(x \cdot x\right)\right), x \cdot x, 1\right) \end{array} \]
                (FPCore (x tau)
                  :precision binary32
                  :pre (and (and (<= 1e-5 x) (<= x 1.0))
                     (and (<= 1.0 tau) (<= tau 5.0)))
                  (let* ((t_1 (* (* x PI) tau)))
                  (*
                   (/ (sin t_1) t_1)
                   (fma
                    (fma
                     (* PI PI)
                     -0.16666666666666666
                     (* 0.8117424249649048 (* x x)))
                    (* x x)
                    1.0))))
                float code(float x, float tau) {
                	float t_1 = (x * ((float) M_PI)) * tau;
                	return (sinf(t_1) / t_1) * fmaf(fmaf((((float) M_PI) * ((float) M_PI)), -0.16666666666666666f, (0.8117424249649048f * (x * x))), (x * x), 1.0f);
                }
                
                function code(x, tau)
                	t_1 = Float32(Float32(x * Float32(pi)) * tau)
                	return Float32(Float32(sin(t_1) / t_1) * fma(fma(Float32(Float32(pi) * Float32(pi)), Float32(-0.16666666666666666), Float32(Float32(0.8117424249649048) * Float32(x * x))), Float32(x * x), Float32(1.0)))
                end
                
                \begin{array}{l}
                t_1 := \left(x \cdot \pi\right) \cdot tau\\
                \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\pi \cdot \pi, -0.16666666666666666, 0.8117424249649048 \cdot \left(x \cdot x\right)\right), x \cdot x, 1\right)
                \end{array}
                
                Derivation
                1. Initial program 97.9%

                  \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                2. Taylor expanded in x around 0

                  \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot {\pi}^{2} + {x}^{2} \cdot \left(\frac{-1}{5040} \cdot \left({x}^{2} \cdot {\pi}^{6}\right) + \frac{1}{120} \cdot {\pi}^{4}\right)\right)\right) \]
                3. Step-by-step derivation
                  1. Applied rewrites94.3%

                    \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {\pi}^{2}, {x}^{2} \cdot \mathsf{fma}\left(-0.0001984126984126984, {x}^{2} \cdot {\pi}^{6}, 0.008333333333333333 \cdot {\pi}^{4}\right)\right)\right) \]
                  2. Step-by-step derivation
                    1. Applied rewrites94.3%

                      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\pi \cdot \pi, -0.16666666666666666, \mathsf{fma}\left({\pi}^{6} \cdot \left(x \cdot x\right), -0.0001984126984126984, {\pi}^{4} \cdot 0.008333333333333333\right) \cdot \left(x \cdot x\right)\right), x \cdot x, 1\right) \]
                    2. Taylor expanded in x around 0

                      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\pi \cdot \pi, -0.16666666666666666, \left(\frac{1}{120} \cdot {\pi}^{4}\right) \cdot \left(x \cdot x\right)\right), x \cdot x, 1\right) \]
                    3. Step-by-step derivation
                      1. Applied rewrites91.5%

                        \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\pi \cdot \pi, -0.16666666666666666, \left(0.008333333333333333 \cdot {\pi}^{4}\right) \cdot \left(x \cdot x\right)\right), x \cdot x, 1\right) \]
                      2. Evaluated real constant91.5%

                        \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\mathsf{fma}\left(\pi \cdot \pi, -0.16666666666666666, 0.8117424249649048 \cdot \left(x \cdot x\right)\right), x \cdot x, 1\right) \]
                      3. Add Preprocessing

                      Alternative 6: 85.4% accurate, 1.5× speedup?

                      \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                      \[\begin{array}{l} t_1 := \left(x \cdot \pi\right) \cdot tau\\ \frac{\sin t\_1}{t\_1} \cdot \left(1 + \left(\left(x \cdot x\right) \cdot -0.16666666666666666\right) \cdot 9.869604110717773\right) \end{array} \]
                      (FPCore (x tau)
                        :precision binary32
                        :pre (and (and (<= 1e-5 x) (<= x 1.0))
                           (and (<= 1.0 tau) (<= tau 5.0)))
                        (let* ((t_1 (* (* x PI) tau)))
                        (*
                         (/ (sin t_1) t_1)
                         (+ 1.0 (* (* (* x x) -0.16666666666666666) 9.869604110717773)))))
                      float code(float x, float tau) {
                      	float t_1 = (x * ((float) M_PI)) * tau;
                      	return (sinf(t_1) / t_1) * (1.0f + (((x * x) * -0.16666666666666666f) * 9.869604110717773f));
                      }
                      
                      function code(x, tau)
                      	t_1 = Float32(Float32(x * Float32(pi)) * tau)
                      	return Float32(Float32(sin(t_1) / t_1) * Float32(Float32(1.0) + Float32(Float32(Float32(x * x) * Float32(-0.16666666666666666)) * Float32(9.869604110717773))))
                      end
                      
                      function tmp = code(x, tau)
                      	t_1 = (x * single(pi)) * tau;
                      	tmp = (sin(t_1) / t_1) * (single(1.0) + (((x * x) * single(-0.16666666666666666)) * single(9.869604110717773)));
                      end
                      
                      \begin{array}{l}
                      t_1 := \left(x \cdot \pi\right) \cdot tau\\
                      \frac{\sin t\_1}{t\_1} \cdot \left(1 + \left(\left(x \cdot x\right) \cdot -0.16666666666666666\right) \cdot 9.869604110717773\right)
                      \end{array}
                      
                      Derivation
                      1. Initial program 97.9%

                        \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                      2. Taylor expanded in x around 0

                        \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                      3. Step-by-step derivation
                        1. Applied rewrites85.4%

                          \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + -0.16666666666666666 \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                        2. Evaluated real constant85.4%

                          \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + -0.16666666666666666 \cdot \left({x}^{2} \cdot 9.869604110717773\right)\right) \]
                        3. Step-by-step derivation
                          1. Applied rewrites85.4%

                            \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + \left(\left(x \cdot x\right) \cdot -0.16666666666666666\right) \cdot 9.869604110717773\right) \]
                          2. Add Preprocessing

                          Alternative 7: 85.4% accurate, 1.5× speedup?

                          \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                          \[\begin{array}{l} t_1 := \left(x \cdot \pi\right) \cdot tau\\ \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(\left(x \cdot x\right) \cdot -0.16666666666666666, 9.869604110717773, 1\right) \end{array} \]
                          (FPCore (x tau)
                            :precision binary32
                            :pre (and (and (<= 1e-5 x) (<= x 1.0))
                               (and (<= 1.0 tau) (<= tau 5.0)))
                            (let* ((t_1 (* (* x PI) tau)))
                            (*
                             (/ (sin t_1) t_1)
                             (fma (* (* x x) -0.16666666666666666) 9.869604110717773 1.0))))
                          float code(float x, float tau) {
                          	float t_1 = (x * ((float) M_PI)) * tau;
                          	return (sinf(t_1) / t_1) * fmaf(((x * x) * -0.16666666666666666f), 9.869604110717773f, 1.0f);
                          }
                          
                          function code(x, tau)
                          	t_1 = Float32(Float32(x * Float32(pi)) * tau)
                          	return Float32(Float32(sin(t_1) / t_1) * fma(Float32(Float32(x * x) * Float32(-0.16666666666666666)), Float32(9.869604110717773), Float32(1.0)))
                          end
                          
                          \begin{array}{l}
                          t_1 := \left(x \cdot \pi\right) \cdot tau\\
                          \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(\left(x \cdot x\right) \cdot -0.16666666666666666, 9.869604110717773, 1\right)
                          \end{array}
                          
                          Derivation
                          1. Initial program 97.9%

                            \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                          2. Taylor expanded in x around 0

                            \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                          3. Step-by-step derivation
                            1. Applied rewrites85.4%

                              \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + -0.16666666666666666 \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                            2. Evaluated real constant85.4%

                              \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + -0.16666666666666666 \cdot \left({x}^{2} \cdot 9.869604110717773\right)\right) \]
                            3. Step-by-step derivation
                              1. Applied rewrites85.4%

                                \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\left(x \cdot x\right) \cdot -0.16666666666666666, 9.869604110717773, 1\right) \]
                              2. Add Preprocessing

                              Alternative 8: 85.4% accurate, 1.5× speedup?

                              \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                              \[\begin{array}{l} t_1 := \left(tau \cdot x\right) \cdot \pi\\ \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), 9.869604110717773, 1\right) \cdot \frac{\sin t\_1}{t\_1} \end{array} \]
                              (FPCore (x tau)
                                :precision binary32
                                :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                   (and (<= 1.0 tau) (<= tau 5.0)))
                                (let* ((t_1 (* (* tau x) PI)))
                                (*
                                 (fma (* -0.16666666666666666 (* x x)) 9.869604110717773 1.0)
                                 (/ (sin t_1) t_1))))
                              float code(float x, float tau) {
                              	float t_1 = (tau * x) * ((float) M_PI);
                              	return fmaf((-0.16666666666666666f * (x * x)), 9.869604110717773f, 1.0f) * (sinf(t_1) / t_1);
                              }
                              
                              function code(x, tau)
                              	t_1 = Float32(Float32(tau * x) * Float32(pi))
                              	return Float32(fma(Float32(Float32(-0.16666666666666666) * Float32(x * x)), Float32(9.869604110717773), Float32(1.0)) * Float32(sin(t_1) / t_1))
                              end
                              
                              \begin{array}{l}
                              t_1 := \left(tau \cdot x\right) \cdot \pi\\
                              \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), 9.869604110717773, 1\right) \cdot \frac{\sin t\_1}{t\_1}
                              \end{array}
                              
                              Derivation
                              1. Initial program 97.9%

                                \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                              2. Taylor expanded in x around 0

                                \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                              3. Step-by-step derivation
                                1. Applied rewrites85.4%

                                  \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(1 + -0.16666666666666666 \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                                2. Applied rewrites85.4%

                                  \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), \pi \cdot \pi, 1\right) \cdot \frac{\sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{\left(tau \cdot x\right) \cdot \pi} \]
                                3. Evaluated real constant85.4%

                                  \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), 9.869604110717773, 1\right) \cdot \frac{\sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{\left(tau \cdot x\right) \cdot \pi} \]
                                4. Add Preprocessing

                                Alternative 9: 84.9% accurate, 1.6× speedup?

                                \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                \[\sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\mathsf{fma}\left(-0.16666666666666666, x \cdot \pi, \frac{1}{x \cdot \pi}\right)}{tau} \]
                                (FPCore (x tau)
                                  :precision binary32
                                  :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                     (and (<= 1.0 tau) (<= tau 5.0)))
                                  (*
                                 (sin (* tau (* PI x)))
                                 (/ (fma -0.16666666666666666 (* x PI) (/ 1.0 (* x PI))) tau)))
                                float code(float x, float tau) {
                                	return sinf((tau * (((float) M_PI) * x))) * (fmaf(-0.16666666666666666f, (x * ((float) M_PI)), (1.0f / (x * ((float) M_PI)))) / tau);
                                }
                                
                                function code(x, tau)
                                	return Float32(sin(Float32(tau * Float32(Float32(pi) * x))) * Float32(fma(Float32(-0.16666666666666666), Float32(x * Float32(pi)), Float32(Float32(1.0) / Float32(x * Float32(pi)))) / tau))
                                end
                                
                                \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\mathsf{fma}\left(-0.16666666666666666, x \cdot \pi, \frac{1}{x \cdot \pi}\right)}{tau}
                                
                                Derivation
                                1. Initial program 97.9%

                                  \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                2. Step-by-step derivation
                                  1. Applied rewrites97.6%

                                    \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \left(\pi \cdot x\right)} \]
                                  2. Taylor expanded in x around 0

                                    \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\frac{-1}{6} \cdot \frac{{x}^{2} \cdot \pi}{tau} + \frac{1}{tau \cdot \pi}}{x} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites84.7%

                                      \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\mathsf{fma}\left(-0.16666666666666666, \frac{{x}^{2} \cdot \pi}{tau}, \frac{1}{tau \cdot \pi}\right)}{x} \]
                                    2. Step-by-step derivation
                                      1. Applied rewrites84.7%

                                        \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \left(\frac{\frac{\left(\pi \cdot x\right) \cdot x}{tau} \cdot -0.16666666666666666}{x} + \frac{\frac{1}{tau \cdot \pi}}{x}\right) \]
                                      2. Taylor expanded in tau around 0

                                        \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\frac{-1}{6} \cdot \left(x \cdot \pi\right) + \frac{1}{x \cdot \pi}}{tau} \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites84.9%

                                          \[\leadsto \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\mathsf{fma}\left(-0.16666666666666666, x \cdot \pi, \frac{1}{x \cdot \pi}\right)}{tau} \]
                                        2. Add Preprocessing

                                        Alternative 10: 78.8% accurate, 4.7× speedup?

                                        \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                        \[1 + \left(-0.16666666666666666 \cdot \mathsf{fma}\left(9.869604110717773, tau \cdot tau, 9.869604110717773\right)\right) \cdot \left(x \cdot x\right) \]
                                        (FPCore (x tau)
                                          :precision binary32
                                          :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                             (and (<= 1.0 tau) (<= tau 5.0)))
                                          (+
                                         1.0
                                         (*
                                          (*
                                           -0.16666666666666666
                                           (fma 9.869604110717773 (* tau tau) 9.869604110717773))
                                          (* x x))))
                                        float code(float x, float tau) {
                                        	return 1.0f + ((-0.16666666666666666f * fmaf(9.869604110717773f, (tau * tau), 9.869604110717773f)) * (x * x));
                                        }
                                        
                                        function code(x, tau)
                                        	return Float32(Float32(1.0) + Float32(Float32(Float32(-0.16666666666666666) * fma(Float32(9.869604110717773), Float32(tau * tau), Float32(9.869604110717773))) * Float32(x * x)))
                                        end
                                        
                                        1 + \left(-0.16666666666666666 \cdot \mathsf{fma}\left(9.869604110717773, tau \cdot tau, 9.869604110717773\right)\right) \cdot \left(x \cdot x\right)
                                        
                                        Derivation
                                        1. Initial program 97.9%

                                          \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                        2. Taylor expanded in x around 0

                                          \[\leadsto 1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\pi}^{2}\right) + \frac{-1}{6} \cdot {\pi}^{2}\right) \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites78.8%

                                            \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot {\pi}^{2}, -0.16666666666666666 \cdot {\pi}^{2}\right) \]
                                          2. Step-by-step derivation
                                            1. Applied rewrites78.8%

                                              \[\leadsto 1 + \left(-0.16666666666666666 \cdot \mathsf{fma}\left(\pi \cdot \pi, tau \cdot tau, \pi \cdot \pi\right)\right) \cdot \left(x \cdot x\right) \]
                                            2. Evaluated real constant78.8%

                                              \[\leadsto 1 + \left(-0.16666666666666666 \cdot \mathsf{fma}\left(9.869604110717773, tau \cdot tau, 9.869604110717773\right)\right) \cdot \left(x \cdot x\right) \]
                                            3. Add Preprocessing

                                            Alternative 11: 78.8% accurate, 4.9× speedup?

                                            \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                            \[\mathsf{fma}\left(-0.16666666666666666 \cdot \mathsf{fma}\left(9.869604110717773, tau \cdot tau, 9.869604110717773\right), x \cdot x, 1\right) \]
                                            (FPCore (x tau)
                                              :precision binary32
                                              :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                                 (and (<= 1.0 tau) (<= tau 5.0)))
                                              (fma
                                             (*
                                              -0.16666666666666666
                                              (fma 9.869604110717773 (* tau tau) 9.869604110717773))
                                             (* x x)
                                             1.0))
                                            float code(float x, float tau) {
                                            	return fmaf((-0.16666666666666666f * fmaf(9.869604110717773f, (tau * tau), 9.869604110717773f)), (x * x), 1.0f);
                                            }
                                            
                                            function code(x, tau)
                                            	return fma(Float32(Float32(-0.16666666666666666) * fma(Float32(9.869604110717773), Float32(tau * tau), Float32(9.869604110717773))), Float32(x * x), Float32(1.0))
                                            end
                                            
                                            \mathsf{fma}\left(-0.16666666666666666 \cdot \mathsf{fma}\left(9.869604110717773, tau \cdot tau, 9.869604110717773\right), x \cdot x, 1\right)
                                            
                                            Derivation
                                            1. Initial program 97.9%

                                              \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                            2. Taylor expanded in x around 0

                                              \[\leadsto 1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\pi}^{2}\right) + \frac{-1}{6} \cdot {\pi}^{2}\right) \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites78.8%

                                                \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot {\pi}^{2}, -0.16666666666666666 \cdot {\pi}^{2}\right) \]
                                              2. Applied rewrites78.8%

                                                \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \mathsf{fma}\left(\pi \cdot \pi, tau \cdot tau, \pi \cdot \pi\right), x \cdot x, 1\right) \]
                                              3. Evaluated real constant78.8%

                                                \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \mathsf{fma}\left(9.869604110717773, tau \cdot tau, 9.869604110717773\right), x \cdot x, 1\right) \]
                                              4. Add Preprocessing

                                              Alternative 12: 78.8% accurate, 4.9× speedup?

                                              \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                              \[\mathsf{fma}\left(\mathsf{fma}\left(\left(tau \cdot tau\right) \cdot 9.869604110717773, -0.16666666666666666, -1.6449340184529622\right), x \cdot x, 1\right) \]
                                              (FPCore (x tau)
                                                :precision binary32
                                                :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                                   (and (<= 1.0 tau) (<= tau 5.0)))
                                                (fma
                                               (fma
                                                (* (* tau tau) 9.869604110717773)
                                                -0.16666666666666666
                                                -1.6449340184529622)
                                               (* x x)
                                               1.0))
                                              float code(float x, float tau) {
                                              	return fmaf(fmaf(((tau * tau) * 9.869604110717773f), -0.16666666666666666f, -1.6449340184529622f), (x * x), 1.0f);
                                              }
                                              
                                              function code(x, tau)
                                              	return fma(fma(Float32(Float32(tau * tau) * Float32(9.869604110717773)), Float32(-0.16666666666666666), Float32(-1.6449340184529622)), Float32(x * x), Float32(1.0))
                                              end
                                              
                                              \mathsf{fma}\left(\mathsf{fma}\left(\left(tau \cdot tau\right) \cdot 9.869604110717773, -0.16666666666666666, -1.6449340184529622\right), x \cdot x, 1\right)
                                              
                                              Derivation
                                              1. Initial program 97.9%

                                                \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                              2. Taylor expanded in x around 0

                                                \[\leadsto 1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\pi}^{2}\right) + \frac{-1}{6} \cdot {\pi}^{2}\right) \]
                                              3. Step-by-step derivation
                                                1. Applied rewrites78.8%

                                                  \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot {\pi}^{2}, -0.16666666666666666 \cdot {\pi}^{2}\right) \]
                                                2. Evaluated real constant78.8%

                                                  \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot 9.869604110717773, -0.16666666666666666 \cdot 9.869604110717773\right) \]
                                                3. Applied rewrites78.8%

                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\left(tau \cdot tau\right) \cdot 9.869604110717773, -0.16666666666666666, -1.6449340184529622\right), x \cdot x, 1\right) \]
                                                4. Add Preprocessing

                                                Alternative 13: 69.8% accurate, 5.4× speedup?

                                                \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                \[\mathsf{fma}\left(\left(9.869604110717773 \cdot \left(tau \cdot tau\right)\right) \cdot -0.16666666666666666, x \cdot x, 1\right) \]
                                                (FPCore (x tau)
                                                  :precision binary32
                                                  :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                                     (and (<= 1.0 tau) (<= tau 5.0)))
                                                  (fma
                                                 (* (* 9.869604110717773 (* tau tau)) -0.16666666666666666)
                                                 (* x x)
                                                 1.0))
                                                float code(float x, float tau) {
                                                	return fmaf(((9.869604110717773f * (tau * tau)) * -0.16666666666666666f), (x * x), 1.0f);
                                                }
                                                
                                                function code(x, tau)
                                                	return fma(Float32(Float32(Float32(9.869604110717773) * Float32(tau * tau)) * Float32(-0.16666666666666666)), Float32(x * x), Float32(1.0))
                                                end
                                                
                                                \mathsf{fma}\left(\left(9.869604110717773 \cdot \left(tau \cdot tau\right)\right) \cdot -0.16666666666666666, x \cdot x, 1\right)
                                                
                                                Derivation
                                                1. Initial program 97.9%

                                                  \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                                2. Taylor expanded in x around 0

                                                  \[\leadsto 1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\pi}^{2}\right) + \frac{-1}{6} \cdot {\pi}^{2}\right) \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites78.8%

                                                    \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot {\pi}^{2}, -0.16666666666666666 \cdot {\pi}^{2}\right) \]
                                                  2. Taylor expanded in tau around inf

                                                    \[\leadsto 1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\pi}^{2}\right)\right) \]
                                                  3. Step-by-step derivation
                                                    1. Applied rewrites69.8%

                                                      \[\leadsto 1 + {x}^{2} \cdot \left(-0.16666666666666666 \cdot \left({tau}^{2} \cdot {\pi}^{2}\right)\right) \]
                                                    2. Applied rewrites69.8%

                                                      \[\leadsto \mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(tau \cdot tau\right)\right) \cdot -0.16666666666666666, x \cdot x, 1\right) \]
                                                    3. Evaluated real constant69.8%

                                                      \[\leadsto \mathsf{fma}\left(\left(9.869604110717773 \cdot \left(tau \cdot tau\right)\right) \cdot -0.16666666666666666, x \cdot x, 1\right) \]
                                                    4. Add Preprocessing

                                                    Alternative 14: 69.8% accurate, 6.3× speedup?

                                                    \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                    \[1 + -1.6449340184529622 \cdot \left(\left(tau \cdot tau\right) \cdot \left(x \cdot x\right)\right) \]
                                                    (FPCore (x tau)
                                                      :precision binary32
                                                      :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                                         (and (<= 1.0 tau) (<= tau 5.0)))
                                                      (+ 1.0 (* -1.6449340184529622 (* (* tau tau) (* x x)))))
                                                    float code(float x, float tau) {
                                                    	return 1.0f + (-1.6449340184529622f * ((tau * tau) * (x * x)));
                                                    }
                                                    
                                                    real(4) function code(x, tau)
                                                    use fmin_fmax_functions
                                                        real(4), intent (in) :: x
                                                        real(4), intent (in) :: tau
                                                        code = 1.0e0 + ((-1.6449340184529622e0) * ((tau * tau) * (x * x)))
                                                    end function
                                                    
                                                    function code(x, tau)
                                                    	return Float32(Float32(1.0) + Float32(Float32(-1.6449340184529622) * Float32(Float32(tau * tau) * Float32(x * x))))
                                                    end
                                                    
                                                    function tmp = code(x, tau)
                                                    	tmp = single(1.0) + (single(-1.6449340184529622) * ((tau * tau) * (x * x)));
                                                    end
                                                    
                                                    1 + -1.6449340184529622 \cdot \left(\left(tau \cdot tau\right) \cdot \left(x \cdot x\right)\right)
                                                    
                                                    Derivation
                                                    1. Initial program 97.9%

                                                      \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                                    2. Taylor expanded in x around 0

                                                      \[\leadsto 1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\pi}^{2}\right) + \frac{-1}{6} \cdot {\pi}^{2}\right) \]
                                                    3. Step-by-step derivation
                                                      1. Applied rewrites78.8%

                                                        \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot {\pi}^{2}, -0.16666666666666666 \cdot {\pi}^{2}\right) \]
                                                      2. Evaluated real constant78.8%

                                                        \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot 9.869604110717773, -0.16666666666666666 \cdot 9.869604110717773\right) \]
                                                      3. Taylor expanded in tau around inf

                                                        \[\leadsto 1 + \frac{-5174515}{3145728} \cdot \left({tau}^{2} \cdot {x}^{2}\right) \]
                                                      4. Step-by-step derivation
                                                        1. Applied rewrites69.8%

                                                          \[\leadsto 1 + -1.6449340184529622 \cdot \left({tau}^{2} \cdot {x}^{2}\right) \]
                                                        2. Step-by-step derivation
                                                          1. Applied rewrites69.8%

                                                            \[\leadsto 1 + -1.6449340184529622 \cdot \left(\left(tau \cdot tau\right) \cdot \left(x \cdot x\right)\right) \]
                                                          2. Add Preprocessing

                                                          Alternative 15: 64.5% accurate, 8.1× speedup?

                                                          \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                          \[1 \cdot \mathsf{fma}\left(x \cdot x, -1.644934058189392, 1\right) \]
                                                          (FPCore (x tau)
                                                            :precision binary32
                                                            :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                                               (and (<= 1.0 tau) (<= tau 5.0)))
                                                            (* 1.0 (fma (* x x) -1.644934058189392 1.0)))
                                                          float code(float x, float tau) {
                                                          	return 1.0f * fmaf((x * x), -1.644934058189392f, 1.0f);
                                                          }
                                                          
                                                          function code(x, tau)
                                                          	return Float32(Float32(1.0) * fma(Float32(x * x), Float32(-1.644934058189392), Float32(1.0)))
                                                          end
                                                          
                                                          1 \cdot \mathsf{fma}\left(x \cdot x, -1.644934058189392, 1\right)
                                                          
                                                          Derivation
                                                          1. Initial program 97.9%

                                                            \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                                          2. Taylor expanded in x around 0

                                                            \[\leadsto 1 \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites64.4%

                                                              \[\leadsto 1 \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                                            2. Taylor expanded in x around 0

                                                              \[\leadsto 1 \cdot \left(1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                                                            3. Step-by-step derivation
                                                              1. Applied rewrites64.5%

                                                                \[\leadsto 1 \cdot \left(1 + -0.16666666666666666 \cdot \left({x}^{2} \cdot {\pi}^{2}\right)\right) \]
                                                              2. Step-by-step derivation
                                                                1. Applied rewrites64.5%

                                                                  \[\leadsto 1 \cdot \mathsf{fma}\left(x \cdot x, \left(\pi \cdot \pi\right) \cdot -0.16666666666666666, 1\right) \]
                                                                2. Evaluated real constant64.5%

                                                                  \[\leadsto 1 \cdot \mathsf{fma}\left(x \cdot x, -1.644934058189392, 1\right) \]
                                                                3. Add Preprocessing

                                                                Alternative 16: 64.5% accurate, 10.2× speedup?

                                                                \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                                \[1 + \left(x \cdot x\right) \cdot -1.6449340184529622 \]
                                                                (FPCore (x tau)
                                                                  :precision binary32
                                                                  :pre (and (and (<= 1e-5 x) (<= x 1.0))
                                                                     (and (<= 1.0 tau) (<= tau 5.0)))
                                                                  (+ 1.0 (* (* x x) -1.6449340184529622)))
                                                                float code(float x, float tau) {
                                                                	return 1.0f + ((x * x) * -1.6449340184529622f);
                                                                }
                                                                
                                                                real(4) function code(x, tau)
                                                                use fmin_fmax_functions
                                                                    real(4), intent (in) :: x
                                                                    real(4), intent (in) :: tau
                                                                    code = 1.0e0 + ((x * x) * (-1.6449340184529622e0))
                                                                end function
                                                                
                                                                function code(x, tau)
                                                                	return Float32(Float32(1.0) + Float32(Float32(x * x) * Float32(-1.6449340184529622)))
                                                                end
                                                                
                                                                function tmp = code(x, tau)
                                                                	tmp = single(1.0) + ((x * x) * single(-1.6449340184529622));
                                                                end
                                                                
                                                                1 + \left(x \cdot x\right) \cdot -1.6449340184529622
                                                                
                                                                Derivation
                                                                1. Initial program 97.9%

                                                                  \[\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
                                                                2. Taylor expanded in x around 0

                                                                  \[\leadsto 1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\pi}^{2}\right) + \frac{-1}{6} \cdot {\pi}^{2}\right) \]
                                                                3. Step-by-step derivation
                                                                  1. Applied rewrites78.8%

                                                                    \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot {\pi}^{2}, -0.16666666666666666 \cdot {\pi}^{2}\right) \]
                                                                  2. Evaluated real constant78.8%

                                                                    \[\leadsto 1 + {x}^{2} \cdot \mathsf{fma}\left(-0.16666666666666666, {tau}^{2} \cdot 9.869604110717773, -0.16666666666666666 \cdot 9.869604110717773\right) \]
                                                                  3. Taylor expanded in tau around 0

                                                                    \[\leadsto 1 + {x}^{2} \cdot \frac{-5174515}{3145728} \]
                                                                  4. Step-by-step derivation
                                                                    1. Applied rewrites64.5%

                                                                      \[\leadsto 1 + {x}^{2} \cdot -1.6449340184529622 \]
                                                                    2. Step-by-step derivation
                                                                      1. Applied rewrites64.5%

                                                                        \[\leadsto 1 + \left(x \cdot x\right) \cdot -1.6449340184529622 \]
                                                                      2. Add Preprocessing

                                                                      Reproduce

                                                                      ?
                                                                      herbie shell --seed 2026084 
                                                                      (FPCore (x tau)
                                                                        :name "Lanczos kernel"
                                                                        :precision binary32
                                                                        :pre (and (and (<= 1e-5 x) (<= x 1.0)) (and (<= 1.0 tau) (<= tau 5.0)))
                                                                        (* (/ (sin (* (* x PI) tau)) (* (* x PI) tau)) (/ (sin (* x PI)) (* x PI))))