# Showing the algorithm used in DifferentialEquations.jl

**URL:** <https://discourse.julialang.org/t/showing-the-algorithm-used-in-differentialequations-jl/36155>\
**Category:** General Usage\
**Created:** [March 18, 2020, 6:25pm UTC](https://discourse.julialang.org/t/showing-the-algorithm-used-in-differentialequations-jl/36155 "2020-03-18T18:25:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [March 18, 2020, 6:25pm UTC](https://discourse.julialang.org/t/showing-the-algorithm-used-in-differentialequations-jl/36155/1 "2020-03-18T18:25:59Z")

</div>

Consider a simple code to solve an ODE by `DifferentialEquations.jl` shown in the [documentation](https://docs.juliadiffeq.org/stable/tutorials/ode_example/#Example-1-:-Solving-Scalar-Equations-1):

```julia
using DifferentialEquations
f(u,p,t) = 1.01*u
u0 = 1/2
tspan = (0.0,1.0)
prob = ODEProblem(f,u0,tspan)
sol = solve(prob)

```

In the last line, `solve` seems to pick an appropriate algorithm for the given problem and use it. Is there a way to show which algorithm is picked by `solve`?

We can choose a specific algorithm at will by changing the line to something like

```julia
sol = solve(prob, Tsit5())

```

where `Tsit5()` indicates the algorithm to use. But I would like to know which algorithm was picked by `solve` when the algorithm was not specified by the user, because for my problem the default algorithm picked by `solve` seems to perform pretty well.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [March 18, 2020, 6:30pm UTC](https://discourse.julialang.org/t/showing-the-algorithm-used-in-differentialequations-jl/36155/2 "2020-03-18T18:30:42Z")

</div>

`sol.alg`.
