learn-physics-0.6.3: Haskell code for learning physics

Physics.Learn.Curve

Contents

Description

This module contains functions for working with Curves and line integrals along Curves.

Synopsis

# Curves

data Curve Source #

Curve is a parametrized function into three-space, an initial limit, and a final limit.

Constructors

 Curve FieldscurveFunc :: Double -> Positionfunction from one parameter into spacestartingCurveParam :: Doublestarting value of the parameterendingCurveParam :: Doubleending value of the parameter

Reparametrize a curve from 0 to 1.

Arguments

 :: Curve go first along this curve -> Curve then along this curve -> Curve to produce this new curve

Concatenate two curves.

Concatenate a list of curves. Parametrizes curves equally.

Reverse a curve.

Arguments

 :: Curve the curve -> Double the parameter -> Position position of the point on the curve at that parameter

Evaluate the position of a curve at a parameter.

Arguments

 :: Displacement amount to shift -> Curve original curve -> Curve shifted curve

Shift a curve by a displacement.

Arguments

 :: Position starting position -> Position ending position -> Curve straight-line curve

The straight-line curve from one position to another.

# Line Integrals

Arguments

 :: (InnerSpace v, Scalar v ~ Double) => Int number of intervals -> Field v scalar or vector field -> Curve curve to integrate over -> v scalar or vector result

Calculates integral f dl over curve, where dl is a scalar line element.

Arguments

 :: Int number of half-intervals (one less than the number of function evaluations) -> VectorField vector field -> Curve curve to integrate over -> Double scalar result

A dotted line integral. Convenience function for compositeSimpsonDottedLineIntegral.

Arguments

 :: Int number of half-intervals (one less than the number of function evaluations) -> VectorField vector field -> Curve curve to integrate over -> Vec vector result

Calculates integral vf x dl over curve. Convenience function for compositeSimpsonCrossedLineIntegral.

Arguments

 :: Int number of intervals -> VectorField vector field -> Curve curve to integrate over -> Double scalar result

A dotted line integral, performed in an unsophisticated way.

Arguments

 :: Int number of intervals -> VectorField vector field -> Curve curve to integrate over -> Vec vector result

Calculates integral vf x dl over curve in an unsophisticated way.

Arguments

 :: Int number of half-intervals (one less than the number of function evaluations) -> VectorField vector field -> Curve curve to integrate over -> Double scalar result

Quadratic approximation to vector field. Quadratic approximation to curve. Composite strategy. Dotted line integral.

Arguments

 :: Int number of half-intervals (one less than the number of function evaluations) -> VectorField vector field -> Curve curve to integrate over -> Vec vector result

Quadratic approximation to vector field. Quadratic approximation to curve. Composite strategy. Crossed line integral.