poly: Polynomials

[ bsd3, library, math, numerical ] [ Propose Tags ]

Polynomials with Num and Semiring instances, backed by Vector.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.3.3.0, 0.4.0.0, 0.5.0.0, 0.5.1.0 (info)
Change log changelog.md
Dependencies base (>=4.9 && <5), primitive, semirings (>=0.2), vector [details]
License BSD-3-Clause
Copyright 2019 Andrew Lelechenko
Author Andrew Lelechenko
Maintainer andrew.lelechenko@gmail.com
Revised Revision 1 made by Bodigrim at 2021-08-22T20:50:38Z
Category Math, Numerical
Home page https://github.com/Bodigrim/poly#readme
Source repo head: git clone https://github.com/Bodigrim/poly
Uploaded by Bodigrim at 2019-04-28T22:50:02Z
Distributions LTSHaskell:0.5.1.0, Stackage:0.5.1.0
Reverse Dependencies 5 direct, 11 indirect [details]
Downloads 3778 total (51 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-04-28 [all 1 reports]

Readme for poly-0.2.0.0

[back to package description]

poly Build Status Hackage

Polynomials with Num and Semiring instances, backed by Vector.

> (X + 1) + (X - 1) :: VPoly Integer
2 * X + 0

> (X + 1) * (X - 1) :: UPoly Int
1 * X^2 + 0 * X + (-1)

> eval (X^2 + 1 :: UPoly Int) 3
10

> eval (X^2 + 1 :: VPoly (UPoly Int)) (X + 1)
1 * X^2 + 2 * X + 2

> deriv (X^3 + 3 * X) :: UPoly Int
3 * X^2 + 0 * X + 3