Copyright | (c) Scott N. Walck 2023 |
---|---|
License | BSD3 (see LICENSE) |
Maintainer | Scott N. Walck <walck@lvc.edu> |
Stability | stable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Code from chapter 22 of the book Learn Physics with Functional Programming
Documentation
type Displacement = Vec Source #
displacement :: Position -> Position -> Displacement Source #
shiftPosition :: Displacement -> Position -> Position Source #
type ScalarField = Position -> R Source #
xSF :: ScalarField Source #
rSF :: ScalarField Source #
ySF :: ScalarField Source #
type VectorField = Position -> Vec Source #
sHat :: VectorField Source #
phiHat :: VectorField Source #
rHat :: VectorField Source #
xHat :: VectorField Source #
yHat :: VectorField Source #
zHat :: VectorField Source #
rVF :: VectorField Source #
addScalarFields :: [ScalarField] -> ScalarField Source #
addVectorFields :: [VectorField] -> VectorField Source #
thetaHat3D :: IO () Source #
phiHatGrad :: IO () Source #