Hi
How to translate the following lines of commands from Matlab to Maple?
function [X,E,s] = polyeig(varargin)
%POLYEIG Polynomial eigenvalue problem.
% [X,E] = POLYEIG(A0,A1,..,Ap) solves the polynomial eigenvalue problem
% of degree p:
% (A0 + lambda*A1 + ... + lambda^p*Ap)*x = 0.
% The input is p+1 square matrices, A0, A1, ..., Ap, all of the same
% order, n. The output is an n-by-n*p matrix, X, whose columns
%...