Laguerre polynomials
Loading...
Searching...
No Matches
Laguerre15m_or.h
Go to the documentation of this file.
1#Sum of the multiplicities of all roots in a circle
2cohn_schur := proc(po,ce,ra)
3local p1,de,deg,ep,ld,lc,di,c0,p2,coun,k,b;
4if ce=0 and ra=1 then
5 p1:=po
6else
7 p1:=sort(expand(eval(po,z=ra*z+ce)))
8fi;
9
10if degree(p1)<0 then
11 coun:=1
12else
13ld:=ldegree(p1);
14coun:=ld;
15if ld<infinity and ld>0 then
16 p1:=quo(p1,z^ld,z)
18de:=degree(p1);
19while de>1 do
20lc:=lcoeff(p1);
21c0:=coeff(p1,z,0);
22di:=Re(lc)^2+Im(lc)^2-Re(c0)^2-Im(c0)^2;
23p2:=add(conjugate(coeff(p1,z,de-j))*z^j,j=0..de);
24if di>0 then
25p1:=quo(expand(conjugate(lc)*p1-c0*p2),z,z);
27userinfo(3,spa,‘NoName‘,‘Case I‘,‘Degree‘,degree(p1),‘Count‘,coun)
28elif di<0 then
29p1:=expand(conjugate(c0)*p1-lc*p2);
30userinfo(3,spa,‘NoName‘,‘Case II‘,‘Degree‘,degree(p1),‘Count‘,coun)
31else
32ep:=lc/conjugate(c0);
33k:=0;
34while k<=de and coeff(p1,z,k)=ep*conjugate(coeff(p1,z,de-k)) do
35k:=k+1
36od;
37if k<=de then
38b:=(coeff(p1,z,de-k)-ep*conjugate(coeff(p1,z,k)))/lc;
39p1:=sort(expand((z^k+2*b/evalf(abs(b)))*p1));
40deg:=degree(p1);
41p2:=add(conjugate(coeff(p1,z,deg-j))*z^j,j=0..deg);
42lc:=lcoeff(p1);
43c0:=coeff(p1,z,0);
44p1:=expand(conjugate(c0)*p1-lc*p2);
45deg:=degree(p1);
46p2:=add(conjugate(coeff(p1,z,deg-j))*z^j,j=0..deg);
47lc:=lcoeff(p1);
48c0:=coeff(p1,z,0);
49p1:=quo(expand(conjugate(lc)*p1-c0*p2),z,z);
50coun:=coun+1;
51userinfo(3,spa,‘NoName‘,‘Case III‘,‘Degree‘,degree(p1),‘Count‘,coun)
52else
53p1:=add((de-j)*coeff(p1,z,de-j)*z^j,j=0..de-1);
54userinfo(3,spa,‘NoName‘,‘Case IV‘,‘Degree‘,degree(p1),‘Count‘,coun)
55fi
56fi;
57de:=degree(p1)
58od;
59if degree(p1)=1 then
60lc:=lcoeff(p1);
61c0:=coeff(p1,z,0);
62if (Re(c0)^2+Im(c0)^2)<(Re(lc)^2+Im(lc)^2) then
63coun:=coun+1;
64userinfo(3,spa,‘NoName‘,‘Case I‘,‘Degree‘,0,‘Count‘,coun)
65fi
66fi
67fi;
68userinfo(1,spa,‘NoName‘,‘cohn_schur‘,coun);
69coun
70end: #cohn_schur
c0 z
Definition Laguerre15m_or.h:21
p2 de j *z j
Definition Laguerre15m_or.h:23
cohn_schur ra local deg
Definition Laguerre15m_or.h:3
cohn_schur ra local de
Definition Laguerre15m_or.h:3
cohn_schur ra local ep
Definition Laguerre15m_or.h:3
cohn_schur ra local di
Definition Laguerre15m_or.h:3
cohn_schur ra local ld
Definition Laguerre15m_or.h:3
cohn_schur ra local lc
Definition Laguerre15m_or.h:3
cohn_schur ra local p2
Definition Laguerre15m_or.h:3
cohn_schur ra local b
Definition Laguerre15m_or.h:3
cohn_schur ra local p1
Definition Laguerre15m_or.h:3
cohn_schur ce
Definition Laguerre15m_or.h:2
if ld< infinity and ld > then z z fi
Definition Laguerre15m_or.h:17
cohn_schur ra local c0
Definition Laguerre15m_or.h:3
cohn_schur ra local coun
Definition Laguerre15m_or.h:3
cohn_schur ra local k
Definition Laguerre15m_or.h:3