Alternative 1 | |
---|---|
Error | 0.0 |
Cost | 14016 |
\[\frac{\frac{1 - x}{\frac{\sqrt{t}}{e^{-0.5 \cdot \left(\left(1 - x\right) \cdot \frac{1 - x}{t}\right)}}}}{t}
\]
(FPCore (x t) :precision binary64 (/ (/ (* (- 1.0 x) (exp (* (- 0.5) (/ (* (- 1.0 x) (- 1.0 x)) t)))) (sqrt t)) t))
(FPCore (x t) :precision binary64 (/ (/ (- 1.0 x) (/ (sqrt t) (pow E (/ (* (- 1.0 x) (- 1.0 x)) (/ t -0.5))))) t))
double code(double x, double t) { return (((1.0 - x) * exp((-0.5 * (((1.0 - x) * (1.0 - x)) / t)))) / sqrt(t)) / t; }
double code(double x, double t) { return ((1.0 - x) / (sqrt(t) / pow(((double) M_E), (((1.0 - x) * (1.0 - x)) / (t / -0.5))))) / t; }
public static double code(double x, double t) { return (((1.0 - x) * Math.exp((-0.5 * (((1.0 - x) * (1.0 - x)) / t)))) / Math.sqrt(t)) / t; }
public static double code(double x, double t) { return ((1.0 - x) / (Math.sqrt(t) / Math.pow(Math.E, (((1.0 - x) * (1.0 - x)) / (t / -0.5))))) / t; }
def code(x, t): return (((1.0 - x) * math.exp((-0.5 * (((1.0 - x) * (1.0 - x)) / t)))) / math.sqrt(t)) / t
def code(x, t): return ((1.0 - x) / (math.sqrt(t) / math.pow(math.e, (((1.0 - x) * (1.0 - x)) / (t / -0.5))))) / t
function code(x, t) return Float64(Float64(Float64(Float64(1.0 - x) * exp(Float64(Float64(-0.5) * Float64(Float64(Float64(1.0 - x) * Float64(1.0 - x)) / t)))) / sqrt(t)) / t) end
function code(x, t) return Float64(Float64(Float64(1.0 - x) / Float64(sqrt(t) / (exp(1) ^ Float64(Float64(Float64(1.0 - x) * Float64(1.0 - x)) / Float64(t / -0.5))))) / t) end
function tmp = code(x, t) tmp = (((1.0 - x) * exp((-0.5 * (((1.0 - x) * (1.0 - x)) / t)))) / sqrt(t)) / t; end
function tmp = code(x, t) tmp = ((1.0 - x) / (sqrt(t) / (2.71828182845904523536 ^ (((1.0 - x) * (1.0 - x)) / (t / -0.5))))) / t; end
code[x_, t_] := N[(N[(N[(N[(1.0 - x), $MachinePrecision] * N[Exp[N[((-0.5) * N[(N[(N[(1.0 - x), $MachinePrecision] * N[(1.0 - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[Sqrt[t], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]
code[x_, t_] := N[(N[(N[(1.0 - x), $MachinePrecision] / N[(N[Sqrt[t], $MachinePrecision] / N[Power[E, N[(N[(N[(1.0 - x), $MachinePrecision] * N[(1.0 - x), $MachinePrecision]), $MachinePrecision] / N[(t / -0.5), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]
\frac{\frac{\left(1 - x\right) \cdot e^{\left(-0.5\right) \cdot \frac{\left(1 - x\right) \cdot \left(1 - x\right)}{t}}}{\sqrt{t}}}{t}
\frac{\frac{1 - x}{\frac{\sqrt{t}}{{e}^{\left(\frac{\left(1 - x\right) \cdot \left(1 - x\right)}{\frac{t}{-0.5}}\right)}}}}{t}
Results
Initial program 0.0
Simplified0.0
[Start]0.0 | \[ \frac{\frac{\left(1 - x\right) \cdot e^{\left(-0.5\right) \cdot \frac{\left(1 - x\right) \cdot \left(1 - x\right)}{t}}}{\sqrt{t}}}{t}
\] |
---|---|
associate-/l* [=>]0.0 | \[ \frac{\color{blue}{\frac{1 - x}{\frac{\sqrt{t}}{e^{\left(-0.5\right) \cdot \frac{\left(1 - x\right) \cdot \left(1 - x\right)}{t}}}}}}{t}
\] |
metadata-eval [=>]0.0 | \[ \frac{\frac{1 - x}{\frac{\sqrt{t}}{e^{\color{blue}{-0.5} \cdot \frac{\left(1 - x\right) \cdot \left(1 - x\right)}{t}}}}}{t}
\] |
associate-*l/ [<=]0.0 | \[ \frac{\frac{1 - x}{\frac{\sqrt{t}}{e^{-0.5 \cdot \color{blue}{\left(\frac{1 - x}{t} \cdot \left(1 - x\right)\right)}}}}}{t}
\] |
Applied egg-rr0.0
Simplified0.0
[Start]0.0 | \[ \frac{\frac{1 - x}{\frac{\sqrt{t}}{{e}^{\left(\frac{{\left(1 - x\right)}^{2}}{t} \cdot -0.5\right)}}}}{t}
\] |
---|---|
associate-*l/ [=>]0.0 | \[ \frac{\frac{1 - x}{\frac{\sqrt{t}}{{e}^{\color{blue}{\left(\frac{{\left(1 - x\right)}^{2} \cdot -0.5}{t}\right)}}}}}{t}
\] |
associate-/l* [=>]0.0 | \[ \frac{\frac{1 - x}{\frac{\sqrt{t}}{{e}^{\color{blue}{\left(\frac{{\left(1 - x\right)}^{2}}{\frac{t}{-0.5}}\right)}}}}}{t}
\] |
Applied egg-rr0.0
Final simplification0.0
Alternative 1 | |
---|---|
Error | 0.0 |
Cost | 14016 |
Alternative 2 | |
---|---|
Error | 0.0 |
Cost | 14016 |
Alternative 3 | |
---|---|
Error | 1.3 |
Cost | 13312 |
Alternative 4 | |
---|---|
Error | 62.8 |
Cost | 6784 |
Alternative 5 | |
---|---|
Error | 62.9 |
Cost | 6720 |
herbie shell --seed 1
(FPCore (x t)
:name "((1 - x) * exp((-0.5 * (((1 - x) * (1 - x)) / t)))) / sqrt(t) / t"
:precision binary64
:pre (and (and (<= 0.8 x) (<= x 1.0)) (and (<= 0.0 t) (<= t 30.0)))
(/ (/ (* (- 1.0 x) (exp (* (- 0.5) (/ (* (- 1.0 x) (- 1.0 x)) t)))) (sqrt t)) t))