LPFP-core-1.1.1: Code for the book Learn Physics with Functional Programming
Copyright(c) Scott N. Walck 2023
LicenseBSD3 (see LICENSE)
MaintainerScott N. Walck <walck@lvc.edu>
Stabilitystable
Safe HaskellSafe-Inferred
LanguageHaskell2010

LPFPCore.Maxwell

Description

Code from chapter 29 of the book Learn Physics with Functional Programming

Documentation

data StateFDTD Source #

Constructors

StateFDTD 

Fields

Instances

Instances details
Show StateFDTD Source # 
Instance details

Defined in LPFPCore.Maxwell

lookupAZ :: Ord k => k -> Map k R -> R Source #

partialX :: R -> Map (Int, Int, Int) R -> (Int, Int, Int) -> R Source #

partialY :: R -> Map (Int, Int, Int) R -> (Int, Int, Int) -> R Source #

partialZ :: R -> Map (Int, Int, Int) R -> (Int, Int, Int) -> R Source #

updateBOneLoc :: R -> StateFDTD -> (Int, Int, Int) -> R -> R Source #

getAverage :: (Int, Int, Int) -> Map (Int, Int, Int) R -> Vec Source #