GithubHelp home page GithubHelp logo

thesil / irreducibility_criteria_checker Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 54 KB

Simple Python script for quick checking of irreducibility of polynomial with integer coefficients by testing various criteria.

Python 100.00%
mathematics polynomials criterion criteria polynomial-irreducibility-criteria irreducibility-criteria-checker

irreducibility_criteria_checker's Introduction

Irreducibility Criteria Checker

This repository contains Python scripts that can be used to check various Polynomial irreducibility criteria. Main purpose is to find, understand and possibly automate as many criteria as possible.

Eisenstein irreducibility criterion

https://en.wikipedia.org/wiki/Eisenstein%27s_criterion

Cohn's irreducibility criterion

https://en.wikipedia.org/wiki/Cohn%27s_irreducibility_criterion

Dumas' criterion for Newton polygons

See section Dumas's criterion in book Polynomials by Prasolov.

Checking irreducibility in finite field Fp

Algorithmic approach is used to decompose the polynomial into irreducible factors in finite fields Fp for small primes p. If the polynomial is irreducible in any of them, or if degrees of irreducible factors are not compatible, irreducibility over integers is implied.

Murty's irreducibility criterion

See Theorem 1 in http://cms.dm.uba.ar/academico/materias/2docuat2011/teoria_de_numeros/Irreducible.pdf.

Osada's irreducibility criterion

See Theorem 2.2.7 ([Os1]) in book Polynomials by Prasolov.

Perron's irreducibility criterion

https://en.wikipedia.org/wiki/Perron%27s_irreducibility_criterion

Polya's irreducibility criterion

See Theorem 2.2.8 (Polya) in book Polynomials by Prasolov.

Levit's irreducibility criterion

See Theorem 2 in Irreducibility of Polynomials with Low Absolute Values by R. J. Levit.

Schur's irreducibility criterion

See Schur's theorem for example in http://www.math.uconn.edu/~kconrad/blurbs/gradnumthy/schurtheorem.pdf.

Brauer's irreducibility criterion

See Theorem 2.2.6 ([Br]) in book Polynomials by Prasolov.

Bonciocat's irreducibility criterion

See https://arxiv.org/pdf/1304.0874.pdf advanced use of newton polygons.

Filaseta's criteria

See https://doi.org/10.1016/j.jnt.2013.11.001 and https://oeis.org/A253280 for generalization of Cohn's irreducibility criterion. Values beyond base 10 are taken from works of Cole (https://scholarcommons.sc.edu/etd/1590/) and Dunn (https://scholarcommons.sc.edu/etd/2809/).

Dependencies

Install required Python dependencies using:

python -m pip install -r requirements.txt

Basic usage

Run test suite:

python -m unittest discover"

To run specific criterion check, try for example:

python criteria/eisenstein.py "x^3-2*x^2+2*x+2"

To run all currently supported criteria use:

python check_all.py "P(x)"

where P(x) is some univariate polynomial from Z[x], e.g.

python check_all.py "x^3-24*x^2-240*x-728"

This will also performs various substituions (e.g. shift f(x+c) or reciprocal polynomials.).

irreducibility_criteria_checker's People

Contributors

thesil avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.