2 \cdot \cos \left(\frac{2 \cdot \pi}{3} + \frac{\cos^{-1} \left(\frac{-g}{h}\right)}{3}\right)(FPCore (g h) :precision binary64 (* 2.0 (cos (+ (/ (* 2.0 PI) 3.0) (/ (acos (/ (- g) h)) 3.0)))))
double code(double g, double h) {
return 2.0 * cos(((2.0 * ((double) M_PI)) / 3.0) + (acos(-g / h) / 3.0));
}
Please include this information when filing a bug report:
herbie shell --seed 2021096
(FPCore (g h)
:name "2-ancestry mixing, negative discriminant"
:precision binary64
(* 2.0 (cos (+ (/ (* 2.0 PI) 3.0) (/ (acos (/ (- g) h)) 3.0)))))
| ...src/sampling.rkt:193:4: arity mismatch; the expected number of arguments does not match the given number expected: 1 given: 0 | L | C | |
|---|---|---|---|
| loop | /data/pavpan/nightlies/herbie/test-filtered-on-examples/src/points.rkt | 100 | 4 |
| prepare-points | /data/pavpan/nightlies/herbie/test-filtered-on-examples/src/points.rkt | 131 | 0 |
| run-improve | /data/pavpan/nightlies/herbie/test-filtered-on-examples/src/mainloop.rkt | 395 | 0 |
| (unnamed) | /data/pavpan/nightlies/herbie/test-filtered-on-examples/src/sandbox.rkt | 54 | 6 |
| run | /opt/racket-7.9/share/pkgs/profile-lib/main.rkt | 39 | 2 |
| profile-thunk | /opt/racket-7.9/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /opt/racket-7.9/collects/racket/engine.rkt | 42 | 24 |