ansigraph-0.3.0.5: Terminal-based graphing via ANSI and Unicode

Safe HaskellSafe
LanguageHaskell2010

System.Console.Ansigraph.Examples

Contents

Description

A module that shows some simple examples demonstrating how to use the package.

Synopsis

Documentation

demo :: IO () Source #

Run all of the demos in sequence.

legend :: IO () Source #

Displays a legend showing color conventions for supported graph types.

showColors :: IO () Source #

Show all of the available AnsiColors 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.

unitary :: Double -> [[Complex Double]] Source #

An example of a time-dependent complex matrix.