Skip to content

Scala implementation of 1- and 2-dimensional Finite Difference Methods for numerical integration.

Notifications You must be signed in to change notification settings

ZackBarry/FiniteDifferences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FiniteDifferences

This project was an opportunity to merge my introduction to Scala with my graduate research in Finite Difference methods for Partial Differential Equations. There are two packages implemented so far:

  1. com.ztbarry.finitedifferences - 1D mesh implementations of Simpson's Rule and the Trapezoidal Rule. Contains the following:

    a. Difference1D, a trait that handles integral approximation and also approximates the order of convergence of a numerical method.

    b. SimpsonsRule, extends Difference1D by defining the numerical method to be Simpson's Rule.

    c. TrapezoidalRule, extends Difference1D by defining the numerical method to be the Trapezoidal Rule.

  2. com.ztbarry.nicefunctions -

    a. Polynomial, a class that constructs a polynomial given coefficient values. Satisfies the requirements for evaluating a function's integral with the methods listed above.

I wrote a few blog posts to document my progress:

About

Scala implementation of 1- and 2-dimensional Finite Difference Methods for numerical integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages