Skip to content

Commit ce3d597

Browse files
committed
Format
1 parent a1a17a6 commit ce3d597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/nonlinearsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ sys = structural_simplify(ns; conservative = true)
309309

310310
# system that contains a chain of observed variables when simplified
311311
@variables x y z
312-
eqs = [0 ~ x^2 + 2*z + y, z ~ y, y ~ x] # analytical solution x = y = z = 0 or -3
312+
eqs = [0 ~ x^2 + 2z + y, z ~ y, y ~ x] # analytical solution x = y = z = 0 or -3
313313
@mtkbuild ns = NonlinearSystem(eqs) # solve for y with observed chain z -> x -> y
314-
@test isequal(expand.(calculate_jacobian(ns)), [3//2 + y;;])
314+
@test isequal(expand.(calculate_jacobian(ns)), [3 // 2 + y;;])
315315
@test isequal(calculate_hessian(ns), [[1;;]])
316316
prob = NonlinearProblem(ns, unknowns(ns) .=> -4.0) # give guess < -3 to reach -3
317317
sol = solve(prob, NewtonRaphson())

0 commit comments

Comments
 (0)