File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
steady_state_network_1 = @reaction_network begin
17
17
(k1, k2), ∅ ↔ X1
18
18
(k3, k4), ∅ ↔ 3 X2
19
- (k5, k6), ∅ ↔ X3 + X4
19
+ (k5, k6* X1 ), ∅ ↔ X3
20
20
end
21
21
22
22
# Creates NonlinearProblem.
31
31
# Tests solutions are correct.
32
32
@test isapprox (sol1[1 ], p[1 ] / p[2 ]; atol= 1e-10 )
33
33
@test isapprox (sol1[2 ]^ 3 / factorial (3 ), p[3 ] / p[4 ]; atol= 1e-10 )
34
- @test isapprox (sol1[3 ] * sol1[ 4 ], p[ 5 ] / p[6 ]; atol= 1e-10 )
34
+ @test isapprox (sol1[3 ], (p[ 5 ] * p[ 2 ]) / ( p[6 ] * p[ 1 ]) ; atol= 1e-10 )
35
35
@test isapprox (sol2[1 ], p[1 ] / p[2 ]; atol= 1e-10 )
36
36
@test isapprox (sol2[2 ]^ 3 / factorial (3 ), p[3 ] / p[4 ]; atol= 1e-10 )
37
- @test isapprox (sol2[3 ] * sol2[ 4 ], p[ 5 ] / p[6 ]; atol= 1e-10 )
37
+ @test isapprox (sol2[3 ], (p[ 5 ] * p[ 2 ]) / ( p[6 ] * p[ 1 ]) ; atol= 1e-10 )
38
38
end
39
39
40
40
# Creates a system with multiple steady states.
You can’t perform that action at this time.
0 commit comments