Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SeanJxie/polygo

Open more actions menu

Repository files navigation

logo

go get github.com/SeanJxie/polygo@main

Features

Note: Polygo is being currently being rewritten. The following features are expected to expand.

  • Initialization methods:

    • From a slice of coefficients
    • Parsed from a string
    • Special polynomials:
      • Zero
      • Constant
      • Linear, Quadratic, Cubic
      • Factored form
      • Taylor (trigonometric, exp)
      • Wilkinson's
      • Chebyshev (of the first and second kind)
      • Legendre
      • Laguerre
  • Binary operations:

    • Addition
    • Subtraction
    • Scalar multiplication
    • Multiplication (with fast variant using an FFT)
    • Euclidean division
    • Equality
  • Unary operations/properties:

    • Evaluation (using Horner's scheme)
    • Coefficients (leading, largest, nth degree, etc.)
    • Degree
    • Reciprocal
    • Boolean checks (constant, zero, monic, etc.)
  • Calculus:

    • Derivative, nth derivative
  • Solving (mildly unstable):

    • Various algorithms to solve polynomial equations (roots and intersections)

      • Newton-Raphson (real)
      • Bisection (real)
    • Cauchy's root bound

  • Grapher:

    • Rewrite in progress

Documentation

The current docs are outdated. They will be updated when the current rewrite is complete and a version can be tagged.

Godoc: https://pkg.go.dev/github.com/seanjxie/polygo

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.