Lanczos kernel

Percentage Accurate: 97.9% → 97.9%
Time: 6.8s
Alternatives: 20
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 20 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.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 := \pi \cdot \left(tau \cdot x\right)\\ \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 (* PI (* tau x))))
  (* (/ (sin t_1) t_1) (/ (sin (* x PI)) (* x PI)))))
float code(float x, float tau) {
	float t_1 = ((float) M_PI) * (tau * x);
	return (sinf(t_1) / t_1) * (sinf((x * ((float) M_PI))) / (x * ((float) M_PI)));
}
function code(x, tau)
	t_1 = Float32(Float32(pi) * Float32(tau * x))
	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 = single(pi) * (tau * x);
	tmp = (sin(t_1) / t_1) * (sin((x * single(pi))) / (x * single(pi)));
end
\begin{array}{l}
t_1 := \pi \cdot \left(tau \cdot x\right)\\
\frac{\sin t\_1}{t\_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi}
\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.9%

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

    Alternative 2: 97.8% 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.8%

        \[\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 3: 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 := x \cdot \left(tau \cdot \pi\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 (* x (* tau PI))))
        (* (sin t_1) (/ (sin (* PI x)) (* t_1 (* PI x))))))
      float code(float x, float tau) {
      	float t_1 = x * (tau * ((float) M_PI));
      	return sinf(t_1) * (sinf((((float) M_PI) * x)) / (t_1 * (((float) M_PI) * x)));
      }
      
      function code(x, tau)
      	t_1 = Float32(x * Float32(tau * Float32(pi)))
      	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 = x * (tau * single(pi));
      	tmp = sin(t_1) * (sin((single(pi) * x)) / (t_1 * (single(pi) * x)));
      end
      
      \begin{array}{l}
      t_1 := x \cdot \left(tau \cdot \pi\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. Step-by-step derivation
          1. Applied rewrites97.6%

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

          Alternative 4: 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 5: 96.8% 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)}{\left(tau \cdot \left(x \cdot x\right)\right) \cdot \left(\pi \cdot \pi\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 (* x x)) (* PI PI)))))
            float code(float x, float tau) {
            	return sinf((tau * (((float) M_PI) * x))) * (sinf((((float) M_PI) * x)) / ((tau * (x * x)) * (((float) M_PI) * ((float) M_PI))));
            }
            
            function code(x, tau)
            	return Float32(sin(Float32(tau * Float32(Float32(pi) * x))) * Float32(sin(Float32(Float32(pi) * x)) / Float32(Float32(tau * Float32(x * x)) * Float32(Float32(pi) * Float32(pi)))))
            end
            
            function tmp = code(x, tau)
            	tmp = sin((tau * (single(pi) * x))) * (sin((single(pi) * x)) / ((tau * (x * x)) * (single(pi) * single(pi))));
            end
            
            \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(tau \cdot \left(x \cdot x\right)\right) \cdot \left(\pi \cdot \pi\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.2%

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

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

                  Alternative 6: 96.2% 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(tau \cdot \left(\pi \cdot x\right)\right)}{tau} \cdot \frac{\frac{\sin \left(\pi \cdot x\right)}{x \cdot x}}{9.869604110717773} \]
                  (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))) tau)
                   (/ (/ (sin (* PI x)) (* x x)) 9.869604110717773)))
                  float code(float x, float tau) {
                  	return (sinf((tau * (((float) M_PI) * x))) / tau) * ((sinf((((float) M_PI) * x)) / (x * x)) / 9.869604110717773f);
                  }
                  
                  function code(x, tau)
                  	return Float32(Float32(sin(Float32(tau * Float32(Float32(pi) * x))) / tau) * Float32(Float32(sin(Float32(Float32(pi) * x)) / Float32(x * x)) / Float32(9.869604110717773)))
                  end
                  
                  function tmp = code(x, tau)
                  	tmp = (sin((tau * (single(pi) * x))) / tau) * ((sin((single(pi) * x)) / (x * x)) / single(9.869604110717773));
                  end
                  
                  \frac{\sin \left(tau \cdot \left(\pi \cdot x\right)\right)}{tau} \cdot \frac{\frac{\sin \left(\pi \cdot x\right)}{x \cdot x}}{9.869604110717773}
                  
                  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.4%

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

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

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

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

                        Alternative 7: 96.2% 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(\left(tau \cdot x\right) \cdot \pi\right)}{\left(tau \cdot \left(x \cdot x\right)\right) \cdot 9.869604110717773} \]
                        (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 x) PI)))
                         (* (* tau (* x x)) 9.869604110717773)))
                        float code(float x, float tau) {
                        	return (sinf((((float) M_PI) * x)) * sinf(((tau * x) * ((float) M_PI)))) / ((tau * (x * x)) * 9.869604110717773f);
                        }
                        
                        function code(x, tau)
                        	return Float32(Float32(sin(Float32(Float32(pi) * x)) * sin(Float32(Float32(tau * x) * Float32(pi)))) / Float32(Float32(tau * Float32(x * x)) * Float32(9.869604110717773)))
                        end
                        
                        function tmp = code(x, tau)
                        	tmp = (sin((single(pi) * x)) * sin(((tau * x) * single(pi)))) / ((tau * (x * x)) * single(9.869604110717773));
                        end
                        
                        \frac{\sin \left(\pi \cdot x\right) \cdot \sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{\left(tau \cdot \left(x \cdot x\right)\right) \cdot 9.869604110717773}
                        
                        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 rewrites78.3%

                            \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(\mathsf{fma}\left(-x, \pi, \pi\right)\right)}{x \cdot \pi} \]
                          2. Applied rewrites97.1%

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

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

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

                            Alternative 8: 96.2% 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(tau \cdot \left(\pi \cdot x\right)\right) \cdot \sin \left(\pi \cdot x\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 (* tau (* PI x))) (sin (* PI x)))
                             (* tau (* (* x x) 9.869604110717773))))
                            float code(float x, float tau) {
                            	return (sinf((tau * (((float) M_PI) * x))) * sinf((((float) M_PI) * x))) / (tau * ((x * x) * 9.869604110717773f));
                            }
                            
                            function code(x, tau)
                            	return Float32(Float32(sin(Float32(tau * Float32(Float32(pi) * x))) * sin(Float32(Float32(pi) * x))) / Float32(tau * Float32(Float32(x * x) * Float32(9.869604110717773))))
                            end
                            
                            function tmp = code(x, tau)
                            	tmp = (sin((tau * (single(pi) * x))) * sin((single(pi) * x))) / (tau * ((x * x) * single(9.869604110717773)));
                            end
                            
                            \frac{\sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \sin \left(\pi \cdot x\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.4%

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

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

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

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

                                  Alternative 9: 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)\]
                                  \[\sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(tau \cdot \left(x \cdot x\right)\right) \cdot 9.869604110717773} \]
                                  (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 (* x x)) 9.869604110717773))))
                                  float code(float x, float tau) {
                                  	return sinf((tau * (((float) M_PI) * x))) * (sinf((((float) M_PI) * x)) / ((tau * (x * x)) * 9.869604110717773f));
                                  }
                                  
                                  function code(x, tau)
                                  	return Float32(sin(Float32(tau * Float32(Float32(pi) * x))) * Float32(sin(Float32(Float32(pi) * x)) / Float32(Float32(tau * Float32(x * x)) * Float32(9.869604110717773))))
                                  end
                                  
                                  function tmp = code(x, tau)
                                  	tmp = sin((tau * (single(pi) * x))) * (sin((single(pi) * x)) / ((tau * (x * x)) * single(9.869604110717773)));
                                  end
                                  
                                  \sin \left(tau \cdot \left(\pi \cdot x\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(tau \cdot \left(x \cdot x\right)\right) \cdot 9.869604110717773}
                                  
                                  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.2%

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

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

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

                                        Alternative 10: 85.1% 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(9.869604110717773 \cdot \left(x \cdot x\right), -0.16666666666666666, 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 (* 9.869604110717773 (* x x)) -0.16666666666666666 1.0)
                                           (/ (sin t_1) t_1))))
                                        float code(float x, float tau) {
                                        	float t_1 = (tau * x) * ((float) M_PI);
                                        	return fmaf((9.869604110717773f * (x * x)), -0.16666666666666666f, 1.0f) * (sinf(t_1) / t_1);
                                        }
                                        
                                        function code(x, tau)
                                        	t_1 = Float32(Float32(tau * x) * Float32(pi))
                                        	return Float32(fma(Float32(Float32(9.869604110717773) * Float32(x * x)), Float32(-0.16666666666666666), 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(9.869604110717773 \cdot \left(x \cdot x\right), -0.16666666666666666, 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.1%

                                            \[\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.1%

                                            \[\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.1%

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

                                            Alternative 11: 85.1% accurate, 1.6× 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 := x \cdot \left(tau \cdot \pi\right)\\ \frac{\sin t\_1}{t\_1} \cdot \left(1 + \left(x \cdot x\right) \cdot -1.644934058189392\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 (* tau PI))))
                                              (* (/ (sin t_1) t_1) (+ 1.0 (* (* x x) -1.644934058189392)))))
                                            float code(float x, float tau) {
                                            	float t_1 = x * (tau * ((float) M_PI));
                                            	return (sinf(t_1) / t_1) * (1.0f + ((x * x) * -1.644934058189392f));
                                            }
                                            
                                            function code(x, tau)
                                            	t_1 = Float32(x * Float32(tau * Float32(pi)))
                                            	return Float32(Float32(sin(t_1) / t_1) * Float32(Float32(1.0) + Float32(Float32(x * x) * Float32(-1.644934058189392))))
                                            end
                                            
                                            function tmp = code(x, tau)
                                            	t_1 = x * (tau * single(pi));
                                            	tmp = (sin(t_1) / t_1) * (single(1.0) + ((x * x) * single(-1.644934058189392)));
                                            end
                                            
                                            \begin{array}{l}
                                            t_1 := x \cdot \left(tau \cdot \pi\right)\\
                                            \frac{\sin t\_1}{t\_1} \cdot \left(1 + \left(x \cdot x\right) \cdot -1.644934058189392\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.1%

                                                \[\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. Step-by-step derivation
                                                1. Applied rewrites85.1%

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

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

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

                                                  Alternative 12: 85.1% accurate, 1.6× 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 := x \cdot \left(tau \cdot \pi\right)\\ \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(x \cdot x, -1.644934058189392, 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 (* tau PI))))
                                                    (* (/ (sin t_1) t_1) (fma (* x x) -1.644934058189392 1.0))))
                                                  float code(float x, float tau) {
                                                  	float t_1 = x * (tau * ((float) M_PI));
                                                  	return (sinf(t_1) / t_1) * fmaf((x * x), -1.644934058189392f, 1.0f);
                                                  }
                                                  
                                                  function code(x, tau)
                                                  	t_1 = Float32(x * Float32(tau * Float32(pi)))
                                                  	return Float32(Float32(sin(t_1) / t_1) * fma(Float32(x * x), Float32(-1.644934058189392), Float32(1.0)))
                                                  end
                                                  
                                                  \begin{array}{l}
                                                  t_1 := x \cdot \left(tau \cdot \pi\right)\\
                                                  \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(x \cdot x, -1.644934058189392, 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.1%

                                                      \[\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. Step-by-step derivation
                                                      1. Applied rewrites85.1%

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

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

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

                                                        Alternative 13: 79.2% accurate, 2.5× speedup?

                                                        \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                        \[\left(1 + -0.16666666666666666 \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi\right)\right)\right)\right) \cdot \left(1 + \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(\pi \cdot \pi\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
                                                          (* -0.16666666666666666 (* (* tau tau) (* (* x x) (* PI PI)))))
                                                         (+ 1.0 (* (* -0.16666666666666666 (* x x)) (* PI PI)))))
                                                        float code(float x, float tau) {
                                                        	return (1.0f + (-0.16666666666666666f * ((tau * tau) * ((x * x) * (((float) M_PI) * ((float) M_PI)))))) * (1.0f + ((-0.16666666666666666f * (x * x)) * (((float) M_PI) * ((float) M_PI))));
                                                        }
                                                        
                                                        function code(x, tau)
                                                        	return Float32(Float32(Float32(1.0) + Float32(Float32(-0.16666666666666666) * Float32(Float32(tau * tau) * Float32(Float32(x * x) * Float32(Float32(pi) * Float32(pi)))))) * Float32(Float32(1.0) + Float32(Float32(Float32(-0.16666666666666666) * Float32(x * x)) * Float32(Float32(pi) * Float32(pi)))))
                                                        end
                                                        
                                                        function tmp = code(x, tau)
                                                        	tmp = (single(1.0) + (single(-0.16666666666666666) * ((tau * tau) * ((x * x) * (single(pi) * single(pi)))))) * (single(1.0) + ((single(-0.16666666666666666) * (x * x)) * (single(pi) * single(pi))));
                                                        end
                                                        
                                                        \left(1 + -0.16666666666666666 \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi\right)\right)\right)\right) \cdot \left(1 + \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(\pi \cdot \pi\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 \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.1%

                                                            \[\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. Step-by-step derivation
                                                            1. Applied rewrites85.1%

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

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

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

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

                                                                Alternative 14: 79.2% accurate, 2.5× speedup?

                                                                \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                                \[\left(1 + -0.16666666666666666 \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi\right)\right)\right)\right) \cdot \mathsf{fma}\left(-0.16666666666666666, \left(\pi \cdot x\right) \cdot \left(\pi \cdot x\right), 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
                                                                  (* -0.16666666666666666 (* (* tau tau) (* (* x x) (* PI PI)))))
                                                                 (fma -0.16666666666666666 (* (* PI x) (* PI x)) 1.0)))
                                                                float code(float x, float tau) {
                                                                	return (1.0f + (-0.16666666666666666f * ((tau * tau) * ((x * x) * (((float) M_PI) * ((float) M_PI)))))) * fmaf(-0.16666666666666666f, ((((float) M_PI) * x) * (((float) M_PI) * x)), 1.0f);
                                                                }
                                                                
                                                                function code(x, tau)
                                                                	return Float32(Float32(Float32(1.0) + Float32(Float32(-0.16666666666666666) * Float32(Float32(tau * tau) * Float32(Float32(x * x) * Float32(Float32(pi) * Float32(pi)))))) * fma(Float32(-0.16666666666666666), Float32(Float32(Float32(pi) * x) * Float32(Float32(pi) * x)), Float32(1.0)))
                                                                end
                                                                
                                                                \left(1 + -0.16666666666666666 \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi\right)\right)\right)\right) \cdot \mathsf{fma}\left(-0.16666666666666666, \left(\pi \cdot x\right) \cdot \left(\pi \cdot x\right), 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 \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.1%

                                                                    \[\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. Step-by-step derivation
                                                                    1. Applied rewrites85.1%

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

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

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

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

                                                                        Alternative 15: 78.5% 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.5%

                                                                            \[\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.5%

                                                                              \[\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.5%

                                                                              \[\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 16: 78.5% 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.5%

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

                                                                                \[\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.5%

                                                                                \[\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 17: 78.5% 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(9.869604110717773 \cdot \left(tau \cdot tau\right), -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
                                                                                (* 9.869604110717773 (* tau tau))
                                                                                -0.16666666666666666
                                                                                -1.6449340184529622)
                                                                               (* x x)
                                                                               1.0))
                                                                              float code(float x, float tau) {
                                                                              	return fmaf(fmaf((9.869604110717773f * (tau * tau)), -0.16666666666666666f, -1.6449340184529622f), (x * x), 1.0f);
                                                                              }
                                                                              
                                                                              function code(x, tau)
                                                                              	return fma(fma(Float32(Float32(9.869604110717773) * Float32(tau * tau)), Float32(-0.16666666666666666), Float32(-1.6449340184529622)), Float32(x * x), Float32(1.0))
                                                                              end
                                                                              
                                                                              \mathsf{fma}\left(\mathsf{fma}\left(9.869604110717773 \cdot \left(tau \cdot tau\right), -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.5%

                                                                                  \[\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.5%

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

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

                                                                                Alternative 18: 69.3% 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 x\right) \cdot \left(tau \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 x) (* tau x)))))
                                                                                float code(float x, float tau) {
                                                                                	return 1.0f + (-1.6449340184529622f * ((tau * x) * (tau * 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 * x) * (tau * x)))
                                                                                end function
                                                                                
                                                                                function code(x, tau)
                                                                                	return Float32(Float32(1.0) + Float32(Float32(-1.6449340184529622) * Float32(Float32(tau * x) * Float32(tau * x))))
                                                                                end
                                                                                
                                                                                function tmp = code(x, tau)
                                                                                	tmp = single(1.0) + (single(-1.6449340184529622) * ((tau * x) * (tau * x)));
                                                                                end
                                                                                
                                                                                1 + -1.6449340184529622 \cdot \left(\left(tau \cdot x\right) \cdot \left(tau \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.5%

                                                                                    \[\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.5%

                                                                                    \[\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.3%

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

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

                                                                                      Alternative 19: 69.3% accurate, 6.5× speedup?

                                                                                      \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                                                      \[\mathsf{fma}\left(-1.644934058189392 \cdot \left(tau \cdot tau\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 (* -1.644934058189392 (* tau tau)) (* x x) 1.0))
                                                                                      float code(float x, float tau) {
                                                                                      	return fmaf((-1.644934058189392f * (tau * tau)), (x * x), 1.0f);
                                                                                      }
                                                                                      
                                                                                      function code(x, tau)
                                                                                      	return fma(Float32(Float32(-1.644934058189392) * Float32(tau * tau)), Float32(x * x), Float32(1.0))
                                                                                      end
                                                                                      
                                                                                      \mathsf{fma}\left(-1.644934058189392 \cdot \left(tau \cdot tau\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.5%

                                                                                          \[\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.3%

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

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

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

                                                                                          Alternative 20: 64.0% accurate, 10.8× speedup?

                                                                                          \[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
                                                                                          \[\mathsf{fma}\left(-1.644934058189392, 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 -1.644934058189392 (* x x) 1.0))
                                                                                          float code(float x, float tau) {
                                                                                          	return fmaf(-1.644934058189392f, (x * x), 1.0f);
                                                                                          }
                                                                                          
                                                                                          function code(x, tau)
                                                                                          	return fma(Float32(-1.644934058189392), Float32(x * x), Float32(1.0))
                                                                                          end
                                                                                          
                                                                                          \mathsf{fma}\left(-1.644934058189392, 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.5%

                                                                                              \[\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 0

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

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

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

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

                                                                                              Reproduce

                                                                                              ?
                                                                                              herbie shell --seed 2026086 
                                                                                              (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))))