`l(xu) = sum(sqrt(i^2 + 1) for i in xu)` `xu = Vector(1:6)` `result = DiffResults.HessianResult(xu)` `result = ForwardDiff.hessian!(result, l, xu)` will give `InexactError: Int64(Int64, 22.11744686954993)` Problem will be solve if `xu = Vector{Float64}(1:6)`
l(xu) = sum(sqrt(i^2 + 1) for i in xu)xu = Vector(1:6)result = DiffResults.HessianResult(xu)result = ForwardDiff.hessian!(result, l, xu)will giveInexactError: Int64(Int64, 22.11744686954993)Problem will be solve if
xu = Vector{Float64}(1:6)