Attempt to add physics simulation as an example of LazyPPL
See the original file at Sam Staton's OPLSS course [link]
See LazyPPL here
The system uses Haskell stack. You need to install stack first if you want to use the system in the standard way.
To build, type
stack build
.
This may take some time (>1 hour) if it is your first time ever using stack.
To run, type
stack run
or stack run physics-exe
The original OPLSS sample code fails to compile in macOS (at least on my labtop). A similar problem is seen here. LazyPPL switched to use matplotlib in its development. A similar problem is also seen in other haskel probablistic programming tutorials (like this one).