learn-physics-0.4.1: Haskell code for learning physics

Stability experimental Scott N. Walck Trustworthy

Physics.Learn.Surface

Contents

Description

This module contains functions for working with `Surface`s and surface integrals over `Surface`s.

Synopsis

# Surfaces

data Surface Source

Surface is a parametrized function from two parameters to space, lower and upper limits on the first parameter, and lower and upper limits for the second parameter (expressed as functions of the first parameter).

Constructors

 Surface FieldssurfaceFunc :: (Double, Double) -> Positionfunction from two parameters (s,t) into space lowerLimit :: Doubles_l upperLimit :: Doubles_u lowerCurve :: Double -> Doublet_l(s) upperCurve :: Double -> Doublet_u(s)

A unit sphere, centered at the origin.

A sphere with given radius centered at the origin.

Sphere with given radius and center.

The upper half of a unit sphere, centered at the origin.

A disk with given radius, centered at the origin.

Shift a surface by a displacement.

# Surface Integrals

Arguments

 :: (VectorSpace v, Scalar v ~ Double) => Int number of intervals for first parameter, s -> Int number of intervals for second parameter, t -> Field v the scalar or vector field to integrate -> Surface the surface over which to integrate -> v the resulting scalar or vector

A plane surface integral, in which area element is a scalar.

Arguments

 :: Int number of intervals for first parameter, s -> Int number of intervals for second parameter, t -> VectorField the vector field to integrate -> Surface the surface over which to integrate -> Double the resulting scalar

A dotted surface integral, in which area element is a vector.