learn-physics-0.2: Haskell code for learning physics

Stabilityexperimental
MaintainerScott N. Walck <walck@lvc.edu>
Safe HaskellTrustworthy

Physics.Learn.CoordinateSystem

Description

A module for working with coordinate systems.

Synopsis

Documentation

data CoordinateSystem Source

Specification of a coordinate system requires a map from coordinates into space, and a map from space into coordinates.

Constructors

CoordinateSystem 

Fields

toPosition :: (Double, Double, Double) -> Position

a map from coordinates into space

fromPosition :: Position -> (Double, Double, Double)

a map from space into coordinates

standardCartesian :: CoordinateSystemSource

The standard Cartesian coordinate system

standardCylindrical :: CoordinateSystemSource

The standard cylindrical coordinate system

standardSpherical :: CoordinateSystemSource

The standard spherical coordinate system

newCoordinateSystemSource

Arguments

:: ((Double, Double, Double) -> (Double, Double, Double))

(x',y',z') = f(x,y,z)

-> ((Double, Double, Double) -> (Double, Double, Double))

(x,y,z) = g(x',y',z')

-> CoordinateSystem

old coordinate system

-> CoordinateSystem 

Define a new coordinate system in terms of an existing one. First parameter is a map from old coordinates to new coordinates. Second parameter is the inverse map from new coordinates to old coordinates.