Code from Learn Physics with Functional Programming

Modules

ChapterModule
4DescribingMotion.hs
5Lists.hs
10SimpleVec.hs
11PresentationPlotting.hs
14Newton2.hs
15Mechanics1D.hs
16, 17, 18Mechanics3D.hs
19MultipleObjects.hs
20MOExamples.hs
21Electricity.hs
22CoordinateSystems.hs
23Geometry.hs
needed in 24Integrals.hs
24Charge.hs
25ElectricField.hs
26Current.hs
27MagneticField.hs
28Lorentz.hs
29Maxwell.hs

Main programs

ProgramChapter
hello.hs12
MakeTrajectoryGraph.hs12
GlossDisplay.hs13
GlossDisplay2.hs13
GlossAnimate.hs13
GlossSimulate.hs13
GlossSimulate2.hs13
VisDisplay.hs13
VisDisplay2.hs13
VisDisplay3.hs13
VisAnimate.hs13
VisSimulate.hs13
GlossHalley.hs17
GlossProjectile.hs17
VisProjectile.hs17
Mech3Proton.hs17
GlossProton.hs18
VisTwoSprings.hs20
GlossBilliard.hs20
GlossWave.hs20
GnuplotWave.hs20
GlossBilliardAnimate.hs20
ProtonEB.hs28
Hydrogen.hs28
ElectricWave.hs29

All code: LPFP.tar.gz

Hackage packages

This code is made available under a BSD3 license.