
(FPCore (x) :precision binary64 (- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
double code(double x) {
return 1.0 - sqrt((0.5 * (1.0 + (1.0 / hypot(1.0, x)))));
}
public static double code(double x) {
return 1.0 - Math.sqrt((0.5 * (1.0 + (1.0 / Math.hypot(1.0, x)))));
}
def code(x): return 1.0 - math.sqrt((0.5 * (1.0 + (1.0 / math.hypot(1.0, x)))))
function code(x) return Float64(1.0 - sqrt(Float64(0.5 * Float64(1.0 + Float64(1.0 / hypot(1.0, x)))))) end
function tmp = code(x) tmp = 1.0 - sqrt((0.5 * (1.0 + (1.0 / hypot(1.0, x))))); end
code[x_] := N[(1.0 - N[Sqrt[N[(0.5 * N[(1.0 + N[(1.0 / N[Sqrt[1.0 ^ 2 + x ^ 2], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \sqrt{0.5 \cdot \left(1 + \frac{1}{\mathsf{hypot}\left(1, x\right)}\right)}
\end{array}
herbie shell --seed 2024135
(FPCore (x)
:name "Given's Rotation SVD example, simplified"
:precision binary64
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
Please file a bug report with this information.
| compile-specs: Unknown operator fma | L | C | |
|---|---|---|---|
| make-compiler | /home/nightlies/herbie/separate-sampling/src/correct-round.rkt | 117 | 0 |
| make-search-func | /home/nightlies/herbie/separate-sampling/src/ground-truth.rkt | 28 | 0 |
| eval-progs-real | /home/nightlies/herbie/separate-sampling/src/ground-truth.rkt | 81 | 0 |
| compute-local-errors | /home/nightlies/herbie/separate-sampling/src/core/localize.rkt | 70 | 0 |
| batch-localize-both | /home/nightlies/herbie/separate-sampling/src/core/localize.rkt | 37 | 0 |
| localize! | /home/nightlies/herbie/separate-sampling/src/mainloop.rkt | 201 | 0 |
| run-iter! | /home/nightlies/herbie/separate-sampling/src/mainloop.rkt | 73 | 0 |
| mutate! | /home/nightlies/herbie/separate-sampling/src/mainloop.rkt | 65 | 0 |
| run-improve! | /home/nightlies/herbie/separate-sampling/src/mainloop.rkt | 51 | 0 |
| get-alternatives/report | /home/nightlies/herbie/separate-sampling/src/sandbox.rkt | 171 | 0 |
| (unnamed) | /home/nightlies/herbie/separate-sampling/src/sandbox.rkt | 272 | 6 |
| (unnamed) | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/engine.rkt | 42 | 24 |