learn-physics-0.6.3: Haskell code for learning physics

Copyright(c) Scott N. Walck 2012-2018
LicenseBSD3 (see LICENSE)
MaintainerScott N. Walck <walck@lvc.edu>
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell98

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

standardCartesian :: CoordinateSystem Source #

The standard Cartesian coordinate system

standardCylindrical :: CoordinateSystem Source #

The standard cylindrical coordinate system

standardSpherical :: CoordinateSystem Source #

The standard spherical coordinate system

newCoordinateSystem Source #

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.