function-instances-algebra: Instances of the Algebra.* classes for functions

[ bsd3, library, math ] [ Propose Tags ] [ Report a vulnerability ]

This package provides instances for functions (k -> a) of the classes Absolute, Algebraic, Differential, Field, Lattice, Monoid, Ring and Transcendental from the numeric-prelude package. An instance for Additive already comes with the original package.

If a has an instance for one of the classes, then (k -> a) has too. The instances do what you would expect. Values become constant functions:

zero = const zero

Unary functions are composed:

sin f = sin . f

Binary functions fan out the input and combine both results:

f + g = \x -> f x + g x

You can either import them separately or import Data.Function.Instances.Algebra to get them all at once.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1
Dependencies base (>=4 && <5), numeric-prelude (>=0.3 && <0.4) [details]
License BSD-3-Clause
Author Tobias Brandt
Maintainer tob.brandt@gmail.com
Category Math
Home page github.com/kreuzschlitzschraubenzieher/function-instances-algebra
Uploaded by TobiasBrandt at 2012-03-25T17:48:30Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1086 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]