Lanczos kernel

Percentage Accurate: 98.0% → 98.0%
Time: 13.7s
Alternatives: 15
Speedup: 1.0×

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}

Sampling outcomes in binary32 precision:

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 15 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: 98.0% 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, 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}
Derivation
  1. Initial program 98.0%

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

Alternative 2: 97.7% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := x \cdot \left(\pi \cdot tau\right)\\
\sin \left(x \cdot \pi\right) \cdot \frac{\sin t\_1}{\left(x \cdot \pi\right) \cdot t\_1}
\end{array}
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/r*N/A

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\color{blue}{\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)}\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    4. sin-lowering-sin.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\color{blue}{x}, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    5. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\left(x \cdot \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    6. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \color{blue}{\mathsf{PI.f32}\left(\right)}\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3297.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  4. Applied egg-rr97.8%

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\sin \left(x \cdot \mathsf{PI}\left(\right)\right), \color{blue}{\left(\frac{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}{x \cdot \left(x \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) \cdot tau\right)\right)\right)}\right)}\right) \]
  6. Applied egg-rr97.7%

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

Alternative 3: 85.1% accurate, 4.7× speedup?

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

\\
1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(-0.16666666666666666 + -0.16666666666666666 \cdot \left(tau \cdot tau\right)\right) + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right)\right) \cdot \left(0.008333333333333333 \cdot \left(\left(tau \cdot tau\right) \cdot \left(tau \cdot tau\right)\right) + \left(0.008333333333333333 + \left(tau \cdot tau\right) \cdot 0.027777777777777776\right)\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. *-commutativeN/A

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

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

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

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

      \[\leadsto \frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau} \cdot \frac{1}{\color{blue}{\frac{x \cdot \mathsf{PI}\left(\right)}{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}}} \]
    6. un-div-invN/A

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

      \[\leadsto \mathsf{/.f32}\left(\left(\frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau}\right), \color{blue}{\left(\frac{x \cdot \mathsf{PI}\left(\right)}{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}\right)}\right) \]
  4. Applied egg-rr97.8%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(x \cdot \pi\right)}{\left(x \cdot \pi\right) \cdot tau}}{\frac{x \cdot \pi}{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}}} \]
  5. Step-by-step derivation
    1. associate-/l/N/A

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

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

      \[\leadsto \mathsf{/.f32}\left(\left(\frac{\sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\frac{x \cdot \mathsf{PI}\left(\right)}{\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}}\right), \color{blue}{\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)}\right) \]
  6. Applied egg-rr97.9%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(x \cdot \pi\right)}{\frac{x \cdot \pi}{\sin \left(x \cdot \left(\pi \cdot tau\right)\right)}}}{x \cdot \left(\pi \cdot tau\right)}} \]
  7. 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) + \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + {x}^{2} \cdot \left(\frac{1}{120} \cdot \left({tau}^{4} \cdot {\mathsf{PI}\left(\right)}^{4}\right) + \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)\right)\right)} \]
  8. Simplified86.8%

    \[\leadsto \color{blue}{1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(-0.16666666666666666 + -0.16666666666666666 \cdot \left(tau \cdot tau\right)\right) + \left(x \cdot x\right) \cdot \left(\left(\left(\pi \cdot \left(\pi \cdot \pi\right)\right) \cdot \pi\right) \cdot \left(0.008333333333333333 \cdot \left(\left(tau \cdot tau\right) \cdot \left(tau \cdot tau\right)\right) + \left(0.008333333333333333 + \left(tau \cdot tau\right) \cdot 0.027777777777777776\right)\right)\right)\right)} \]
  9. Final simplification86.8%

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

Alternative 4: 80.7% accurate, 5.9× speedup?

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

\\
1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(-0.16666666666666666 + -0.16666666666666666 \cdot \left(tau \cdot tau\right)\right) + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \left(\pi \cdot \left(\pi \cdot \pi\right)\right)\right) \cdot \left(0.008333333333333333 + \left(tau \cdot tau\right) \cdot 0.027777777777777776\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{6}\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    10. associate-*l*N/A

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    15. unpow2N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    16. associate-*r*N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    17. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    18. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    19. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    20. PI-lowering-PI.f3280.7%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  5. Simplified80.7%

    \[\leadsto \color{blue}{\left(1 + \left(x \cdot x\right) \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(-0.16666666666666666 \cdot \pi\right) \cdot \pi\right)\right)\right)} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  6. Step-by-step derivation
    1. associate-*r/N/A

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

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

      \[\leadsto \frac{\frac{\left(1 + \left(x \cdot x\right) \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right) \cdot \sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\mathsf{PI}\left(\right)}}{\color{blue}{x}} \]
    4. /-lowering-/.f32N/A

      \[\leadsto \mathsf{/.f32}\left(\left(\frac{\left(1 + \left(x \cdot x\right) \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right) \cdot \sin \left(x \cdot \mathsf{PI}\left(\right)\right)}{\mathsf{PI}\left(\right)}\right), \color{blue}{x}\right) \]
  7. Applied egg-rr80.3%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(x \cdot \pi\right) \cdot \left(1 + \left(\left(-0.16666666666666666 \cdot \left(tau \cdot tau\right)\right) \cdot \pi\right) \cdot \left(\pi \cdot \left(x \cdot x\right)\right)\right)}{\pi}}{x}} \]
  8. 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) + \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + {x}^{2} \cdot \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)\right)} \]
  9. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({x}^{2} \cdot \left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + {x}^{2} \cdot \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)\right)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + {x}^{2} \cdot \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)\right)}\right)\right) \]
    3. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left(x \cdot x\right), \left(\color{blue}{\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} + \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + {x}^{2} \cdot \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)\right)\right)\right) \]
    4. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\color{blue}{\frac{-1}{6} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} + \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2} + {x}^{2} \cdot \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)\right)\right)\right) \]
    5. associate-+r+N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\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}{{x}^{2} \cdot \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)}\right)\right)\right) \]
    6. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{+.f32}\left(\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}{\left({x}^{2} \cdot \left(\frac{1}{120} \cdot {\mathsf{PI}\left(\right)}^{4} + \frac{1}{36} \cdot \left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{4}\right)\right)\right)}\right)\right)\right) \]
  10. Simplified81.4%

    \[\leadsto \color{blue}{1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(-0.16666666666666666 + -0.16666666666666666 \cdot \left(tau \cdot tau\right)\right) + \left(x \cdot x\right) \cdot \left(\left(\left(\pi \cdot \left(\pi \cdot \pi\right)\right) \cdot \pi\right) \cdot \left(0.008333333333333333 + \left(tau \cdot tau\right) \cdot 0.027777777777777776\right)\right)\right)} \]
  11. Final simplification81.4%

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

Alternative 5: 80.4% accurate, 7.6× speedup?

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

\\
1 + -0.16666666666666666 \cdot \left(\left(\pi \cdot \left(x \cdot x\right)\right) \cdot \left(\pi + \left(tau \cdot tau\right) \cdot \left(\pi + \left(x \cdot x\right) \cdot \left(\pi \cdot \left(\left(\pi \cdot \pi\right) \cdot -0.16666666666666666\right)\right)\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{6}\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    10. associate-*l*N/A

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    15. unpow2N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    16. associate-*r*N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    17. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    18. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    19. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    20. PI-lowering-PI.f3280.7%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  5. Simplified80.7%

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({x}^{2}\right)\right), \left({\mathsf{PI}\left(\right)}^{3}\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. unpow2N/A

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \left({\mathsf{PI}\left(\right)}^{3}\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. cube-multN/A

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \left({\mathsf{PI}\left(\right)}^{2}\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    13. unpow2N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    14. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    15. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    16. PI-lowering-PI.f3280.6%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  8. Simplified80.6%

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left(\frac{-1}{6} \cdot \left({tau}^{2} \cdot \left({x}^{2} \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right)\right)\right)\right)\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)}\right) \]
    2. distribute-lft-outN/A

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\frac{-1}{6}, \left(\left({x}^{2} \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right) + \left({x}^{2} \cdot \left(\mathsf{PI}\left(\right) \cdot \left(\mathsf{PI}\left(\right) + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{3}\right)\right)\right)\right) \cdot \color{blue}{{tau}^{2}}\right)\right)\right) \]
  11. Simplified81.2%

    \[\leadsto \color{blue}{1 + -0.16666666666666666 \cdot \left(\left(\left(x \cdot x\right) \cdot \pi\right) \cdot \left(\pi + \left(\pi + \left(x \cdot x\right) \cdot \left(\pi \cdot \left(-0.16666666666666666 \cdot \left(\pi \cdot \pi\right)\right)\right)\right) \cdot \left(tau \cdot tau\right)\right)\right)} \]
  12. Final simplification81.2%

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

Alternative 6: 80.1% accurate, 8.1× speedup?

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

\\
\left(1 + \left(x \cdot x\right) \cdot \left(\left(tau \cdot tau\right) \cdot \left(\pi \cdot \left(\pi \cdot -0.16666666666666666\right)\right)\right)\right) \cdot \left(1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot -0.16666666666666666\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{6}\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    10. associate-*l*N/A

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    15. unpow2N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    16. associate-*r*N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    17. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    18. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    19. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    20. PI-lowering-PI.f3280.7%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  5. Simplified80.7%

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({x}^{2}\right)\right), \left({\mathsf{PI}\left(\right)}^{3}\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. unpow2N/A

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \left({\mathsf{PI}\left(\right)}^{3}\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. cube-multN/A

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \left({\mathsf{PI}\left(\right)}^{2}\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    13. unpow2N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    14. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    15. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    16. PI-lowering-PI.f3280.6%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{*.f32}\left(x, \mathsf{+.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  8. Simplified80.6%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\frac{-1}{6}, \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)\right)\right) \]
    10. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)\right)\right) \]
    11. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right)\right) \]
    12. PI-lowering-PI.f3280.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right)\right) \]
  11. Simplified80.8%

    \[\leadsto \left(1 + \left(x \cdot x\right) \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(-0.16666666666666666 \cdot \pi\right) \cdot \pi\right)\right)\right) \cdot \color{blue}{\left(1 + \left(x \cdot x\right) \cdot \left(-0.16666666666666666 \cdot \left(\pi \cdot \pi\right)\right)\right)} \]
  12. Final simplification80.8%

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

Alternative 7: 80.1% accurate, 8.1× speedup?

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

\\
\left(1 + \left(x \cdot x\right) \cdot \left(\left(tau \cdot tau\right) \cdot \left(\pi \cdot \left(\pi \cdot -0.16666666666666666\right)\right)\right)\right) \cdot \left(1 + \left(\pi \cdot \pi\right) \cdot \left(\left(x \cdot x\right) \cdot -0.16666666666666666\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Taylor expanded in x around 0

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\left({tau}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) \cdot \frac{-1}{6}\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    10. associate-*l*N/A

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot {\mathsf{PI}\left(\right)}^{2}\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    15. unpow2N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\frac{-1}{6} \cdot \left(\mathsf{PI}\left(\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    16. associate-*r*N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right) \cdot \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    17. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\left(\frac{-1}{6} \cdot \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    18. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    19. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    20. PI-lowering-PI.f3280.7%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  5. Simplified80.7%

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

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

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

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

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

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \left({\mathsf{PI}\left(\right)}^{2}\right)\right)\right)\right) \]
    7. unpow2N/A

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)\right) \]
    9. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right) \]
    10. PI-lowering-PI.f3280.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(tau, tau\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{PI.f32}\left(\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right), \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right) \]
  8. Simplified80.8%

    \[\leadsto \left(1 + \left(x \cdot x\right) \cdot \left(\left(tau \cdot tau\right) \cdot \left(\left(-0.16666666666666666 \cdot \pi\right) \cdot \pi\right)\right)\right) \cdot \color{blue}{\left(1 + \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(\pi \cdot \pi\right)\right)} \]
  9. Final simplification80.8%

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

Alternative 8: 79.3% accurate, 9.5× speedup?

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

\\
1 + \left(tau \cdot tau\right) \cdot \left(-0.16666666666666666 \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi + \frac{\frac{\pi \cdot \pi}{tau}}{tau}\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/r*N/A

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\color{blue}{\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)}\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    4. sin-lowering-sin.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\color{blue}{x}, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    5. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\left(x \cdot \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    6. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \color{blue}{\mathsf{PI.f32}\left(\right)}\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3297.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  4. Applied egg-rr97.8%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{x \cdot \pi}}{tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. 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)} \]
  6. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({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)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\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)}\right)\right) \]
    3. unpow2N/A

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({tau}^{2}\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    14. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(tau \cdot tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    15. *-lowering-*.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
  7. Simplified79.9%

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(\left({tau}^{2} \cdot \left(\frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right) + \frac{-1}{6} \cdot \frac{{x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}}{{tau}^{2}}\right)\right), \color{blue}{1}\right) \]
  10. Simplified79.9%

    \[\leadsto \color{blue}{\left(tau \cdot tau\right) \cdot \left(-0.16666666666666666 \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi + \frac{\frac{\pi \cdot \pi}{tau}}{tau}\right)\right)\right) + 1} \]
  11. Final simplification79.9%

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

Alternative 9: 79.3% accurate, 12.9× speedup?

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

\\
1 + \left(x \cdot x\right) \cdot \left(\pi \cdot \left(\pi \cdot \left(-0.16666666666666666 + -0.16666666666666666 \cdot \left(tau \cdot tau\right)\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/r*N/A

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\color{blue}{\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)}\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    4. sin-lowering-sin.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\color{blue}{x}, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    5. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\left(x \cdot \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    6. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \color{blue}{\mathsf{PI.f32}\left(\right)}\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3297.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  4. Applied egg-rr97.8%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{x \cdot \pi}}{tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. 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)} \]
  6. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({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)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\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)}\right)\right) \]
    3. unpow2N/A

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({tau}^{2}\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    14. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(tau \cdot tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    15. *-lowering-*.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
  7. Simplified79.9%

    \[\leadsto \color{blue}{1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(-0.16666666666666666 \cdot \left(tau \cdot tau\right) + -0.16666666666666666\right)\right)} \]
  8. Step-by-step derivation
    1. associate-*l*N/A

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\left(\mathsf{PI}\left(\right) \cdot \left(\frac{-1}{6} \cdot \left(tau \cdot tau\right) + \frac{-1}{6}\right)\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right) \]
    3. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\left(\mathsf{PI}\left(\right) \cdot \left(\frac{-1}{6} \cdot \left(tau \cdot tau\right) + \frac{-1}{6}\right)\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right) \]
    4. *-lowering-*.f32N/A

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{+.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right)\right)\right), \mathsf{PI}\left(\right)\right)\right)\right) \]
    10. PI-lowering-PI.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{+.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right)\right)\right), \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  9. Applied egg-rr79.9%

    \[\leadsto 1 + \left(x \cdot x\right) \cdot \color{blue}{\left(\left(\pi \cdot \left(-0.16666666666666666 + -0.16666666666666666 \cdot \left(tau \cdot tau\right)\right)\right) \cdot \pi\right)} \]
  10. Final simplification79.9%

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

Alternative 10: 79.3% accurate, 12.9× speedup?

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

\\
1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(-0.16666666666666666 + -0.16666666666666666 \cdot \left(tau \cdot tau\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. 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)} \]
  4. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({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)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\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)}\right)\right) \]
    3. unpow2N/A

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(\frac{-1}{6}, \left(tau \cdot \color{blue}{tau}\right)\right)\right)\right)\right)\right) \]
    16. *-lowering-*.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, \color{blue}{tau}\right)\right)\right)\right)\right)\right) \]
  5. Simplified79.9%

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

Alternative 11: 70.2% accurate, 14.6× speedup?

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

\\
1 + \left(x \cdot x\right) \cdot \left(\left(\pi \cdot \pi\right) \cdot \left(-0.16666666666666666 \cdot \left(tau \cdot tau\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/r*N/A

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\color{blue}{\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)}\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    4. sin-lowering-sin.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\color{blue}{x}, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    5. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\left(x \cdot \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    6. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \color{blue}{\mathsf{PI.f32}\left(\right)}\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3297.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  4. Applied egg-rr97.8%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{x \cdot \pi}}{tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. 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)} \]
  6. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({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)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\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)}\right)\right) \]
    3. unpow2N/A

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({tau}^{2}\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    14. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(tau \cdot tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    15. *-lowering-*.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
  7. Simplified79.9%

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)\right) \]
    7. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)\right) \]
    8. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3270.0%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right) \]
  10. Simplified70.0%

    \[\leadsto 1 + \left(x \cdot x\right) \cdot \color{blue}{\left(\left(-0.16666666666666666 \cdot \left(tau \cdot tau\right)\right) \cdot \left(\pi \cdot \pi\right)\right)} \]
  11. Final simplification70.0%

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

Alternative 12: 70.2% accurate, 14.6× speedup?

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

\\
1 + \left(-0.16666666666666666 \cdot \left(tau \cdot tau\right)\right) \cdot \left(\left(x \cdot x\right) \cdot \left(\pi \cdot \pi\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/r*N/A

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\color{blue}{\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)}\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    4. sin-lowering-sin.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\color{blue}{x}, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    5. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\left(x \cdot \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    6. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \color{blue}{\mathsf{PI.f32}\left(\right)}\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3297.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  4. Applied egg-rr97.8%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{x \cdot \pi}}{tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. 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)} \]
  6. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({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)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\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)}\right)\right) \]
    3. unpow2N/A

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({tau}^{2}\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    14. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(tau \cdot tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    15. *-lowering-*.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
  7. Simplified79.9%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)\right) \]
    10. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right)\right) \]
    11. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right)\right) \]
    12. PI-lowering-PI.f3270.0%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right)\right) \]
  10. Simplified70.0%

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

Alternative 13: 65.0% accurate, 19.9× speedup?

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

\\
1 + \pi \cdot \left(-0.16666666666666666 \cdot \left(x \cdot \left(x \cdot \pi\right)\right)\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/r*N/A

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\color{blue}{\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)}\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    4. sin-lowering-sin.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\color{blue}{x}, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    5. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\left(x \cdot \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    6. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \color{blue}{\mathsf{PI.f32}\left(\right)}\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3297.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  4. Applied egg-rr97.8%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{x \cdot \pi}}{tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. 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)} \]
  6. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({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)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\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)}\right)\right) \]
    3. unpow2N/A

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({tau}^{2}\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    14. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(tau \cdot tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    15. *-lowering-*.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
  7. Simplified79.9%

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

    \[\leadsto \color{blue}{1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
  9. Step-by-step derivation
    1. +-lowering-+.f32N/A

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({x}^{2}\right)\right), \left({\color{blue}{\mathsf{PI}\left(\right)}}^{2}\right)\right)\right) \]
    5. unpow2N/A

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \left({\mathsf{PI}\left(\right)}^{2}\right)\right)\right) \]
    7. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right) \]
    9. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right) \]
    10. PI-lowering-PI.f3264.6%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  10. Simplified64.6%

    \[\leadsto \color{blue}{1 + \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(\pi \cdot \pi\right)} \]
  11. Step-by-step derivation
    1. associate-*r*N/A

      \[\leadsto \mathsf{+.f32}\left(1, \left(\left(\left(\frac{-1}{6} \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left(\left(\frac{-1}{6} \cdot \left(x \cdot x\right)\right) \cdot \mathsf{PI}\left(\right)\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right) \]
    3. associate-*l*N/A

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(\left(x \cdot x\right) \cdot \mathsf{PI}\left(\right)\right)\right), \mathsf{PI}\left(\right)\right)\right) \]
    7. associate-*l*N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(x \cdot \left(x \cdot \mathsf{PI}\left(\right)\right)\right)\right), \mathsf{PI}\left(\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, \left(x \cdot \mathsf{PI}\left(\right)\right)\right)\right), \mathsf{PI}\left(\right)\right)\right) \]
    9. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right)\right), \mathsf{PI}\left(\right)\right)\right) \]
    10. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right), \mathsf{PI}\left(\right)\right)\right) \]
    11. PI-lowering-PI.f3264.6%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right), \mathsf{PI.f32}\left(\right)\right)\right) \]
  12. Applied egg-rr64.6%

    \[\leadsto 1 + \color{blue}{\left(-0.16666666666666666 \cdot \left(x \cdot \left(x \cdot \pi\right)\right)\right) \cdot \pi} \]
  13. Final simplification64.6%

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

Alternative 14: 65.0% accurate, 19.9× speedup?

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

\\
1 + \left(\pi \cdot \pi\right) \cdot \left(\left(x \cdot x\right) \cdot -0.16666666666666666\right)
\end{array}
Derivation
  1. Initial program 98.0%

    \[\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. Add Preprocessing
  3. Step-by-step derivation
    1. associate-/r*N/A

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

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

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\sin \left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\color{blue}{\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)}\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    4. sin-lowering-sin.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\left(\left(x \cdot \mathsf{PI}\left(\right)\right) \cdot tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\color{blue}{x}, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    5. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\left(x \cdot \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    6. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    7. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \left(x \cdot \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \color{blue}{\mathsf{PI.f32}\left(\right)}\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
    9. PI-lowering-PI.f3297.8%

      \[\leadsto \mathsf{*.f32}\left(\mathsf{/.f32}\left(\mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right), tau\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), tau\right), \mathsf{/.f32}\left(\mathsf{sin.f32}\left(\mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right), \mathsf{*.f32}\left(x, \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  4. Applied egg-rr97.8%

    \[\leadsto \color{blue}{\frac{\frac{\sin \left(\left(x \cdot \pi\right) \cdot tau\right)}{x \cdot \pi}}{tau}} \cdot \frac{\sin \left(x \cdot \pi\right)}{x \cdot \pi} \]
  5. 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)} \]
  6. Step-by-step derivation
    1. +-lowering-+.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \color{blue}{\left({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)\right)}\right) \]
    2. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\left({x}^{2}\right), \color{blue}{\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)}\right)\right) \]
    3. unpow2N/A

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({tau}^{2}\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    14. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left(tau \cdot tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
    15. *-lowering-*.f3279.9%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(x, x\right), \mathsf{*.f32}\left(\mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right), \mathsf{+.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(tau, tau\right)\right), \frac{-1}{6}\right)\right)\right)\right) \]
  7. Simplified79.9%

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

    \[\leadsto \color{blue}{1 + \frac{-1}{6} \cdot \left({x}^{2} \cdot {\mathsf{PI}\left(\right)}^{2}\right)} \]
  9. Step-by-step derivation
    1. +-lowering-+.f32N/A

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

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

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \left({x}^{2}\right)\right), \left({\color{blue}{\mathsf{PI}\left(\right)}}^{2}\right)\right)\right) \]
    5. unpow2N/A

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

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \left({\mathsf{PI}\left(\right)}^{2}\right)\right)\right) \]
    7. unpow2N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \left(\mathsf{PI}\left(\right) \cdot \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right) \]
    8. *-lowering-*.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI}\left(\right), \color{blue}{\mathsf{PI}\left(\right)}\right)\right)\right) \]
    9. PI-lowering-PI.f32N/A

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI}\left(\right)\right)\right)\right) \]
    10. PI-lowering-PI.f3264.6%

      \[\leadsto \mathsf{+.f32}\left(1, \mathsf{*.f32}\left(\mathsf{*.f32}\left(\frac{-1}{6}, \mathsf{*.f32}\left(x, x\right)\right), \mathsf{*.f32}\left(\mathsf{PI.f32}\left(\right), \mathsf{PI.f32}\left(\right)\right)\right)\right) \]
  10. Simplified64.6%

    \[\leadsto \color{blue}{1 + \left(-0.16666666666666666 \cdot \left(x \cdot x\right)\right) \cdot \left(\pi \cdot \pi\right)} \]
  11. Final simplification64.6%

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

Alternative 15: 64.0% accurate, 219.0× speedup?

\[\begin{array}{l} \\ 1 \end{array} \]
(FPCore (x tau) :precision binary32 1.0)
float code(float x, float tau) {
	return 1.0f;
}
real(4) function code(x, tau)
    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 98.0%

    \[\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. Add Preprocessing
  3. Taylor expanded in x around 0

    \[\leadsto \color{blue}{1} \]
  4. Step-by-step derivation
    1. Simplified63.8%

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

    Reproduce

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