Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
A module that shows some simple examples demonstrating how to use the package.
- demo :: IO ()
- legend :: IO ()
- showColors :: IO ()
- waveDemoComplex :: IO ()
- waveDemoReal :: IO ()
- waveDemoPositive :: IO ()
- wave :: [Complex Double]
- matDemoReal :: IO ()
- matDemoComplex :: IO ()
- unitary :: Double -> [[Complex Double]]
Documentation
showColors :: IO () Source #
Show all of the available AnsiColor
s with corresponding ColorIntensity
, Color
pairs.
Horizontal graphs
waveDemoComplex :: IO () Source #
Display an animation of the complex wave z(x,t) = exp(ix - it) in some units.
waveDemoReal :: IO () Source #
Display an animation of the real function r(x,t) = cos(x-t) in the standard style, i.e. with both positive and negative regions.
waveDemoPositive :: IO () Source #
Display an animation of the positive real function p(x,t) = cos(x-t) + 1 in some units.
wave :: [Complex Double] Source #
A complex wave vector, part of the graph of z(x,t) = exp(ix - it) in some units.
Matrix graphs
matDemoReal :: IO () Source #
An example real matrix animation.
matDemoComplex :: IO () Source #
Shows an animation of an example time-dependent matrix formed from Pauli matrices, called
unitary
. Specifically, it is the tensor product of σz and σx exponentiated with different
frequencies.