QuantEcon / SimpleDifferentialOperators.jl

Library for simple upwind finite differences
MIT License
12 stars 2 forks source link

KFE Absorbing Barrier Examples #203

Open jlperla opened 5 years ago

jlperla commented 5 years ago

See #202

Time dependent threshold

jlperla commented 5 years ago

Maybe install with

conda install -c conda-forge ffmpeg 
jlperla commented 5 years ago

@chiyahn

Here is the approach to animate: First, do that conda operation to install ffmpeg

Then,

using Plots
x = 1:5
show_every = 5
@gif for i=1:100
    plot(x, x .+ i/100 )
end every show_every

Basically, create that for loop to go through the solution to the differential equation calling plot, and the @gif will animate it.