I want to calculate all roots of polynomial (assume that all roots are real). I wrote two functions laguerre.m which uses Laguerre\'s method to calculate a root
laguerre.m