RPCFN: Ruby**Fun (#4)
This is my submission for the RPCFN: Ruby**Fun (#4)
The algorithm implemented is trying to be as simple yet readable as possible
Iterates every coefficient in the input array. If the coefficient is non zero, performs a number of actions on it.
>> require 'Polynomial' >> puts Polynomial.new([-2,-3,-4,-5]) -2x^3-3x^2-4x-5