learn-physics-0.5: Haskell code for learning physics

Physics.Learn.CoordinateSystem

Description

A module for working with coordinate systems.

Synopsis

# Documentation

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

Constructors

 CoordinateSystem FieldstoPosition :: (Double, Double, Double) -> Positiona map from coordinates into spacefromPosition :: Position -> (Double, Double, Double)a map from space into coordinates

The standard Cartesian coordinate system

The standard cylindrical coordinate system

The standard spherical coordinate system

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.