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.ElectricField

Description

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

Documentation

linSpaced :: Int -> R -> R -> [R] Source #

data ParamCube Source #

Constructors

PC 

Fields

type Field a = Position -> a Source #

class AbstractVector a where Source #

Methods

zeroVector :: a Source #

add :: a -> a -> a Source #

scale :: R -> a -> a Source #

sumG :: AbstractVector a => [a] -> a Source #