You never invoke either subroutine.
In reply to Re: Lagrange Polynomials in Perl by GotToBTru in thread Lagrange Polynomials in Perl by Mascasc