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

Description

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

Documentation

data Position Source #

Constructors

Cart R R R 

Instances

Instances details
Show Position Source # 
Instance details

Defined in LPFPCore.CoordinateSystems

cart :: R -> R -> R -> Position Source #

cyl :: R -> R -> R -> Position Source #

sph :: R -> R -> R -> Position Source #

fst3 :: (a, b, c) -> a Source #

snd3 :: (a, b, c) -> b Source #

thd3 :: (a, b, c) -> c Source #

sfTable :: ((R, R) -> Position) -> [R] -> [R] -> ScalarField -> Table Int Source #

magRad :: (R, R) -> (R, R) Source #