» Metadata  » Status 



» Description  
A math package to represent and manipulate polynomials ( equations of the form ax^n + bx^(n  1) + ... yx + z, or, for example: 5x^3 + 6x^2 + 4x + 2 ) The package includes a Polynomial class with these methods: add()  Add another polynomial to the current polynomial subtract() multiply() divide() mod()  Modulus function ( division remainder ) for polynomials degree()  Tell the degree ( highest exponent ) of the polynomial getDerivative()  Get the nth derivative of a polynomial evaluate()  Evaluate the polynomial for a given x value Example of usage:
In the future, I may add support for multivariable polynomials, where you have, for example, an x, y, and z variable in the equation. I'm also looking into algorithms to find the GCD of the polynomial, and polynomial factoring. You can view code, examples, and the start of a unit test here: http://www.uglyslug.com/Math_Polynomial/ 

» Dependencies  » Links 


» Timeline  » Changelog 
