We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d5e090 commit e76e90eCopy full SHA for e76e90e
src/ADNLPProblems/trig.jl
@@ -8,7 +8,7 @@ function trig(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) where
8
9
for j = max(1, i - 2):min(n, i + 2)
10
aij = 5 * (1 + mod(i, 5) + mod(j, 5))
11
- bij = (i + j) / 10
+ bij = (i + j) // 10
12
s += aij * sin(x[j]) + bij * cos(x[j])
13
end
14
0 commit comments