Skip to content

Commit

Permalink
Update monte_carlo.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Oct 25, 2017
1 parent e72a1a8 commit b2ca773
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/src/features/monte_carlo.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ and use that for calculating the trajectory:

```julia
function prob_func(prob,i,repeat)
prob.u0 = rand()*prob.u0
prob
ODEProblem(prob.f,rand()*prob.u0,prob.tspan)
end
```

Expand Down Expand Up @@ -431,8 +430,7 @@ Our `prob_func` will simply randomize the initial condition:
prob = ODEProblem((t,u)->1.01u,0.5,(0.0,1.0))

function prob_func(prob,i,repeat)
prob.u0 = rand()*prob.u0
prob
ODEProblem(prob.f,rand()*prob.u0,prob.tspan)
end
```

Expand Down

0 comments on commit b2ca773

Please sign in to comment.