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 28 of the book Learn Physics with Functional Programming
Documentation
data ParticleFieldState Source #
ParticleFieldState | |
|
Instances
HasTime ParticleFieldState Source # | |
Defined in LPFPCore.Lorentz timeOf :: ParticleFieldState -> Time Source # | |
Diff ParticleFieldState DParticleFieldState Source # | |
Defined in LPFPCore.Lorentz shift :: R -> DParticleFieldState -> ParticleFieldState -> ParticleFieldState Source # |
data DParticleFieldState Source #
Instances
RealVectorSpace DParticleFieldState Source # | |
Defined in LPFPCore.Lorentz | |
Diff ParticleFieldState DParticleFieldState Source # | |
Defined in LPFPCore.Lorentz shift :: R -> DParticleFieldState -> ParticleFieldState -> ParticleFieldState Source # |
lorentzForce :: ParticleFieldState -> Vec Source #
pfsUpdate :: R -> ParticleFieldState -> ParticleFieldState Source #