\[\cos \left(x + \varepsilon\right) - \cos x \]
(FPCore (x eps) :precision binary64 (- (cos (+ x eps)) (cos x)))
double code(double x, double eps) {
	return cos((x + eps)) - cos(x);
}
real(8) function code(x, eps)
    real(8), intent (in) :: x
    real(8), intent (in) :: eps
    code = cos((x + eps)) - cos(x)
end function
public static double code(double x, double eps) {
	return Math.cos((x + eps)) - Math.cos(x);
}
def code(x, eps):
	return math.cos((x + eps)) - math.cos(x)
function code(x, eps)
	return Float64(cos(Float64(x + eps)) - cos(x))
end
function tmp = code(x, eps)
	tmp = cos((x + eps)) - cos(x);
end
code[x_, eps_] := N[(N[Cos[N[(x + eps), $MachinePrecision]], $MachinePrecision] - N[Cos[x], $MachinePrecision]), $MachinePrecision]
\cos \left(x + \varepsilon\right) - \cos x

Reproduce

Please include this information when filing a bug report:

herbie shell --seed 2022349 
(FPCore (x eps)
  :name "2cos (problem 3.3.5)"
  :precision binary64
  (- (cos (+ x eps)) (cos x)))

Backtrace

error writing to stream port system error: Broken pipe; errno=32LC
writeln/usr/share/racket/collects/racket/private/misc.rkt1564
run-egglog/home/nightlies/nightlies/herbie/oflatt-egglog-ctx/src/egglog/run-egglog.rkt13010
run-simplify-input/home/nightlies/nightlies/herbie/oflatt-egglog-ctx/src/core/simplify.rkt740
simplify-batch/home/nightlies/nightlies/herbie/oflatt-egglog-ctx/src/core/simplify.rkt510
(unnamed)/usr/share/racket/collects/racket/contract/private/arrow-higher-order.rkt37933
get-swaps/home/nightlies/nightlies/herbie/oflatt-egglog-ctx/src/symmetry.rkt60
connected-components/home/nightlies/nightlies/herbie/oflatt-egglog-ctx/src/symmetry.rkt200
run-improve!/home/nightlies/nightlies/herbie/oflatt-egglog-ctx/src/mainloop.rkt3200
(unnamed)/home/nightlies/nightlies/herbie/oflatt-egglog-ctx/src/sandbox.rkt556
(unnamed)/usr/share/racket/pkgs/profile-lib/main.rkt4010
profile-thunk/usr/share/racket/pkgs/profile-lib/main.rkt90
(unnamed)/usr/share/racket/collects/racket/engine.rkt4224