| Alternative 1 | |
|---|---|
| Error | 4.3 |
| Cost | 3916 |
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))) (t_2 (/ z (- a z))))
(if (<= t_1 (- INFINITY))
(+ (* (- (+ t_2 1.0) (/ y (- a z))) x) (* -1.0 (/ (* t (- z y)) (- a z))))
(if (<= t_1 -2e-302)
(+ (- (* y (/ (- x t) (- a z)))) (+ x (* (- x t) t_2)))
(if (<= t_1 0.0)
(+ (* (- y z) (- (/ t (- z a)))) (* (+ y (- a)) (/ x z)))
(+ x (/ (/ (- y z) (- z a)) (/ 1.0 (- x t)))))))))double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = z / (a - z);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (((t_2 + 1.0) - (y / (a - z))) * x) + (-1.0 * ((t * (z - y)) / (a - z)));
} else if (t_1 <= -2e-302) {
tmp = -(y * ((x - t) / (a - z))) + (x + ((x - t) * t_2));
} else if (t_1 <= 0.0) {
tmp = ((y - z) * -(t / (z - a))) + ((y + -a) * (x / z));
} else {
tmp = x + (((y - z) / (z - a)) / (1.0 / (x - t)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = z / (a - z);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (((t_2 + 1.0) - (y / (a - z))) * x) + (-1.0 * ((t * (z - y)) / (a - z)));
} else if (t_1 <= -2e-302) {
tmp = -(y * ((x - t) / (a - z))) + (x + ((x - t) * t_2));
} else if (t_1 <= 0.0) {
tmp = ((y - z) * -(t / (z - a))) + ((y + -a) * (x / z));
} else {
tmp = x + (((y - z) / (z - a)) / (1.0 / (x - t)));
}
return tmp;
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) t_2 = z / (a - z) tmp = 0 if t_1 <= -math.inf: tmp = (((t_2 + 1.0) - (y / (a - z))) * x) + (-1.0 * ((t * (z - y)) / (a - z))) elif t_1 <= -2e-302: tmp = -(y * ((x - t) / (a - z))) + (x + ((x - t) * t_2)) elif t_1 <= 0.0: tmp = ((y - z) * -(t / (z - a))) + ((y + -a) * (x / z)) else: tmp = x + (((y - z) / (z - a)) / (1.0 / (x - t))) return tmp
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_2 = Float64(z / Float64(a - z)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(t_2 + 1.0) - Float64(y / Float64(a - z))) * x) + Float64(-1.0 * Float64(Float64(t * Float64(z - y)) / Float64(a - z)))); elseif (t_1 <= -2e-302) tmp = Float64(Float64(-Float64(y * Float64(Float64(x - t) / Float64(a - z)))) + Float64(x + Float64(Float64(x - t) * t_2))); elseif (t_1 <= 0.0) tmp = Float64(Float64(Float64(y - z) * Float64(-Float64(t / Float64(z - a)))) + Float64(Float64(y + Float64(-a)) * Float64(x / z))); else tmp = Float64(x + Float64(Float64(Float64(y - z) / Float64(z - a)) / Float64(1.0 / Float64(x - t)))); end return tmp end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); t_2 = z / (a - z); tmp = 0.0; if (t_1 <= -Inf) tmp = (((t_2 + 1.0) - (y / (a - z))) * x) + (-1.0 * ((t * (z - y)) / (a - z))); elseif (t_1 <= -2e-302) tmp = -(y * ((x - t) / (a - z))) + (x + ((x - t) * t_2)); elseif (t_1 <= 0.0) tmp = ((y - z) * -(t / (z - a))) + ((y + -a) * (x / z)); else tmp = x + (((y - z) / (z - a)) / (1.0 / (x - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[(t$95$2 + 1.0), $MachinePrecision] - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] + N[(-1.0 * N[(N[(t * N[(z - y), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e-302], N[((-N[(y * N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]) + N[(x + N[(N[(x - t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(N[(y - z), $MachinePrecision] * (-N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision])), $MachinePrecision] + N[(N[(y + (-a)), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_2 := \frac{z}{a - z}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(\left(t_2 + 1\right) - \frac{y}{a - z}\right) \cdot x + -1 \cdot \frac{t \cdot \left(z - y\right)}{a - z}\\
\mathbf{elif}\;t_1 \leq -2 \cdot 10^{-302}:\\
\;\;\;\;\left(-y \cdot \frac{x - t}{a - z}\right) + \left(x + \left(x - t\right) \cdot t_2\right)\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;\left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + \left(y + \left(-a\right)\right) \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{y - z}{z - a}}{\frac{1}{x - t}}\\
\end{array}
Results
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0Initial program 64.0
Simplified58.6
[Start]64.0 | \[ x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\] |
|---|---|
rational.json-simplify-50 [=>]64.0 | \[ x + \left(y - z\right) \cdot \color{blue}{\frac{-\left(t - x\right)}{z - a}}
\] |
rational.json-simplify-8 [=>]64.0 | \[ x + \left(y - z\right) \cdot \frac{\color{blue}{\left(t - x\right) \cdot -1}}{z - a}
\] |
rational.json-simplify-49 [=>]64.0 | \[ x + \left(y - z\right) \cdot \color{blue}{\left(-1 \cdot \frac{t - x}{z - a}\right)}
\] |
rational.json-simplify-43 [<=]64.0 | \[ x + \color{blue}{\frac{t - x}{z - a} \cdot \left(\left(y - z\right) \cdot -1\right)}
\] |
rational.json-simplify-5 [<=]64.0 | \[ x + \frac{t - x}{\color{blue}{\left(z - a\right) - 0}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-50 [=>]64.0 | \[ x + \color{blue}{\frac{-\left(t - x\right)}{0 - \left(z - a\right)}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-12 [<=]64.0 | \[ x + \frac{-\left(t - x\right)}{\color{blue}{-\left(z - a\right)}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-10 [=>]64.0 | \[ x + \frac{-\left(t - x\right)}{\color{blue}{\frac{z - a}{-1}}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-61 [=>]64.0 | \[ x + \color{blue}{\frac{-1}{\frac{z - a}{-\left(t - x\right)}}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-9 [=>]64.0 | \[ x + \frac{-1}{\frac{z - a}{-\left(t - x\right)}} \cdot \color{blue}{\left(-\left(y - z\right)\right)}
\] |
rational.json-simplify-10 [=>]64.0 | \[ x + \frac{-1}{\frac{z - a}{-\left(t - x\right)}} \cdot \color{blue}{\frac{y - z}{-1}}
\] |
rational.json-simplify-55 [=>]58.6 | \[ x + \color{blue}{\frac{\frac{y - z}{-1}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}}
\] |
rational.json-simplify-10 [<=]58.6 | \[ x + \frac{\color{blue}{-\left(y - z\right)}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-12 [=>]58.6 | \[ x + \frac{\color{blue}{0 - \left(y - z\right)}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-45 [=>]58.6 | \[ x + \frac{\color{blue}{z - \left(y - 0\right)}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-5 [=>]58.6 | \[ x + \frac{z - \color{blue}{y}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-46 [<=]58.6 | \[ x + \frac{z - y}{\color{blue}{\frac{z - a}{\left(-\left(t - x\right)\right) \cdot -1}}}
\] |
rational.json-simplify-2 [=>]58.6 | \[ x + \frac{z - y}{\frac{z - a}{\color{blue}{-1 \cdot \left(-\left(t - x\right)\right)}}}
\] |
rational.json-simplify-46 [=>]58.6 | \[ x + \frac{z - y}{\color{blue}{\frac{\frac{z - a}{-1}}{-\left(t - x\right)}}}
\] |
rational.json-simplify-10 [<=]58.6 | \[ x + \frac{z - y}{\frac{\color{blue}{-\left(z - a\right)}}{-\left(t - x\right)}}
\] |
rational.json-simplify-12 [=>]58.6 | \[ x + \frac{z - y}{\frac{\color{blue}{0 - \left(z - a\right)}}{-\left(t - x\right)}}
\] |
rational.json-simplify-45 [=>]58.6 | \[ x + \frac{z - y}{\frac{\color{blue}{a - \left(z - 0\right)}}{-\left(t - x\right)}}
\] |
rational.json-simplify-5 [=>]58.6 | \[ x + \frac{z - y}{\frac{a - \color{blue}{z}}{-\left(t - x\right)}}
\] |
rational.json-simplify-12 [=>]58.6 | \[ x + \frac{z - y}{\frac{a - z}{\color{blue}{0 - \left(t - x\right)}}}
\] |
Taylor expanded in x around 0 4.2
if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.9999999999999999e-302Initial program 5.6
Simplified5.8
[Start]5.6 | \[ x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\] |
|---|---|
rational.json-simplify-50 [=>]5.6 | \[ x + \left(y - z\right) \cdot \color{blue}{\frac{-\left(t - x\right)}{z - a}}
\] |
rational.json-simplify-8 [=>]5.6 | \[ x + \left(y - z\right) \cdot \frac{\color{blue}{\left(t - x\right) \cdot -1}}{z - a}
\] |
rational.json-simplify-49 [=>]5.6 | \[ x + \left(y - z\right) \cdot \color{blue}{\left(-1 \cdot \frac{t - x}{z - a}\right)}
\] |
rational.json-simplify-43 [<=]5.6 | \[ x + \color{blue}{\frac{t - x}{z - a} \cdot \left(\left(y - z\right) \cdot -1\right)}
\] |
rational.json-simplify-5 [<=]5.6 | \[ x + \frac{t - x}{\color{blue}{\left(z - a\right) - 0}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-50 [=>]5.6 | \[ x + \color{blue}{\frac{-\left(t - x\right)}{0 - \left(z - a\right)}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-12 [<=]5.6 | \[ x + \frac{-\left(t - x\right)}{\color{blue}{-\left(z - a\right)}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-10 [=>]5.6 | \[ x + \frac{-\left(t - x\right)}{\color{blue}{\frac{z - a}{-1}}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-61 [=>]5.8 | \[ x + \color{blue}{\frac{-1}{\frac{z - a}{-\left(t - x\right)}}} \cdot \left(\left(y - z\right) \cdot -1\right)
\] |
rational.json-simplify-9 [=>]5.8 | \[ x + \frac{-1}{\frac{z - a}{-\left(t - x\right)}} \cdot \color{blue}{\left(-\left(y - z\right)\right)}
\] |
rational.json-simplify-10 [=>]5.8 | \[ x + \frac{-1}{\frac{z - a}{-\left(t - x\right)}} \cdot \color{blue}{\frac{y - z}{-1}}
\] |
rational.json-simplify-55 [=>]5.8 | \[ x + \color{blue}{\frac{\frac{y - z}{-1}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}}
\] |
rational.json-simplify-10 [<=]5.8 | \[ x + \frac{\color{blue}{-\left(y - z\right)}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-12 [=>]5.8 | \[ x + \frac{\color{blue}{0 - \left(y - z\right)}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-45 [=>]5.8 | \[ x + \frac{\color{blue}{z - \left(y - 0\right)}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-5 [=>]5.8 | \[ x + \frac{z - \color{blue}{y}}{\frac{\frac{z - a}{-\left(t - x\right)}}{-1}}
\] |
rational.json-simplify-46 [<=]5.8 | \[ x + \frac{z - y}{\color{blue}{\frac{z - a}{\left(-\left(t - x\right)\right) \cdot -1}}}
\] |
rational.json-simplify-2 [=>]5.8 | \[ x + \frac{z - y}{\frac{z - a}{\color{blue}{-1 \cdot \left(-\left(t - x\right)\right)}}}
\] |
rational.json-simplify-46 [=>]5.8 | \[ x + \frac{z - y}{\color{blue}{\frac{\frac{z - a}{-1}}{-\left(t - x\right)}}}
\] |
rational.json-simplify-10 [<=]5.8 | \[ x + \frac{z - y}{\frac{\color{blue}{-\left(z - a\right)}}{-\left(t - x\right)}}
\] |
rational.json-simplify-12 [=>]5.8 | \[ x + \frac{z - y}{\frac{\color{blue}{0 - \left(z - a\right)}}{-\left(t - x\right)}}
\] |
rational.json-simplify-45 [=>]5.8 | \[ x + \frac{z - y}{\frac{\color{blue}{a - \left(z - 0\right)}}{-\left(t - x\right)}}
\] |
rational.json-simplify-5 [=>]5.8 | \[ x + \frac{z - y}{\frac{a - \color{blue}{z}}{-\left(t - x\right)}}
\] |
rational.json-simplify-12 [=>]5.8 | \[ x + \frac{z - y}{\frac{a - z}{\color{blue}{0 - \left(t - x\right)}}}
\] |
Taylor expanded in y around 0 19.7
Simplified3.7
[Start]19.7 | \[ -1 \cdot \frac{y \cdot \left(x - t\right)}{a - z} + \left(\frac{z \cdot \left(x - t\right)}{a - z} + x\right)
\] |
|---|---|
rational.json-simplify-2 [=>]19.7 | \[ \color{blue}{\frac{y \cdot \left(x - t\right)}{a - z} \cdot -1} + \left(\frac{z \cdot \left(x - t\right)}{a - z} + x\right)
\] |
rational.json-simplify-9 [=>]19.7 | \[ \color{blue}{\left(-\frac{y \cdot \left(x - t\right)}{a - z}\right)} + \left(\frac{z \cdot \left(x - t\right)}{a - z} + x\right)
\] |
rational.json-simplify-2 [=>]19.7 | \[ \left(-\frac{\color{blue}{\left(x - t\right) \cdot y}}{a - z}\right) + \left(\frac{z \cdot \left(x - t\right)}{a - z} + x\right)
\] |
rational.json-simplify-49 [=>]15.3 | \[ \left(-\color{blue}{y \cdot \frac{x - t}{a - z}}\right) + \left(\frac{z \cdot \left(x - t\right)}{a - z} + x\right)
\] |
rational.json-simplify-1 [=>]15.3 | \[ \left(-y \cdot \frac{x - t}{a - z}\right) + \color{blue}{\left(x + \frac{z \cdot \left(x - t\right)}{a - z}\right)}
\] |
rational.json-simplify-49 [=>]3.7 | \[ \left(-y \cdot \frac{x - t}{a - z}\right) + \left(x + \color{blue}{\left(x - t\right) \cdot \frac{z}{a - z}}\right)
\] |
if -1.9999999999999999e-302 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 61.7
Simplified61.7
[Start]61.7 | \[ x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\] |
|---|---|
rational.json-simplify-50 [=>]61.7 | \[ x + \left(y - z\right) \cdot \color{blue}{\frac{-\left(t - x\right)}{z - a}}
\] |
rational.json-simplify-12 [=>]61.7 | \[ x + \left(y - z\right) \cdot \frac{\color{blue}{0 - \left(t - x\right)}}{z - a}
\] |
rational.json-simplify-45 [=>]61.7 | \[ x + \left(y - z\right) \cdot \frac{\color{blue}{x - \left(t - 0\right)}}{z - a}
\] |
rational.json-simplify-5 [=>]61.7 | \[ x + \left(y - z\right) \cdot \frac{x - \color{blue}{t}}{z - a}
\] |
Taylor expanded in x around 0 46.1
Simplified28.1
[Start]46.1 | \[ -1 \cdot \frac{t \cdot \left(y - z\right)}{z - a} + \left(\left(\frac{y}{z - a} + 1\right) - \frac{z}{z - a}\right) \cdot x
\] |
|---|---|
rational.json-simplify-49 [=>]46.9 | \[ -1 \cdot \color{blue}{\left(\left(y - z\right) \cdot \frac{t}{z - a}\right)} + \left(\left(\frac{y}{z - a} + 1\right) - \frac{z}{z - a}\right) \cdot x
\] |
rational.json-simplify-43 [=>]46.9 | \[ \color{blue}{\left(y - z\right) \cdot \left(\frac{t}{z - a} \cdot -1\right)} + \left(\left(\frac{y}{z - a} + 1\right) - \frac{z}{z - a}\right) \cdot x
\] |
rational.json-simplify-9 [=>]46.9 | \[ \left(y - z\right) \cdot \color{blue}{\left(-\frac{t}{z - a}\right)} + \left(\left(\frac{y}{z - a} + 1\right) - \frac{z}{z - a}\right) \cdot x
\] |
rational.json-simplify-2 [=>]46.9 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + \color{blue}{x \cdot \left(\left(\frac{y}{z - a} + 1\right) - \frac{z}{z - a}\right)}
\] |
rational.json-simplify-1 [=>]46.9 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + x \cdot \left(\color{blue}{\left(1 + \frac{y}{z - a}\right)} - \frac{z}{z - a}\right)
\] |
rational.json-simplify-48 [=>]28.1 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + x \cdot \color{blue}{\left(\frac{y}{z - a} + \left(1 - \frac{z}{z - a}\right)\right)}
\] |
Taylor expanded in z around inf 17.9
Simplified6.0
[Start]17.9 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + \frac{\left(y + -1 \cdot a\right) \cdot x}{z}
\] |
|---|---|
rational.json-simplify-2 [=>]17.9 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + \frac{\color{blue}{x \cdot \left(y + -1 \cdot a\right)}}{z}
\] |
rational.json-simplify-49 [=>]6.0 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + \color{blue}{\left(y + -1 \cdot a\right) \cdot \frac{x}{z}}
\] |
rational.json-simplify-2 [=>]6.0 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + \left(y + \color{blue}{a \cdot -1}\right) \cdot \frac{x}{z}
\] |
rational.json-simplify-9 [=>]6.0 | \[ \left(y - z\right) \cdot \left(-\frac{t}{z - a}\right) + \left(y + \color{blue}{\left(-a\right)}\right) \cdot \frac{x}{z}
\] |
if 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 7.0
Simplified7.0
[Start]7.0 | \[ x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\] |
|---|---|
rational.json-simplify-50 [=>]7.0 | \[ x + \left(y - z\right) \cdot \color{blue}{\frac{-\left(t - x\right)}{z - a}}
\] |
rational.json-simplify-12 [=>]7.0 | \[ x + \left(y - z\right) \cdot \frac{\color{blue}{0 - \left(t - x\right)}}{z - a}
\] |
rational.json-simplify-45 [=>]7.0 | \[ x + \left(y - z\right) \cdot \frac{\color{blue}{x - \left(t - 0\right)}}{z - a}
\] |
rational.json-simplify-5 [=>]7.0 | \[ x + \left(y - z\right) \cdot \frac{x - \color{blue}{t}}{z - a}
\] |
Applied egg-rr4.1
Final simplification4.2
| Alternative 1 | |
|---|---|
| Error | 4.3 |
| Cost | 3916 |
| Alternative 2 | |
|---|---|
| Error | 8.8 |
| Cost | 3532 |
| Alternative 3 | |
|---|---|
| Error | 4.6 |
| Cost | 3016 |
| Alternative 4 | |
|---|---|
| Error | 9.5 |
| Cost | 2760 |
| Alternative 5 | |
|---|---|
| Error | 7.0 |
| Cost | 2760 |
| Alternative 6 | |
|---|---|
| Error | 9.5 |
| Cost | 2632 |
| Alternative 7 | |
|---|---|
| Error | 33.8 |
| Cost | 1632 |
| Alternative 8 | |
|---|---|
| Error | 24.9 |
| Cost | 1632 |
| Alternative 9 | |
|---|---|
| Error | 30.4 |
| Cost | 1500 |
| Alternative 10 | |
|---|---|
| Error | 30.6 |
| Cost | 1500 |
| Alternative 11 | |
|---|---|
| Error | 30.6 |
| Cost | 1500 |
| Alternative 12 | |
|---|---|
| Error | 24.2 |
| Cost | 1500 |
| Alternative 13 | |
|---|---|
| Error | 33.5 |
| Cost | 1240 |
| Alternative 14 | |
|---|---|
| Error | 25.5 |
| Cost | 1236 |
| Alternative 15 | |
|---|---|
| Error | 24.9 |
| Cost | 1236 |
| Alternative 16 | |
|---|---|
| Error | 22.0 |
| Cost | 1232 |
| Alternative 17 | |
|---|---|
| Error | 18.2 |
| Cost | 1232 |
| Alternative 18 | |
|---|---|
| Error | 30.6 |
| Cost | 1040 |
| Alternative 19 | |
|---|---|
| Error | 32.6 |
| Cost | 976 |
| Alternative 20 | |
|---|---|
| Error | 32.0 |
| Cost | 976 |
| Alternative 21 | |
|---|---|
| Error | 32.6 |
| Cost | 976 |
| Alternative 22 | |
|---|---|
| Error | 18.5 |
| Cost | 968 |
| Alternative 23 | |
|---|---|
| Error | 36.0 |
| Cost | 844 |
| Alternative 24 | |
|---|---|
| Error | 37.0 |
| Cost | 712 |
| Alternative 25 | |
|---|---|
| Error | 36.7 |
| Cost | 328 |
| Alternative 26 | |
|---|---|
| Error | 45.8 |
| Cost | 64 |
herbie shell --seed 2023064
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))