Using functional programming to solve third-order equations and represent arbitrary algebraic polynomials and n-dimensional vector spaces.