
(FPCore (x y z) :precision binary64 (- (* x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
return (x * cos(y)) - (z * sin(y));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
return (x * Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z): return (x * math.cos(y)) - (z * math.sin(y))
function code(x, y, z) return Float64(Float64(x * cos(y)) - Float64(z * sin(y))) end
function tmp = code(x, y, z) tmp = (x * cos(y)) - (z * sin(y)); end
code[x_, y_, z_] := N[(N[(x * N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x \cdot \cos y - z \cdot \sin y
Please include this information when filing a bug report:
herbie shell --seed 2023244
(FPCore (x y z)
:name "Diagrams.ThreeD.Transform:aboutX from diagrams-lib-1.3.0.3, A"
:precision binary64
(- (* x (cos y)) (* z (sin y))))
| _arb-ptr: contract violation expected: _arb? given: 3 | L | C | |
|---|---|---|---|
| _arb-ptr | unknown | ||
| (unnamed) | /home/nightlies/herbie/arb-support/src/arb.rkt | 154 | 16 |
| f | /home/nightlies/herbie/arb-support/src/programs.rkt | 187 | 2 |
| (unnamed) | /home/nightlies/herbie/arb-support/src/ground-truth.rkt | 23 | 2 |
| arb-eval | /home/nightlies/herbie/arb-support/src/sampling.rkt | 126 | 0 |
| f | /home/nightlies/herbie/arb-support/src/ground-truth.rkt | 46 | 2 |
| compute-local-errors | /home/nightlies/herbie/arb-support/src/core/localize.rkt | 38 | 0 |
| batch-localize-error | /home/nightlies/herbie/arb-support/src/core/localize.rkt | 26 | 0 |
| localize! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 123 | 0 |
| run-iter! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 276 | 0 |
| mutate! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 395 | 0 |
| run-improve! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 353 | 0 |
| get-alternatives/report | /home/nightlies/herbie/arb-support/src/sandbox.rkt | 148 | 0 |
| (unnamed) | /home/nightlies/herbie/arb-support/src/sandbox.rkt | 247 | 6 |
| (unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |