Reorganization
[scilab.git] / scilab / modules / overloading / macros / %p_l_p.sci
1 function f=%p_l_p(p2,p1)
2 // f=%p_l_p(p2,p1) <=> f=p2\p1 for polynomial matrices
3 //!
4 // Copyright INRIA
5 [l,c]=size(p2)
6 if l*c <>1 then f=invr(p2)*p1,return,end
7 [l,c]=size(p1)
8 [p1,p2]=simp(p1,p2*ones(l,c))
9 f=tlist(['r','num','den','dt'],p1,p2,[])
10 endfunction