Copyright | (c) Sumit Sahrawat |
---|---|
License | GPL-2 |
Maintainer | sumit.sahrawat.apm13@iitbhu.ac.in |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Quick plotting for functions + dynamic plotting of functions
plotStatic
can be used to plot functions of the form f(x)=...
plotDynamic
can be used to plot functions of the form /f(x, a, b) =
... where a and b/ are additional parameters. Sliders are
provided for manipulating the values of a and b, and the plot is
animated in real-time.
The Plotting Functions
:: (Double -> Double) | Function to plot |
-> (Double, Double) | Range for abscissa (horizontal axis) |
-> IO () |
Plot functions that don't depend on extra parameters
plotDynamic :: (Vector u a, Vector v (a, a), a ~ Double, Dim u ~ Dim v, Dim v ~ S n, Arity n) => (u Double -> Double) -> v (Double, Double) -> IO () Source #
Plot functions that depend on extra parameters