
(FPCore (x y z t) :precision binary64 (+ x (* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))))
double code(double x, double y, double z, double t) {
return x + ((y * z) * (tanh((t / y)) - tanh((x / y))));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y * z) * (tanh((t / y)) - tanh((x / y))))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y * z) * (Math.tanh((t / y)) - Math.tanh((x / y))));
}
def code(x, y, z, t): return x + ((y * z) * (math.tanh((t / y)) - math.tanh((x / y))))
function code(x, y, z, t) return Float64(x + Float64(Float64(y * z) * Float64(tanh(Float64(t / y)) - tanh(Float64(x / y))))) end
function tmp = code(x, y, z, t) tmp = x + ((y * z) * (tanh((t / y)) - tanh((x / y)))); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y * z), $MachinePrecision] * N[(N[Tanh[N[(t / y), $MachinePrecision]], $MachinePrecision] - N[Tanh[N[(x / y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y \cdot z\right) \cdot \left(\tanh \left(\frac{t}{y}\right) - \tanh \left(\frac{x}{y}\right)\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))))
double code(double x, double y, double z, double t) {
return x + ((y * z) * (tanh((t / y)) - tanh((x / y))));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y * z) * (tanh((t / y)) - tanh((x / y))))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y * z) * (Math.tanh((t / y)) - Math.tanh((x / y))));
}
def code(x, y, z, t): return x + ((y * z) * (math.tanh((t / y)) - math.tanh((x / y))))
function code(x, y, z, t) return Float64(x + Float64(Float64(y * z) * Float64(tanh(Float64(t / y)) - tanh(Float64(x / y))))) end
function tmp = code(x, y, z, t) tmp = x + ((y * z) * (tanh((t / y)) - tanh((x / y)))); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y * z), $MachinePrecision] * N[(N[Tanh[N[(t / y), $MachinePrecision]], $MachinePrecision] - N[Tanh[N[(x / y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y \cdot z\right) \cdot \left(\tanh \left(\frac{t}{y}\right) - \tanh \left(\frac{x}{y}\right)\right)
\end{array}
(FPCore (x y z t) :precision binary64 (fma (* y (- (tanh (/ t y)) (tanh (/ x y)))) z x))
double code(double x, double y, double z, double t) {
return fma((y * (tanh((t / y)) - tanh((x / y)))), z, x);
}
function code(x, y, z, t) return fma(Float64(y * Float64(tanh(Float64(t / y)) - tanh(Float64(x / y)))), z, x) end
code[x_, y_, z_, t_] := N[(N[(y * N[(N[Tanh[N[(t / y), $MachinePrecision]], $MachinePrecision] - N[Tanh[N[(x / y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y \cdot \left(\tanh \left(\frac{t}{y}\right) - \tanh \left(\frac{x}{y}\right)\right), z, x\right)
\end{array}
Initial program 94.0%
lift-*.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift--.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6497.2
Applied egg-rr97.2%
Final simplification97.2%
(FPCore (x y z t) :precision binary64 (if (<= y 6.5e-89) (/ 1.0 (/ 1.0 x)) (fma (* y (- (tanh (/ t y)) (/ x y))) z x)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 6.5e-89) {
tmp = 1.0 / (1.0 / x);
} else {
tmp = fma((y * (tanh((t / y)) - (x / y))), z, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= 6.5e-89) tmp = Float64(1.0 / Float64(1.0 / x)); else tmp = fma(Float64(y * Float64(tanh(Float64(t / y)) - Float64(x / y))), z, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, 6.5e-89], N[(1.0 / N[(1.0 / x), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[Tanh[N[(t / y), $MachinePrecision]], $MachinePrecision] - N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.5 \cdot 10^{-89}:\\
\;\;\;\;\frac{1}{\frac{1}{x}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot \left(\tanh \left(\frac{t}{y}\right) - \frac{x}{y}\right), z, x\right)\\
\end{array}
\end{array}
if y < 6.50000000000000034e-89Initial program 97.0%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6452.1
Simplified52.1%
lift--.f64N/A
flip-+N/A
clear-numN/A
lower-/.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f64N/A
difference-of-squaresN/A
lift-fma.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6426.8
Applied egg-rr26.8%
Taylor expanded in z around 0
lower-/.f6467.3
Simplified67.3%
if 6.50000000000000034e-89 < y Initial program 85.5%
lift-*.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift--.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6494.1
Applied egg-rr94.1%
Taylor expanded in x around 0
lower-/.f6482.8
Simplified82.8%
Final simplification71.3%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* z (- t x))))
(if (<= z -1.32e+122)
t_1
(if (<= z -1.08e-33)
(fma t z x)
(if (<= z 5.8e-14)
(- x (* x z))
(if (<= z 7.4e+65) (fma t z x) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = z * (t - x);
double tmp;
if (z <= -1.32e+122) {
tmp = t_1;
} else if (z <= -1.08e-33) {
tmp = fma(t, z, x);
} else if (z <= 5.8e-14) {
tmp = x - (x * z);
} else if (z <= 7.4e+65) {
tmp = fma(t, z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(z * Float64(t - x)) tmp = 0.0 if (z <= -1.32e+122) tmp = t_1; elseif (z <= -1.08e-33) tmp = fma(t, z, x); elseif (z <= 5.8e-14) tmp = Float64(x - Float64(x * z)); elseif (z <= 7.4e+65) tmp = fma(t, z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.32e+122], t$95$1, If[LessEqual[z, -1.08e-33], N[(t * z + x), $MachinePrecision], If[LessEqual[z, 5.8e-14], N[(x - N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.4e+65], N[(t * z + x), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(t - x\right)\\
\mathbf{if}\;z \leq -1.32 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.08 \cdot 10^{-33}:\\
\;\;\;\;\mathsf{fma}\left(t, z, x\right)\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-14}:\\
\;\;\;\;x - x \cdot z\\
\mathbf{elif}\;z \leq 7.4 \cdot 10^{+65}:\\
\;\;\;\;\mathsf{fma}\left(t, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.31999999999999992e122 or 7.39999999999999989e65 < z Initial program 90.0%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6449.4
Simplified49.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6449.4
Simplified49.4%
if -1.31999999999999992e122 < z < -1.08000000000000007e-33 or 5.8000000000000005e-14 < z < 7.39999999999999989e65Initial program 86.6%
lift-*.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift--.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6492.4
Applied egg-rr92.4%
Taylor expanded in t around 0
lower-/.f6453.4
Simplified53.4%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f6454.0
Simplified54.0%
if -1.08000000000000007e-33 < z < 5.8000000000000005e-14Initial program 100.0%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6472.3
Simplified72.3%
Taylor expanded in t around 0
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6488.3
Simplified88.3%
(FPCore (x y z t) :precision binary64 (if (<= y 360.0) (/ 1.0 (/ 1.0 x)) (fma z (- t x) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 360.0) {
tmp = 1.0 / (1.0 / x);
} else {
tmp = fma(z, (t - x), x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (y <= 360.0) tmp = Float64(1.0 / Float64(1.0 / x)); else tmp = fma(z, Float64(t - x), x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[y, 360.0], N[(1.0 / N[(1.0 / x), $MachinePrecision]), $MachinePrecision], N[(z * N[(t - x), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 360:\\
\;\;\;\;\frac{1}{\frac{1}{x}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, t - x, x\right)\\
\end{array}
\end{array}
if y < 360Initial program 97.1%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6451.9
Simplified51.9%
lift--.f64N/A
flip-+N/A
clear-numN/A
lower-/.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f64N/A
difference-of-squaresN/A
lift-fma.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6426.9
Applied egg-rr26.9%
Taylor expanded in z around 0
lower-/.f6467.3
Simplified67.3%
if 360 < y Initial program 82.3%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6474.3
Simplified74.3%
(FPCore (x y z t)
:precision binary64
(if (<= z -1.08e-33)
(fma z (- t x) x)
(if (<= z 5.8e-14)
(- x (* x z))
(if (<= z 7.4e+65) (fma t z x) (* z (- t x))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.08e-33) {
tmp = fma(z, (t - x), x);
} else if (z <= 5.8e-14) {
tmp = x - (x * z);
} else if (z <= 7.4e+65) {
tmp = fma(t, z, x);
} else {
tmp = z * (t - x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (z <= -1.08e-33) tmp = fma(z, Float64(t - x), x); elseif (z <= 5.8e-14) tmp = Float64(x - Float64(x * z)); elseif (z <= 7.4e+65) tmp = fma(t, z, x); else tmp = Float64(z * Float64(t - x)); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.08e-33], N[(z * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 5.8e-14], N[(x - N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.4e+65], N[(t * z + x), $MachinePrecision], N[(z * N[(t - x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.08 \cdot 10^{-33}:\\
\;\;\;\;\mathsf{fma}\left(z, t - x, x\right)\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-14}:\\
\;\;\;\;x - x \cdot z\\
\mathbf{elif}\;z \leq 7.4 \cdot 10^{+65}:\\
\;\;\;\;\mathsf{fma}\left(t, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(t - x\right)\\
\end{array}
\end{array}
if z < -1.08000000000000007e-33Initial program 84.7%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6442.4
Simplified42.4%
if -1.08000000000000007e-33 < z < 5.8000000000000005e-14Initial program 100.0%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6472.3
Simplified72.3%
Taylor expanded in t around 0
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-*.f6488.3
Simplified88.3%
if 5.8000000000000005e-14 < z < 7.39999999999999989e65Initial program 95.1%
lift-*.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift--.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6495.1
Applied egg-rr95.1%
Taylor expanded in t around 0
lower-/.f6461.9
Simplified61.9%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f6463.1
Simplified63.1%
if 7.39999999999999989e65 < z Initial program 91.9%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6452.3
Simplified52.3%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6452.3
Simplified52.3%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* z (- t x)))) (if (<= z -1.32e+122) t_1 (if (<= z 7.4e+65) (fma t z x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = z * (t - x);
double tmp;
if (z <= -1.32e+122) {
tmp = t_1;
} else if (z <= 7.4e+65) {
tmp = fma(t, z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(z * Float64(t - x)) tmp = 0.0 if (z <= -1.32e+122) tmp = t_1; elseif (z <= 7.4e+65) tmp = fma(t, z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.32e+122], t$95$1, If[LessEqual[z, 7.4e+65], N[(t * z + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(t - x\right)\\
\mathbf{if}\;z \leq -1.32 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.4 \cdot 10^{+65}:\\
\;\;\;\;\mathsf{fma}\left(t, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.31999999999999992e122 or 7.39999999999999989e65 < z Initial program 90.0%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6449.4
Simplified49.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6449.4
Simplified49.4%
if -1.31999999999999992e122 < z < 7.39999999999999989e65Initial program 96.0%
lift-*.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift--.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6497.8
Applied egg-rr97.8%
Taylor expanded in t around 0
lower-/.f6461.0
Simplified61.0%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f6467.0
Simplified67.0%
(FPCore (x y z t) :precision binary64 (if (<= z -1.6e+155) (* x (- z)) (fma t z x)))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.6e+155) {
tmp = x * -z;
} else {
tmp = fma(t, z, x);
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (z <= -1.6e+155) tmp = Float64(x * Float64(-z)); else tmp = fma(t, z, x); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.6e+155], N[(x * (-z)), $MachinePrecision], N[(t * z + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+155}:\\
\;\;\;\;x \cdot \left(-z\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, z, x\right)\\
\end{array}
\end{array}
if z < -1.60000000000000006e155Initial program 88.5%
Taylor expanded in y around inf
lower-/.f64N/A
lower--.f6433.3
Simplified33.3%
Taylor expanded in t around 0
mul-1-negN/A
lower-neg.f6427.5
Simplified27.5%
Taylor expanded in z around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6436.3
Simplified36.3%
if -1.60000000000000006e155 < z Initial program 94.8%
lift-*.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift--.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6497.2
Applied egg-rr97.2%
Taylor expanded in t around 0
lower-/.f6460.4
Simplified60.4%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f6461.0
Simplified61.0%
(FPCore (x y z t) :precision binary64 (fma t z x))
double code(double x, double y, double z, double t) {
return fma(t, z, x);
}
function code(x, y, z, t) return fma(t, z, x) end
code[x_, y_, z_, t_] := N[(t * z + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(t, z, x\right)
\end{array}
Initial program 94.0%
lift-*.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift-/.f64N/A
lift-tanh.f64N/A
lift--.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6497.2
Applied egg-rr97.2%
Taylor expanded in t around 0
lower-/.f6459.3
Simplified59.3%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f6455.0
Simplified55.0%
(FPCore (x y z t) :precision binary64 (* t z))
double code(double x, double y, double z, double t) {
return t * z;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = t * z
end function
public static double code(double x, double y, double z, double t) {
return t * z;
}
def code(x, y, z, t): return t * z
function code(x, y, z, t) return Float64(t * z) end
function tmp = code(x, y, z, t) tmp = t * z; end
code[x_, y_, z_, t_] := N[(t * z), $MachinePrecision]
\begin{array}{l}
\\
t \cdot z
\end{array}
Initial program 94.0%
Taylor expanded in y around inf
+-commutativeN/A
lower-fma.f64N/A
lower--.f6456.7
Simplified56.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f6417.0
Simplified17.0%
Final simplification17.0%
(FPCore (x y z t) :precision binary64 (+ x (* y (* z (- (tanh (/ t y)) (tanh (/ x y)))))))
double code(double x, double y, double z, double t) {
return x + (y * (z * (tanh((t / y)) - tanh((x / y)))));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + (y * (z * (tanh((t / y)) - tanh((x / y)))))
end function
public static double code(double x, double y, double z, double t) {
return x + (y * (z * (Math.tanh((t / y)) - Math.tanh((x / y)))));
}
def code(x, y, z, t): return x + (y * (z * (math.tanh((t / y)) - math.tanh((x / y)))))
function code(x, y, z, t) return Float64(x + Float64(y * Float64(z * Float64(tanh(Float64(t / y)) - tanh(Float64(x / y)))))) end
function tmp = code(x, y, z, t) tmp = x + (y * (z * (tanh((t / y)) - tanh((x / y))))); end
code[x_, y_, z_, t_] := N[(x + N[(y * N[(z * N[(N[Tanh[N[(t / y), $MachinePrecision]], $MachinePrecision] - N[Tanh[N[(x / y), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \left(z \cdot \left(\tanh \left(\frac{t}{y}\right) - \tanh \left(\frac{x}{y}\right)\right)\right)
\end{array}
herbie shell --seed 2024212
(FPCore (x y z t)
:name "SynthBasics:moogVCF from YampaSynth-0.2"
:precision binary64
:alt
(! :herbie-platform default (+ x (* y (* z (- (tanh (/ t y)) (tanh (/ x y)))))))
(+ x (* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))))