module Algebra::MPolynomialConvertTo

Public Instance Methods

convert_to(other) click to toggle source
# File lib/algebra/polynomial-converter.rb, line 54
def convert_to(other)
  if other <= Polynomial
    #       Polynomial.create(ground, *(variables))
    Polynomial.create(ground, *variables.reverse)
  else
    raise "unkown self.class (#{other})"
  end
end