Skip to content

elireisman/auto-diff-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Differentiation

What?

I read this about automatic differentiation, and thought it would be fun to play around with the idea in Haskell. I was right, it was fun.

I used Parsec to parse expressions, including variables bound to scalar values. Those expressions are then evaluated or differentiated with respect to one of the variables, like in the article. I used HUnit to write some unit tests. I used cabal to build and test the project.

TODOs:

  • More tests, this thing can't possibly work
  • Ditch the <var>@<scalar> syntax and accept a range of values to bind to each variable
  • Graph the resulting curves
  • Learn more Haskell

How

Run the automatic differentiation unit tests with cabal test, or the stub app using the expression parser with cabal run.

About

Play around with automatic differentiation in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published