dia-functions-0.2.1.3: An EDSL for teaching Haskell with diagrams - functions

Safe HaskellSafe-Inferred

Graphics.Diagrams.FunctionGraphs

Description

Display function graphs and arcs

Synopsis

Documentation

coords :: Point -> Point -> DiagramSource

The coordinate system.

withCoords :: Point -> Point -> Diagram -> DiagramSource

Draw the given function graph with gray coordinate system.

displayDiscreteFunSource

Arguments

:: (Integral a, Real b) 
=> Point

display area left-bottom corner

-> Point

display area right-up corner

-> (a -> b) 
-> Diagram 

Display a function defined on integer values.

displayFunSource

Arguments

:: (RealFrac a, Real b) 
=> Point

display area left-bottom corner

-> Point

display area right-up corner

-> (a -> b) 
-> Diagram 

Display a continuous function.

displayArcSource

Arguments

:: (Fractional a, Real b, Real c) 
=> Point

display area left-bottom corner

-> Point

display area right-up corner

-> (Double, Double)

parameter interval

-> (a -> (b, c))

arc on the plain

-> Diagram 

Display an arc given by a function.

joinPoints :: [Point] -> DiagramSource

Join points to form a continuous path with singularities.