Skip to content

uab-cs/polymath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polymath

Gem Version A library for polynomials with integer coefficients

install:

gem install polymath

usage:

lib:

require 'polymath'
polynomial = Polymath.polynomial("x^2 - 3x + 2")
polynomial.cleanup!
polynomial.to_s #=> "x^2-3x+2"

command line:

$ polymath -af "x^2 - 3x + 2"
x^2-3x+2
deg: 2
class: normal quadratic trinomial
zeroes: [(1/1), (2/1)]

docs:

http://www.rubydoc.info/gems/polymath

Releases

No releases published

Packages

No packages published

Languages