Lanczos kernel

Percentage Accurate: 97.9% → 98.0%
Time: 6.6s
Alternatives: 20
Speedup: 0.4×

Specification

?
\[\left(10^{-5} \leq x \land x \leq 1\right) \land \left(1 \leq tau \land tau \leq 5\right)\]
\[\begin{array}{l} \\ \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} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (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}

\\
\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}
\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?

\[\begin{array}{l} \\ \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} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (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}

\\
\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}
\end{array}

Alternative 1: 98.0% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\pi \cdot tau\right)\\ t_2 := \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)\\ \frac{\sin t\_1}{t\_1} \cdot \frac{\sin t\_2}{t\_2} \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* x (* PI tau)))
        (t_2 (log (pow (pow (exp (cbrt (* PI PI))) (cbrt PI)) x))))
   (* (/ (sin t_1) t_1) (/ (sin t_2) t_2))))
float code(float x, float tau) {
	float t_1 = x * (((float) M_PI) * tau);
	float t_2 = logf(powf(powf(expf(cbrtf((((float) M_PI) * ((float) M_PI)))), cbrtf(((float) M_PI))), x));
	return (sinf(t_1) / t_1) * (sinf(t_2) / t_2);
}
function code(x, tau)
	t_1 = Float32(x * Float32(Float32(pi) * tau))
	t_2 = log(((exp(cbrt(Float32(Float32(pi) * Float32(pi)))) ^ cbrt(Float32(pi))) ^ x))
	return Float32(Float32(sin(t_1) / t_1) * Float32(sin(t_2) / t_2))
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(\pi \cdot tau\right)\\
t_2 := \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)\\
\frac{\sin t\_1}{t\_1} \cdot \frac{\sin t\_2}{t\_2}
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\pi \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  6. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)}{x \cdot \pi} \]
    2. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{x \cdot \pi} \]
    3. add-log-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \color{blue}{\log \left(e^{\mathsf{PI}\left(\right)}\right)}\right)}{x \cdot \pi} \]
    4. log-pow-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    5. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    6. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \color{blue}{\left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    7. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)}{x \cdot \pi} \]
    8. lift-PI.f3282.0

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\color{blue}{\pi}}\right)}^{x}\right)}{x \cdot \pi} \]
  7. Applied rewrites82.0%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}}{x \cdot \pi} \]
  8. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{x \cdot \color{blue}{\mathsf{PI}\left(\right)}} \]
    2. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{x \cdot \mathsf{PI}\left(\right)}} \]
    3. add-log-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{x \cdot \color{blue}{\log \left(e^{\mathsf{PI}\left(\right)}\right)}} \]
    4. log-pow-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    5. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    6. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \color{blue}{\left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    7. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)} \]
    8. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \left({\left(e^{\color{blue}{\pi}}\right)}^{x}\right)} \]
  9. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}} \]
  10. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\color{blue}{\mathsf{PI}\left(\right)}}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    2. lift-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    3. add-cube-cbrtN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\color{blue}{\left(\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}\right) \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    4. exp-prodN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left({\left(e^{\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    5. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left({\left(e^{\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    6. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\color{blue}{\left(e^{\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}\right)}}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    7. cbrt-unprodN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\color{blue}{\sqrt[3]{\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    8. pow2N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\color{blue}{{\mathsf{PI}\left(\right)}^{2}}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    9. lower-cbrt.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\color{blue}{\sqrt[3]{{\mathsf{PI}\left(\right)}^{2}}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    10. pow2N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\color{blue}{\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    11. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\color{blue}{\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    12. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\color{blue}{\pi} \cdot \mathsf{PI}\left(\right)}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    13. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \color{blue}{\pi}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    14. lower-cbrt.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\color{blue}{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    15. lift-PI.f3297.4

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\color{blue}{\pi}}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
  11. Applied rewrites97.4%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
  12. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\color{blue}{\mathsf{PI}\left(\right)}}\right)}^{x}\right)} \]
    2. lift-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)} \]
    3. add-cube-cbrtN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left(e^{\color{blue}{\left(\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}\right) \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}}\right)}^{x}\right)} \]
    4. exp-prodN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\color{blue}{\left({\left(e^{\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}}^{x}\right)} \]
    5. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\color{blue}{\left({\left(e^{\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}}^{x}\right)} \]
    6. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\color{blue}{\left(e^{\sqrt[3]{\mathsf{PI}\left(\right)} \cdot \sqrt[3]{\mathsf{PI}\left(\right)}}\right)}}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    7. cbrt-unprodN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\color{blue}{\sqrt[3]{\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    8. pow2N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\sqrt[3]{\color{blue}{{\mathsf{PI}\left(\right)}^{2}}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    9. lower-cbrt.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\color{blue}{\sqrt[3]{{\mathsf{PI}\left(\right)}^{2}}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    10. pow2N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\sqrt[3]{\color{blue}{\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    11. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\sqrt[3]{\color{blue}{\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    12. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\sqrt[3]{\color{blue}{\pi} \cdot \mathsf{PI}\left(\right)}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    13. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \color{blue}{\pi}}}\right)}^{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}\right)}^{x}\right)} \]
    14. lower-cbrt.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\color{blue}{\left(\sqrt[3]{\mathsf{PI}\left(\right)}\right)}}\right)}^{x}\right)} \]
    15. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\color{blue}{\pi}}\right)}\right)}^{x}\right)} \]
  13. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}^{x}\right)}{\log \left({\color{blue}{\left({\left(e^{\sqrt[3]{\pi \cdot \pi}}\right)}^{\left(\sqrt[3]{\pi}\right)}\right)}}^{x}\right)} \]
  14. Add Preprocessing

Alternative 2: 97.9% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\pi \cdot tau\right)\\ t_2 := \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)\\ \frac{\sin t\_1}{t\_1} \cdot \frac{\sin t\_2}{t\_2} \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* x (* PI tau))) (t_2 (log (pow (+ (cosh PI) (sinh PI)) x))))
   (* (/ (sin t_1) t_1) (/ (sin t_2) t_2))))
float code(float x, float tau) {
	float t_1 = x * (((float) M_PI) * tau);
	float t_2 = logf(powf((coshf(((float) M_PI)) + sinhf(((float) M_PI))), x));
	return (sinf(t_1) / t_1) * (sinf(t_2) / t_2);
}
function code(x, tau)
	t_1 = Float32(x * Float32(Float32(pi) * tau))
	t_2 = log((Float32(cosh(Float32(pi)) + sinh(Float32(pi))) ^ x))
	return Float32(Float32(sin(t_1) / t_1) * Float32(sin(t_2) / t_2))
end
function tmp = code(x, tau)
	t_1 = x * (single(pi) * tau);
	t_2 = log(((cosh(single(pi)) + sinh(single(pi))) ^ x));
	tmp = (sin(t_1) / t_1) * (sin(t_2) / t_2);
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(\pi \cdot tau\right)\\
t_2 := \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)\\
\frac{\sin t\_1}{t\_1} \cdot \frac{\sin t\_2}{t\_2}
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\pi \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  6. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)}{x \cdot \pi} \]
    2. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{x \cdot \pi} \]
    3. add-log-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \color{blue}{\log \left(e^{\mathsf{PI}\left(\right)}\right)}\right)}{x \cdot \pi} \]
    4. log-pow-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    5. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    6. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \color{blue}{\left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    7. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)}{x \cdot \pi} \]
    8. lift-PI.f3282.0

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\color{blue}{\pi}}\right)}^{x}\right)}{x \cdot \pi} \]
  7. Applied rewrites82.0%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}}{x \cdot \pi} \]
  8. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{x \cdot \color{blue}{\mathsf{PI}\left(\right)}} \]
    2. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{x \cdot \mathsf{PI}\left(\right)}} \]
    3. add-log-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{x \cdot \color{blue}{\log \left(e^{\mathsf{PI}\left(\right)}\right)}} \]
    4. log-pow-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    5. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    6. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \color{blue}{\left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    7. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)} \]
    8. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \left({\left(e^{\color{blue}{\pi}}\right)}^{x}\right)} \]
  9. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}} \]
  10. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\color{blue}{\mathsf{PI}\left(\right)}}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    2. lift-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    3. sinh-+-cosh-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(\cosh \mathsf{PI}\left(\right) + \sinh \mathsf{PI}\left(\right)\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    4. lower-+.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(\cosh \mathsf{PI}\left(\right) + \sinh \mathsf{PI}\left(\right)\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    5. lower-cosh.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\color{blue}{\cosh \mathsf{PI}\left(\right)} + \sinh \mathsf{PI}\left(\right)\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    6. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \color{blue}{\pi} + \sinh \mathsf{PI}\left(\right)\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    7. lower-sinh.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \color{blue}{\sinh \mathsf{PI}\left(\right)}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    8. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \color{blue}{\pi}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
  11. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(\cosh \pi + \sinh \pi\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
  12. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\left(e^{\color{blue}{\mathsf{PI}\left(\right)}}\right)}^{x}\right)} \]
    2. lift-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)} \]
    3. sinh-+-cosh-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\color{blue}{\left(\cosh \mathsf{PI}\left(\right) + \sinh \mathsf{PI}\left(\right)\right)}}^{x}\right)} \]
    4. lower-+.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\color{blue}{\left(\cosh \mathsf{PI}\left(\right) + \sinh \mathsf{PI}\left(\right)\right)}}^{x}\right)} \]
    5. lower-cosh.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\left(\color{blue}{\cosh \mathsf{PI}\left(\right)} + \sinh \mathsf{PI}\left(\right)\right)}^{x}\right)} \]
    6. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\left(\cosh \color{blue}{\pi} + \sinh \mathsf{PI}\left(\right)\right)}^{x}\right)} \]
    7. lower-sinh.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\left(\cosh \pi + \color{blue}{\sinh \mathsf{PI}\left(\right)}\right)}^{x}\right)} \]
    8. lift-PI.f3298.0

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\left(\cosh \pi + \sinh \color{blue}{\pi}\right)}^{x}\right)} \]
  13. Applied rewrites98.0%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(\cosh \pi + \sinh \pi\right)}^{x}\right)}{\log \left({\color{blue}{\left(\cosh \pi + \sinh \pi\right)}}^{x}\right)} \]
  14. Add Preprocessing

Alternative 3: 97.9% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\pi \cdot tau\right)\\ t_2 := \pi \cdot \log \left(e^{x}\right)\\ \frac{\sin t\_1}{t\_1} \cdot \frac{\sin t\_2}{t\_2} \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* x (* PI tau))) (t_2 (* PI (log (exp x)))))
   (* (/ (sin t_1) t_1) (/ (sin t_2) t_2))))
float code(float x, float tau) {
	float t_1 = x * (((float) M_PI) * tau);
	float t_2 = ((float) M_PI) * logf(expf(x));
	return (sinf(t_1) / t_1) * (sinf(t_2) / t_2);
}
function code(x, tau)
	t_1 = Float32(x * Float32(Float32(pi) * tau))
	t_2 = Float32(Float32(pi) * log(exp(x)))
	return Float32(Float32(sin(t_1) / t_1) * Float32(sin(t_2) / t_2))
end
function tmp = code(x, tau)
	t_1 = x * (single(pi) * tau);
	t_2 = single(pi) * log(exp(x));
	tmp = (sin(t_1) / t_1) * (sin(t_2) / t_2);
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(\pi \cdot tau\right)\\
t_2 := \pi \cdot \log \left(e^{x}\right)\\
\frac{\sin t\_1}{t\_1} \cdot \frac{\sin t\_2}{t\_2}
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\pi \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  6. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)}{x \cdot \pi} \]
    2. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{x \cdot \pi} \]
    3. add-log-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \color{blue}{\log \left(e^{\mathsf{PI}\left(\right)}\right)}\right)}{x \cdot \pi} \]
    4. log-pow-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    5. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    6. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \color{blue}{\left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}}{x \cdot \pi} \]
    7. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)}{x \cdot \pi} \]
    8. lift-PI.f3282.0

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\color{blue}{\pi}}\right)}^{x}\right)}{x \cdot \pi} \]
  7. Applied rewrites82.0%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}}{x \cdot \pi} \]
  8. Step-by-step derivation
    1. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{x \cdot \color{blue}{\mathsf{PI}\left(\right)}} \]
    2. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{x \cdot \mathsf{PI}\left(\right)}} \]
    3. add-log-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{x \cdot \color{blue}{\log \left(e^{\mathsf{PI}\left(\right)}\right)}} \]
    4. log-pow-revN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    5. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    6. lower-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \color{blue}{\left({\left(e^{\mathsf{PI}\left(\right)}\right)}^{x}\right)}} \]
    7. lower-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)} \]
    8. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\log \left({\left(e^{\color{blue}{\pi}}\right)}^{x}\right)} \]
  9. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\pi}\right)}^{x}\right)}{\color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}} \]
  10. Step-by-step derivation
    1. lift-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    2. lift-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \color{blue}{\left({\left(e^{\pi}\right)}^{x}\right)}}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    3. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\left(e^{\color{blue}{\mathsf{PI}\left(\right)}}\right)}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    4. lift-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    5. pow-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \color{blue}{\left(e^{\mathsf{PI}\left(\right) \cdot x}\right)}}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    6. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \left(e^{\color{blue}{x \cdot \mathsf{PI}\left(\right)}}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    7. exp-prodN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \log \color{blue}{\left({\left(e^{x}\right)}^{\mathsf{PI}\left(\right)}\right)}}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    8. log-powN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \log \left(e^{x}\right)\right)}}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    9. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\left(\mathsf{PI}\left(\right) \cdot \log \left(e^{x}\right)\right)}}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    10. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\color{blue}{\pi} \cdot \log \left(e^{x}\right)\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    11. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \color{blue}{\log \left(e^{x}\right)}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
    12. lower-exp.f3278.0

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \color{blue}{\left(e^{x}\right)}\right)}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
  11. Applied rewrites78.0%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \color{blue}{\left(\pi \cdot \log \left(e^{x}\right)\right)}}{\log \left({\left(e^{\pi}\right)}^{x}\right)} \]
  12. Step-by-step derivation
    1. lift-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\color{blue}{\log \left({\left(e^{\pi}\right)}^{x}\right)}} \]
    2. lift-pow.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\log \color{blue}{\left({\left(e^{\pi}\right)}^{x}\right)}} \]
    3. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\log \left({\left(e^{\color{blue}{\mathsf{PI}\left(\right)}}\right)}^{x}\right)} \]
    4. lift-exp.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\log \left({\color{blue}{\left(e^{\mathsf{PI}\left(\right)}\right)}}^{x}\right)} \]
    5. pow-expN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\log \color{blue}{\left(e^{\mathsf{PI}\left(\right) \cdot x}\right)}} \]
    6. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\log \left(e^{\color{blue}{x \cdot \mathsf{PI}\left(\right)}}\right)} \]
    7. exp-prodN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\log \color{blue}{\left({\left(e^{x}\right)}^{\mathsf{PI}\left(\right)}\right)}} \]
    8. log-powN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\color{blue}{\mathsf{PI}\left(\right) \cdot \log \left(e^{x}\right)}} \]
    9. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\color{blue}{\mathsf{PI}\left(\right) \cdot \log \left(e^{x}\right)}} \]
    10. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\color{blue}{\pi} \cdot \log \left(e^{x}\right)} \]
    11. lower-log.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\pi \cdot \color{blue}{\log \left(e^{x}\right)}} \]
    12. lower-exp.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\pi \cdot \log \color{blue}{\left(e^{x}\right)}} \]
  13. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot \log \left(e^{x}\right)\right)}{\color{blue}{\pi \cdot \log \left(e^{x}\right)}} \]
  14. Add Preprocessing

Alternative 4: 97.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\pi \cdot tau\right)\\ \frac{\sin t\_1}{t\_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (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(x * Float32(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}

\\
\begin{array}{l}
t_1 := x \cdot \left(\pi \cdot tau\right)\\
\frac{\sin t\_1}{t\_1} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi}
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

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

Alternative 5: 97.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(tau \cdot x\right) \cdot \pi\\ \frac{\sin \left(\pi \cdot x\right) \cdot \sin t\_1}{t\_1 \cdot \left(\pi \cdot x\right)} \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* (* tau x) PI)))
   (/ (* (sin (* PI x)) (sin t_1)) (* t_1 (* PI x)))))
float code(float x, float tau) {
	float t_1 = (tau * x) * ((float) M_PI);
	return (sinf((((float) M_PI) * x)) * sinf(t_1)) / (t_1 * (((float) M_PI) * x));
}
function code(x, tau)
	t_1 = Float32(Float32(tau * x) * Float32(pi))
	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 * x) * single(pi);
	tmp = (sin((single(pi) * x)) * sin(t_1)) / (t_1 * (single(pi) * x));
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(tau \cdot x\right) \cdot \pi\\
\frac{\sin \left(\pi \cdot x\right) \cdot \sin t\_1}{t\_1 \cdot \left(\pi \cdot x\right)}
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \color{blue}{\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. lift-/.f32N/A

      \[\leadsto \color{blue}{\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} \]
    3. lift-sin.f32N/A

      \[\leadsto \frac{\color{blue}{\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} \]
    4. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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} \]
    5. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. lift-/.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \color{blue}{\frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi}} \]
    8. lift-sin.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\color{blue}{\sin \left(x \cdot \pi\right)}}{x \cdot \pi} \]
    9. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)}{x \cdot \pi} \]
    10. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{x \cdot \pi} \]
    11. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{x \cdot \color{blue}{\mathsf{PI}\left(\right)}} \]
    12. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\color{blue}{x \cdot \mathsf{PI}\left(\right)}} \]
    13. frac-timesN/A

      \[\leadsto \color{blue}{\frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right) \cdot \sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\left(\left(x \cdot \pi\right) \cdot tau\right) \cdot \left(x \cdot \mathsf{PI}\left(\right)\right)}} \]
  3. Applied rewrites97.8%

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

Alternative 6: 97.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(tau \cdot x\right) \cdot \pi\\ \sin t\_1 \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\pi \cdot x\right) \cdot t\_1} \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* (* tau x) PI)))
   (* (sin t_1) (/ (sin (* PI x)) (* (* PI x) t_1)))))
float code(float x, float tau) {
	float t_1 = (tau * x) * ((float) M_PI);
	return sinf(t_1) * (sinf((((float) M_PI) * x)) / ((((float) M_PI) * x) * t_1));
}
function code(x, tau)
	t_1 = Float32(Float32(tau * x) * Float32(pi))
	return Float32(sin(t_1) * Float32(sin(Float32(Float32(pi) * x)) / Float32(Float32(Float32(pi) * x) * t_1)))
end
function tmp = code(x, tau)
	t_1 = (tau * x) * single(pi);
	tmp = sin(t_1) * (sin((single(pi) * x)) / ((single(pi) * x) * t_1));
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(tau \cdot x\right) \cdot \pi\\
\sin t\_1 \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\pi \cdot x\right) \cdot t\_1}
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\pi \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  6. Applied rewrites97.2%

    \[\leadsto \color{blue}{\frac{\sin \left(\left(\pi \cdot x\right) \cdot tau\right) \cdot \sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x}} \]
  7. Step-by-step derivation
    1. lift-/.f32N/A

      \[\leadsto \color{blue}{\frac{\sin \left(\left(\pi \cdot x\right) \cdot tau\right) \cdot \sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x}} \]
    2. lift-*.f32N/A

      \[\leadsto \frac{\color{blue}{\sin \left(\left(\pi \cdot x\right) \cdot tau\right) \cdot \sin \left(\pi \cdot x\right)}}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x} \]
    3. associate-/l*N/A

      \[\leadsto \color{blue}{\sin \left(\left(\pi \cdot x\right) \cdot tau\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x}} \]
    4. lift-sin.f32N/A

      \[\leadsto \color{blue}{\sin \left(\left(\pi \cdot x\right) \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x} \]
    5. lift-*.f32N/A

      \[\leadsto \sin \color{blue}{\left(\left(\pi \cdot x\right) \cdot tau\right)} \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x} \]
    6. lift-PI.f32N/A

      \[\leadsto \sin \left(\left(\color{blue}{\mathsf{PI}\left(\right)} \cdot x\right) \cdot tau\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x} \]
    7. lift-*.f32N/A

      \[\leadsto \sin \left(\color{blue}{\left(\mathsf{PI}\left(\right) \cdot x\right)} \cdot tau\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x} \]
    8. *-commutativeN/A

      \[\leadsto \sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x} \]
    9. associate-*l*N/A

      \[\leadsto \sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)} \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x} \]
    10. lower-*.f32N/A

      \[\leadsto \color{blue}{\sin \left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot x\right) \cdot \left(\pi \cdot tau\right)\right) \cdot x}} \]
  8. Applied rewrites97.7%

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

Alternative 7: 97.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sin \left(\left(tau \cdot x\right) \cdot \pi\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot tau} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (* (sin (* (* tau x) PI)) (/ (sin (* PI x)) (* (* (* PI PI) (* x x)) tau))))
float code(float x, float tau) {
	return sinf(((tau * x) * ((float) M_PI))) * (sinf((((float) M_PI) * x)) / (((((float) M_PI) * ((float) M_PI)) * (x * x)) * tau));
}
function code(x, tau)
	return Float32(sin(Float32(Float32(tau * x) * Float32(pi))) * Float32(sin(Float32(Float32(pi) * x)) / Float32(Float32(Float32(Float32(pi) * Float32(pi)) * Float32(x * x)) * tau)))
end
function tmp = code(x, tau)
	tmp = sin(((tau * x) * single(pi))) * (sin((single(pi) * x)) / (((single(pi) * single(pi)) * (x * x)) * tau));
end
\begin{array}{l}

\\
\sin \left(\left(tau \cdot x\right) \cdot \pi\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot tau}
\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 inf

    \[\leadsto \color{blue}{\frac{\sin \left(tau \cdot \left(x \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)}} \]
  3. Step-by-step derivation
    1. associate-/l*N/A

      \[\leadsto \sin \left(tau \cdot \left(x \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \color{blue}{\frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)}} \]
    2. *-commutativeN/A

      \[\leadsto \sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right) \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
    3. lower-*.f32N/A

      \[\leadsto \sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right) \cdot \color{blue}{\frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)}} \]
  4. Applied rewrites97.0%

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

Alternative 8: 96.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sin \left(\left(\pi \cdot x\right) \cdot tau\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot tau} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (* (sin (* (* PI x) tau)) (/ (sin (* PI x)) (* (* (* PI PI) (* x x)) tau))))
float code(float x, float tau) {
	return sinf(((((float) M_PI) * x) * tau)) * (sinf((((float) M_PI) * x)) / (((((float) M_PI) * ((float) M_PI)) * (x * x)) * tau));
}
function code(x, tau)
	return Float32(sin(Float32(Float32(Float32(pi) * x) * tau)) * Float32(sin(Float32(Float32(pi) * x)) / Float32(Float32(Float32(Float32(pi) * Float32(pi)) * Float32(x * x)) * tau)))
end
function tmp = code(x, tau)
	tmp = sin(((single(pi) * x) * tau)) * (sin((single(pi) * x)) / (((single(pi) * single(pi)) * (x * x)) * tau));
end
\begin{array}{l}

\\
\sin \left(\left(\pi \cdot x\right) \cdot tau\right) \cdot \frac{\sin \left(\pi \cdot x\right)}{\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot tau}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\pi \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  6. Taylor expanded in x around inf

    \[\leadsto \color{blue}{\frac{\sin \left(tau \cdot \left(x \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)}} \]
  7. Step-by-step derivation
    1. associate-/l*N/A

      \[\leadsto \sin \left(tau \cdot \left(x \cdot \mathsf{PI}\left(\right)\right)\right) \cdot \color{blue}{\frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)}} \]
    2. associate-*l*N/A

      \[\leadsto \sin \left(\left(tau \cdot x\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
    3. lift-*.f32N/A

      \[\leadsto \sin \left(\left(tau \cdot x\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\sin \left(\color{blue}{x} \cdot \mathsf{PI}\left(\right)\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
    4. lift-*.f32N/A

      \[\leadsto \sin \left(\left(tau \cdot x\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
    5. lift-PI.f32N/A

      \[\leadsto \sin \left(\left(tau \cdot x\right) \cdot \pi\right) \cdot \frac{\sin \left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
    6. lift-sin.f32N/A

      \[\leadsto \sin \left(\left(tau \cdot x\right) \cdot \pi\right) \cdot \frac{\color{blue}{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
    7. lower-*.f32N/A

      \[\leadsto \sin \left(\left(tau \cdot x\right) \cdot \pi\right) \cdot \color{blue}{\frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{tau \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)}} \]
  8. Applied rewrites96.8%

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

Alternative 9: 91.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\pi \cdot tau\right)\\ \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333 \cdot \left(x \cdot x\right), \left(\pi \cdot \pi\right) \cdot \left(\pi \cdot \pi\right), \left(\pi \cdot \pi\right) \cdot -0.16666666666666666\right), x \cdot x, 1\right) \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* x (* PI tau))))
   (*
    (/ (sin t_1) t_1)
    (fma
     (fma
      (* 0.008333333333333333 (* x x))
      (* (* PI PI) (* PI PI))
      (* (* PI PI) -0.16666666666666666))
     (* 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((0.008333333333333333f * (x * x)), ((((float) M_PI) * ((float) M_PI)) * (((float) M_PI) * ((float) M_PI))), ((((float) M_PI) * ((float) M_PI)) * -0.16666666666666666f)), (x * x), 1.0f);
}
function code(x, tau)
	t_1 = Float32(x * Float32(Float32(pi) * tau))
	return Float32(Float32(sin(t_1) / t_1) * fma(fma(Float32(Float32(0.008333333333333333) * Float32(x * x)), Float32(Float32(Float32(pi) * Float32(pi)) * Float32(Float32(pi) * Float32(pi))), Float32(Float32(Float32(pi) * Float32(pi)) * Float32(-0.16666666666666666))), Float32(x * x), Float32(1.0)))
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(\pi \cdot tau\right)\\
\frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.008333333333333333 \cdot \left(x \cdot x\right), \left(\pi \cdot \pi\right) \cdot \left(\pi \cdot \pi\right), \left(\pi \cdot \pi\right) \cdot -0.16666666666666666\right), x \cdot x, 1\right)
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

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

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \color{blue}{\left(1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + \frac{1}{120} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)} \]
  7. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \left({x}^{2} \cdot \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + \frac{1}{120} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right) + \color{blue}{1}\right) \]
    2. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \left(\left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + \frac{1}{120} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right) \cdot {x}^{2} + 1\right) \]
    3. lower-fma.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + \frac{1}{120} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right), \color{blue}{{x}^{2}}, 1\right) \]
  8. Applied rewrites91.5%

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

Alternative 10: 90.8% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \frac{\sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{x} \cdot \mathsf{fma}\left(\frac{\mathsf{fma}\left(0.008333333333333333, \left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, -0.16666666666666666 \cdot \pi\right)}{tau}, x \cdot x, \frac{1}{\pi \cdot tau}\right) \end{array} \]
(FPCore (x tau)
 :precision binary32
 (*
  (/ (sin (* (* tau x) PI)) x)
  (fma
   (/
    (fma
     0.008333333333333333
     (* (* (* PI PI) (* x x)) PI)
     (* -0.16666666666666666 PI))
    tau)
   (* x x)
   (/ 1.0 (* PI tau)))))
float code(float x, float tau) {
	return (sinf(((tau * x) * ((float) M_PI))) / x) * fmaf((fmaf(0.008333333333333333f, (((((float) M_PI) * ((float) M_PI)) * (x * x)) * ((float) M_PI)), (-0.16666666666666666f * ((float) M_PI))) / tau), (x * x), (1.0f / (((float) M_PI) * tau)));
}
function code(x, tau)
	return Float32(Float32(sin(Float32(Float32(tau * x) * Float32(pi))) / x) * fma(Float32(fma(Float32(0.008333333333333333), Float32(Float32(Float32(Float32(pi) * Float32(pi)) * Float32(x * x)) * Float32(pi)), Float32(Float32(-0.16666666666666666) * Float32(pi))) / tau), Float32(x * x), Float32(Float32(1.0) / Float32(Float32(pi) * tau))))
end
\begin{array}{l}

\\
\frac{\sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{x} \cdot \mathsf{fma}\left(\frac{\mathsf{fma}\left(0.008333333333333333, \left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, -0.16666666666666666 \cdot \pi\right)}{tau}, x \cdot x, \frac{1}{\pi \cdot tau}\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. lift-*.f32N/A

      \[\leadsto \color{blue}{\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. lift-/.f32N/A

      \[\leadsto \color{blue}{\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} \]
    3. lift-sin.f32N/A

      \[\leadsto \frac{\color{blue}{\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} \]
    4. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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} \]
    5. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. lift-/.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \color{blue}{\frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi}} \]
    8. lift-sin.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\color{blue}{\sin \left(x \cdot \pi\right)}}{x \cdot \pi} \]
    9. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)}{x \cdot \pi} \]
    10. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)}}{x \cdot \pi} \]
    11. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{x \cdot \color{blue}{\mathsf{PI}\left(\right)}} \]
    12. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\color{blue}{x \cdot \mathsf{PI}\left(\right)}} \]
    13. associate-*l/N/A

      \[\leadsto \color{blue}{\frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right) \cdot \frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{x \cdot \mathsf{PI}\left(\right)}}{\left(x \cdot \pi\right) \cdot tau}} \]
  3. Applied rewrites97.3%

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

    \[\leadsto \frac{\sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{x} \cdot \color{blue}{\left({x}^{2} \cdot \left(\frac{-1}{6} \cdot \frac{\mathsf{PI}\left(\right)}{tau} + \frac{1}{120} \cdot \frac{{x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}}{tau}\right) + \frac{1}{tau \cdot \mathsf{PI}\left(\right)}\right)} \]
  5. Step-by-step derivation
    1. *-commutativeN/A

      \[\leadsto \frac{\sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{x} \cdot \left(\left(\frac{-1}{6} \cdot \frac{\mathsf{PI}\left(\right)}{tau} + \frac{1}{120} \cdot \frac{{x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}}{tau}\right) \cdot {x}^{2} + \frac{\color{blue}{1}}{tau \cdot \mathsf{PI}\left(\right)}\right) \]
    2. lower-fma.f32N/A

      \[\leadsto \frac{\sin \left(\left(tau \cdot x\right) \cdot \pi\right)}{x} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \frac{\mathsf{PI}\left(\right)}{tau} + \frac{1}{120} \cdot \frac{{x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}}{tau}, \color{blue}{{x}^{2}}, \frac{1}{tau \cdot \mathsf{PI}\left(\right)}\right) \]
  6. Applied rewrites90.8%

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

Alternative 11: 85.4% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \pi\right) \cdot tau\\ \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), \pi \cdot \pi, 1\right) \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* (* x PI) tau)))
   (* (/ (sin t_1) t_1) (fma (* -0.16666666666666666 (* x x)) (* PI PI) 1.0))))
float code(float x, float tau) {
	float t_1 = (x * ((float) M_PI)) * tau;
	return (sinf(t_1) / t_1) * fmaf((-0.16666666666666666f * (x * x)), (((float) M_PI) * ((float) M_PI)), 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(-0.16666666666666666) * Float32(x * x)), Float32(Float32(pi) * Float32(pi)), Float32(1.0)))
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(x \cdot \pi\right) \cdot tau\\
\frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), \pi \cdot \pi, 1\right)
\end{array}
\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 \color{blue}{\left(1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(\frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \color{blue}{1}\right) \]
    2. associate-*r*N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \left(\left(\frac{-1}{6} \cdot {x}^{2}\right) \cdot {\mathsf{PI}\left(\right)}^{2} + 1\right) \]
    3. lower-fma.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot {x}^{2}, \color{blue}{{\mathsf{PI}\left(\right)}^{2}}, 1\right) \]
    4. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot {x}^{2}, {\color{blue}{\mathsf{PI}\left(\right)}}^{2}, 1\right) \]
    5. unpow2N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
    7. unpow2N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), \mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}, 1\right) \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), \mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}, 1\right) \]
    9. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), \pi \cdot \mathsf{PI}\left(\right), 1\right) \]
    10. lift-PI.f3285.4

      \[\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 \cdot \left(x \cdot x\right), \pi \cdot \pi, 1\right) \]
  4. Applied rewrites85.4%

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

Alternative 12: 85.4% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(\pi \cdot tau\right)\\ \frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), \pi \cdot \pi, 1\right) \end{array} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (let* ((t_1 (* x (* PI tau))))
   (* (/ (sin t_1) t_1) (fma (* -0.16666666666666666 (* x x)) (* PI PI) 1.0))))
float code(float x, float tau) {
	float t_1 = x * (((float) M_PI) * tau);
	return (sinf(t_1) / t_1) * fmaf((-0.16666666666666666f * (x * x)), (((float) M_PI) * ((float) M_PI)), 1.0f);
}
function code(x, tau)
	t_1 = Float32(x * Float32(Float32(pi) * tau))
	return Float32(Float32(sin(t_1) / t_1) * fma(Float32(Float32(-0.16666666666666666) * Float32(x * x)), Float32(Float32(pi) * Float32(pi)), Float32(1.0)))
end
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(\pi \cdot tau\right)\\
\frac{\sin t\_1}{t\_1} \cdot \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), \pi \cdot \pi, 1\right)
\end{array}
\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. lift-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\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. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.3

      \[\leadsto \frac{\sin \left(x \cdot \left(\color{blue}{\pi} \cdot tau\right)\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Applied rewrites97.3%

    \[\leadsto \frac{\sin \color{blue}{\left(x \cdot \left(\pi \cdot tau\right)\right)}}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \pi\right) \cdot tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\left(x \cdot \color{blue}{\mathsf{PI}\left(\right)}\right) \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{\left(x \cdot \mathsf{PI}\left(\right)\right)} \cdot tau} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. associate-*l*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{\color{blue}{x \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \color{blue}{\left(\mathsf{PI}\left(\right) \cdot tau\right)}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. lift-PI.f3297.9

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\color{blue}{\pi} \cdot tau\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. Applied rewrites97.9%

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

    \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \color{blue}{\left(1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)} \]
  7. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \left(\frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \color{blue}{1}\right) \]
    2. associate-*r*N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \left(\left(\frac{-1}{6} \cdot {x}^{2}\right) \cdot {\mathsf{PI}\left(\right)}^{2} + 1\right) \]
    3. lower-fma.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot {x}^{2}, \color{blue}{{\mathsf{PI}\left(\right)}^{2}}, 1\right) \]
    4. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot {x}^{2}, {\color{blue}{\mathsf{PI}\left(\right)}}^{2}, 1\right) \]
    5. pow2N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
    6. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), {\mathsf{PI}\left(\right)}^{2}, 1\right) \]
    7. pow2N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), \mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}, 1\right) \]
    8. lift-*.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), \mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}, 1\right) \]
    9. lift-PI.f32N/A

      \[\leadsto \frac{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}{x \cdot \left(\pi \cdot tau\right)} \cdot \mathsf{fma}\left(\frac{-1}{6} \cdot \left(x \cdot x\right), \pi \cdot \mathsf{PI}\left(\right), 1\right) \]
    10. lift-PI.f3285.4

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

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

Alternative 13: 79.8% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(-0.16666666666666666 \cdot \left(tau \cdot tau\right), \left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right), 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (*
  (fma (* -0.16666666666666666 (* tau tau)) (* (* PI PI) (* x x)) 1.0)
  (/ (sin (* x PI)) (* x PI))))
float code(float x, float tau) {
	return fmaf((-0.16666666666666666f * (tau * tau)), ((((float) M_PI) * ((float) M_PI)) * (x * x)), 1.0f) * (sinf((x * ((float) M_PI))) / (x * ((float) M_PI)));
}
function code(x, tau)
	return Float32(fma(Float32(Float32(-0.16666666666666666) * Float32(tau * tau)), Float32(Float32(Float32(pi) * Float32(pi)) * Float32(x * x)), Float32(1.0)) * Float32(sin(Float32(x * Float32(pi))) / Float32(x * Float32(pi))))
end
\begin{array}{l}

\\
\mathsf{fma}\left(-0.16666666666666666 \cdot \left(tau \cdot tau\right), \left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right), 1\right) \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. Taylor expanded in x around 0

    \[\leadsto \color{blue}{\left(1 + \frac{-1}{6} \cdot \left({tau}^{2} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right) + \color{blue}{1}\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    2. associate-*r*N/A

      \[\leadsto \left(\left(\frac{-1}{6} \cdot {tau}^{2}\right) \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    3. lower-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {tau}^{2}, \color{blue}{{x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    4. lower-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {tau}^{2}, \color{blue}{{x}^{2}} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    5. unpow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), {x}^{\color{blue}{2}} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), {x}^{\color{blue}{2}} \cdot {\mathsf{PI}\left(\right)}^{2}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    7. *-commutativeN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), {\mathsf{PI}\left(\right)}^{2} \cdot \color{blue}{{x}^{2}}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), {\mathsf{PI}\left(\right)}^{2} \cdot \color{blue}{{x}^{2}}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    9. unpow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot {\color{blue}{x}}^{2}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    10. lower-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot {\color{blue}{x}}^{2}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    11. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), \left(\pi \cdot \mathsf{PI}\left(\right)\right) \cdot {x}^{2}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    12. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), \left(\pi \cdot \pi\right) \cdot {x}^{2}, 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    13. unpow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(tau \cdot tau\right), \left(\pi \cdot \pi\right) \cdot \left(x \cdot \color{blue}{x}\right), 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
    14. lower-*.f3279.8

      \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(tau \cdot tau\right), \left(\pi \cdot \pi\right) \cdot \left(x \cdot \color{blue}{x}\right), 1\right) \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  4. Applied rewrites79.8%

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

Alternative 14: 79.3% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \frac{\mathsf{fma}\left(-0.16666666666666666 \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \mathsf{fma}\left(\left(\left(\left(\pi \cdot \pi\right) \cdot x\right) \cdot x\right) \cdot \pi, -0.16666666666666666, \pi\right)}{\left(\pi \cdot tau\right) \cdot \pi} \end{array} \]
(FPCore (x tau)
 :precision binary32
 (/
  (*
   (fma
    (* -0.16666666666666666 (* (* tau tau) tau))
    (* (* x x) (* (* PI PI) PI))
    (* PI tau))
   (fma (* (* (* (* PI PI) x) x) PI) -0.16666666666666666 PI))
  (* (* PI tau) PI)))
float code(float x, float tau) {
	return (fmaf((-0.16666666666666666f * ((tau * tau) * tau)), ((x * x) * ((((float) M_PI) * ((float) M_PI)) * ((float) M_PI))), (((float) M_PI) * tau)) * fmaf(((((((float) M_PI) * ((float) M_PI)) * x) * x) * ((float) M_PI)), -0.16666666666666666f, ((float) M_PI))) / ((((float) M_PI) * tau) * ((float) M_PI));
}
function code(x, tau)
	return Float32(Float32(fma(Float32(Float32(-0.16666666666666666) * Float32(Float32(tau * tau) * tau)), Float32(Float32(x * x) * Float32(Float32(Float32(pi) * Float32(pi)) * Float32(pi))), Float32(Float32(pi) * tau)) * fma(Float32(Float32(Float32(Float32(Float32(pi) * Float32(pi)) * x) * x) * Float32(pi)), Float32(-0.16666666666666666), Float32(pi))) / Float32(Float32(Float32(pi) * tau) * Float32(pi)))
end
\begin{array}{l}

\\
\frac{\mathsf{fma}\left(-0.16666666666666666 \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \mathsf{fma}\left(\left(\left(\left(\pi \cdot \pi\right) \cdot x\right) \cdot x\right) \cdot \pi, -0.16666666666666666, \pi\right)}{\left(\pi \cdot tau\right) \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. 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 \frac{\color{blue}{x \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right)\right)}}{x \cdot \pi} \]
  3. Step-by-step derivation
    1. *-commutativeN/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right)\right) \cdot \color{blue}{x}}{x \cdot \pi} \]
    2. lower-*.f32N/A

      \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right)\right) \cdot \color{blue}{x}}{x \cdot \pi} \]
  4. Applied rewrites85.1%

    \[\leadsto \frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{\left(x \cdot \pi\right) \cdot tau} \cdot \frac{\color{blue}{\mathsf{fma}\left(\left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), -0.16666666666666666, \pi\right) \cdot x}}{x \cdot \pi} \]
  5. Applied rewrites84.6%

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

    \[\leadsto \frac{\color{blue}{\left(\frac{-1}{6} \cdot \left({tau}^{3} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right)\right) + tau \cdot \mathsf{PI}\left(\right)\right)} \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
  7. Step-by-step derivation
    1. associate-*r*N/A

      \[\leadsto \frac{\left(\left(\frac{-1}{6} \cdot {tau}^{3}\right) \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right) + \color{blue}{tau} \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    2. lower-fma.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot {tau}^{3}, \color{blue}{{x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    3. lower-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot {tau}^{3}, \color{blue}{{x}^{2}} \cdot {\mathsf{PI}\left(\right)}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    4. unpow3N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), {x}^{\color{blue}{2}} \cdot {\mathsf{PI}\left(\right)}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    5. unpow2N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot tau\right), {x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    6. lower-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot tau\right), {x}^{\color{blue}{2}} \cdot {\mathsf{PI}\left(\right)}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    7. unpow2N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), {x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    8. lower-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), {x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    9. lower-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), {x}^{2} \cdot \color{blue}{{\mathsf{PI}\left(\right)}^{3}}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    10. pow2N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot {\color{blue}{\mathsf{PI}\left(\right)}}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    11. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot {\color{blue}{\mathsf{PI}\left(\right)}}^{3}, tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    12. pow3N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right), tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    13. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right), tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    14. lift-PI.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right), tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    15. lift-PI.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \mathsf{PI}\left(\right)\right), tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    16. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right), tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    17. lift-PI.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), tau \cdot \mathsf{PI}\left(\right)\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    18. *-commutativeN/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \mathsf{PI}\left(\right) \cdot tau\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
    19. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \mathsf{PI}\left(\right) \cdot tau\right) \cdot \frac{\mathsf{fma}\left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi, \frac{-1}{6}, \pi\right) \cdot x}{x}}{\left(\pi \cdot tau\right) \cdot \pi} \]
  8. Applied rewrites79.1%

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

    \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \color{blue}{\left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right)\right)}}{\left(\pi \cdot tau\right) \cdot \pi} \]
  10. Step-by-step derivation
    1. unpow3N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot \left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    2. pow2N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot \left({\mathsf{PI}\left(\right)}^{2} \cdot \mathsf{PI}\left(\right)\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    3. associate-*r*N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    4. *-commutativeN/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left({\mathsf{PI}\left(\right)}^{2} \cdot {x}^{2}\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    5. pow2N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot {x}^{2}\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    6. pow2N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    7. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    8. lift-PI.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\pi \cdot \mathsf{PI}\left(\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    9. lift-PI.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    10. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    11. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    12. lift-*.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
    13. lift-PI.f32N/A

      \[\leadsto \frac{\mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left(\left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) \cdot \pi\right)\right)}{\left(\pi \cdot tau\right) \cdot \pi} \]
  11. Applied rewrites79.3%

    \[\leadsto \frac{\mathsf{fma}\left(-0.16666666666666666 \cdot \left(\left(tau \cdot tau\right) \cdot tau\right), \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \pi\right), \pi \cdot tau\right) \cdot \color{blue}{\mathsf{fma}\left(\left(\left(\left(\pi \cdot \pi\right) \cdot x\right) \cdot x\right) \cdot \pi, -0.16666666666666666, \pi\right)}}{\left(\pi \cdot tau\right) \cdot \pi} \]
  12. Add Preprocessing

Alternative 15: 79.1% accurate, 3.2× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(\left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right)\right) \cdot -0.16666666666666666 - 0.16666666666666666 \cdot \left(\pi \cdot \pi\right), x \cdot x, 1\right) \end{array} \]
(FPCore (x tau)
 :precision binary32
 (fma
  (-
   (* (* (* PI tau) (* PI tau)) -0.16666666666666666)
   (* 0.16666666666666666 (* PI PI)))
  (* x x)
  1.0))
float code(float x, float tau) {
	return fmaf(((((((float) M_PI) * tau) * (((float) M_PI) * tau)) * -0.16666666666666666f) - (0.16666666666666666f * (((float) M_PI) * ((float) M_PI)))), (x * x), 1.0f);
}
function code(x, tau)
	return fma(Float32(Float32(Float32(Float32(Float32(pi) * tau) * Float32(Float32(pi) * tau)) * Float32(-0.16666666666666666)) - Float32(Float32(0.16666666666666666) * Float32(Float32(pi) * Float32(pi)))), Float32(x * x), Float32(1.0))
end
\begin{array}{l}

\\
\mathsf{fma}\left(\left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right)\right) \cdot -0.16666666666666666 - 0.16666666666666666 \cdot \left(\pi \cdot \pi\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 \color{blue}{1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \color{blue}{1} \]
    2. *-commutativeN/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot {x}^{2} + 1 \]
    3. lower-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{{x}^{2}}, 1\right) \]
  4. Applied rewrites79.1%

    \[\leadsto \color{blue}{\mathsf{fma}\left(-0.16666666666666666 \cdot \mathsf{fma}\left(\pi \cdot tau, \pi \cdot tau, \pi \cdot \pi\right), x \cdot x, 1\right)} \]
  5. Step-by-step derivation
    1. lift-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \mathsf{fma}\left(\pi \cdot tau, \pi \cdot tau, \pi \cdot \pi\right), \color{blue}{x} \cdot x, 1\right) \]
    2. lift-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right) + \pi \cdot \pi\right), x \cdot x, 1\right) \]
    3. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right) + \mathsf{PI}\left(\right) \cdot \pi\right), x \cdot x, 1\right) \]
    4. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right) + \mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    5. lift-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right) + \mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    6. pow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right) + {\mathsf{PI}\left(\right)}^{2}\right), x \cdot x, 1\right) \]
    7. distribute-lft-inN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right)\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{x} \cdot x, 1\right) \]
    8. pow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {\left(\pi \cdot tau\right)}^{2} + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, x \cdot x, 1\right) \]
    9. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {\left(\mathsf{PI}\left(\right) \cdot tau\right)}^{2} + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, x \cdot x, 1\right) \]
    10. lift-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {\left(\mathsf{PI}\left(\right) \cdot tau\right)}^{2} + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, x \cdot x, 1\right) \]
    11. unpow-prod-downN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({\mathsf{PI}\left(\right)}^{2} \cdot {tau}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, x \cdot x, 1\right) \]
    12. *-commutativeN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, x \cdot x, 1\right) \]
    13. fp-cancel-sign-sub-invN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) - \left(\mathsf{neg}\left(\frac{-1}{6}\right)\right) \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{x} \cdot x, 1\right) \]
    14. lower--.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) - \left(\mathsf{neg}\left(\frac{-1}{6}\right)\right) \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{x} \cdot x, 1\right) \]
  6. Applied rewrites79.1%

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

Alternative 16: 79.1% accurate, 4.1× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), \mathsf{fma}\left(tau, tau, 1\right) \cdot \left(\pi \cdot \pi\right), 1\right) \end{array} \]
(FPCore (x tau)
 :precision binary32
 (fma (* -0.16666666666666666 (* x x)) (* (fma tau tau 1.0) (* PI PI)) 1.0))
float code(float x, float tau) {
	return fmaf((-0.16666666666666666f * (x * x)), (fmaf(tau, tau, 1.0f) * (((float) M_PI) * ((float) M_PI))), 1.0f);
}
function code(x, tau)
	return fma(Float32(Float32(-0.16666666666666666) * Float32(x * x)), Float32(fma(tau, tau, Float32(1.0)) * Float32(Float32(pi) * Float32(pi))), Float32(1.0))
end
\begin{array}{l}

\\
\mathsf{fma}\left(-0.16666666666666666 \cdot \left(x \cdot x\right), \mathsf{fma}\left(tau, tau, 1\right) \cdot \left(\pi \cdot \pi\right), 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 \color{blue}{1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \color{blue}{1} \]
    2. *-commutativeN/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot {x}^{2} + 1 \]
    3. lower-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{{x}^{2}}, 1\right) \]
  4. Applied rewrites79.1%

    \[\leadsto \color{blue}{\mathsf{fma}\left(-0.16666666666666666 \cdot \mathsf{fma}\left(\pi \cdot tau, \pi \cdot tau, \pi \cdot \pi\right), x \cdot x, 1\right)} \]
  5. Applied rewrites79.1%

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

Alternative 17: 70.0% accurate, 4.5× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(-0.16666666666666666 \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right)\right), x \cdot x, 1\right) \end{array} \]
(FPCore (x tau)
 :precision binary32
 (fma (* -0.16666666666666666 (* (* PI tau) (* PI tau))) (* x x) 1.0))
float code(float x, float tau) {
	return fmaf((-0.16666666666666666f * ((((float) M_PI) * tau) * (((float) M_PI) * tau))), (x * x), 1.0f);
}
function code(x, tau)
	return fma(Float32(Float32(-0.16666666666666666) * Float32(Float32(Float32(pi) * tau) * Float32(Float32(pi) * tau))), Float32(x * x), Float32(1.0))
end
\begin{array}{l}

\\
\mathsf{fma}\left(-0.16666666666666666 \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\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 \color{blue}{1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \color{blue}{1} \]
    2. *-commutativeN/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot {x}^{2} + 1 \]
    3. lower-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{{x}^{2}}, 1\right) \]
  4. Applied rewrites79.1%

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

    \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right), x \cdot x, 1\right) \]
  6. Step-by-step derivation
    1. pow-prod-downN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {\left(tau \cdot \mathsf{PI}\left(\right)\right)}^{2}, x \cdot x, 1\right) \]
    2. pow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot \mathsf{PI}\left(\right)\right) \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right), x \cdot x, 1\right) \]
    3. lower-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(tau \cdot \mathsf{PI}\left(\right)\right) \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right), x \cdot x, 1\right) \]
    4. *-commutativeN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\mathsf{PI}\left(\right) \cdot tau\right) \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right), x \cdot x, 1\right) \]
    5. lift-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\mathsf{PI}\left(\right) \cdot tau\right) \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right), x \cdot x, 1\right) \]
    6. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(tau \cdot \mathsf{PI}\left(\right)\right)\right), x \cdot x, 1\right) \]
    7. *-commutativeN/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right), x \cdot x, 1\right) \]
    8. lift-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right), x \cdot x, 1\right) \]
    9. lift-PI.f3270.0

      \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(\left(\pi \cdot tau\right) \cdot \left(\pi \cdot tau\right)\right), x \cdot x, 1\right) \]
  7. Applied rewrites70.0%

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

Alternative 18: 64.7% accurate, 6.1× speedup?

\[\begin{array}{l} \\ -0.16666666666666666 \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) + 1 \end{array} \]
(FPCore (x tau)
 :precision binary32
 (+ (* -0.16666666666666666 (* (* PI PI) (* x x))) 1.0))
float code(float x, float tau) {
	return (-0.16666666666666666f * ((((float) M_PI) * ((float) M_PI)) * (x * x))) + 1.0f;
}
function code(x, tau)
	return Float32(Float32(Float32(-0.16666666666666666) * Float32(Float32(Float32(pi) * Float32(pi)) * Float32(x * x))) + Float32(1.0))
end
function tmp = code(x, tau)
	tmp = (single(-0.16666666666666666) * ((single(pi) * single(pi)) * (x * x))) + single(1.0);
end
\begin{array}{l}

\\
-0.16666666666666666 \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) + 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 \color{blue}{1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \color{blue}{1} \]
    2. *-commutativeN/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot {x}^{2} + 1 \]
    3. lower-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{{x}^{2}}, 1\right) \]
  4. Applied rewrites79.1%

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

    \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, x \cdot x, 1\right) \]
  6. Step-by-step derivation
    1. pow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    2. lift-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    3. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\pi \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    4. lift-PI.f3264.7

      \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(\pi \cdot \pi\right), x \cdot x, 1\right) \]
  7. Applied rewrites64.7%

    \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(\pi \cdot \pi\right), x \cdot x, 1\right) \]
  8. Step-by-step derivation
    1. lift-fma.f32N/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left(\pi \cdot \pi\right)\right) \cdot \left(x \cdot x\right) + \color{blue}{1} \]
    2. lower-+.f32N/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left(\pi \cdot \pi\right)\right) \cdot \left(x \cdot x\right) + \color{blue}{1} \]
  9. Applied rewrites64.7%

    \[\leadsto -0.16666666666666666 \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right)\right) + \color{blue}{1} \]
  10. Add Preprocessing

Alternative 19: 64.7% accurate, 6.3× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(-0.16666666666666666, \left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right), 1\right) \end{array} \]
(FPCore (x tau)
 :precision binary32
 (fma -0.16666666666666666 (* (* PI PI) (* x x)) 1.0))
float code(float x, float tau) {
	return fmaf(-0.16666666666666666f, ((((float) M_PI) * ((float) M_PI)) * (x * x)), 1.0f);
}
function code(x, tau)
	return fma(Float32(-0.16666666666666666), Float32(Float32(Float32(pi) * Float32(pi)) * Float32(x * x)), Float32(1.0))
end
\begin{array}{l}

\\
\mathsf{fma}\left(-0.16666666666666666, \left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right), 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 \color{blue}{1 + {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
  3. Step-by-step derivation
    1. +-commutativeN/A

      \[\leadsto {x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \color{blue}{1} \]
    2. *-commutativeN/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot {x}^{2} + 1 \]
    3. lower-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, \color{blue}{{x}^{2}}, 1\right) \]
  4. Applied rewrites79.1%

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

    \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}, x \cdot x, 1\right) \]
  6. Step-by-step derivation
    1. pow2N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    2. lift-*.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    3. lift-PI.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6} \cdot \left(\pi \cdot \mathsf{PI}\left(\right)\right), x \cdot x, 1\right) \]
    4. lift-PI.f3264.7

      \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(\pi \cdot \pi\right), x \cdot x, 1\right) \]
  7. Applied rewrites64.7%

    \[\leadsto \mathsf{fma}\left(-0.16666666666666666 \cdot \left(\pi \cdot \pi\right), x \cdot x, 1\right) \]
  8. Step-by-step derivation
    1. lift-fma.f32N/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left(\pi \cdot \pi\right)\right) \cdot \left(x \cdot x\right) + \color{blue}{1} \]
    2. lift-*.f32N/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left(\pi \cdot \pi\right)\right) \cdot \left(x \cdot x\right) + 1 \]
    3. lift-*.f32N/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left(\pi \cdot \pi\right)\right) \cdot \left(x \cdot x\right) + 1 \]
    4. pow2N/A

      \[\leadsto \left(\frac{-1}{6} \cdot \left(\pi \cdot \pi\right)\right) \cdot {x}^{2} + 1 \]
    5. associate-*l*N/A

      \[\leadsto \frac{-1}{6} \cdot \left(\left(\pi \cdot \pi\right) \cdot {x}^{2}\right) + 1 \]
    6. lower-fma.f32N/A

      \[\leadsto \mathsf{fma}\left(\frac{-1}{6}, \color{blue}{\left(\pi \cdot \pi\right) \cdot {x}^{2}}, 1\right) \]
  9. Applied rewrites64.7%

    \[\leadsto \color{blue}{\mathsf{fma}\left(-0.16666666666666666, \left(\pi \cdot \pi\right) \cdot \left(x \cdot x\right), 1\right)} \]
  10. Add Preprocessing

Alternative 20: 63.8% accurate, 94.3× speedup?

\[\begin{array}{l} \\ 1 \end{array} \]
(FPCore (x tau) :precision binary32 1.0)
float code(float x, float tau) {
	return 1.0f;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(4) function code(x, tau)
use fmin_fmax_functions
    real(4), intent (in) :: x
    real(4), intent (in) :: tau
    code = 1.0e0
end function
function code(x, tau)
	return Float32(1.0)
end
function tmp = code(x, tau)
	tmp = single(1.0);
end
\begin{array}{l}

\\
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 \color{blue}{1} \]
  3. Step-by-step derivation
    1. Applied rewrites63.8%

      \[\leadsto \color{blue}{1} \]
    2. Add Preprocessing

    Reproduce

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