Artifact 5429ba7f47a4091d10217728c7b905746699cabc3969384f0820051ca0373584:
- Executable file
r37/packages/symmetry/sympatch.red
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1396) [annotate] [blame] [check-ins using] [more...]
- Executable file
r38/packages/symmetry/sympatch.red
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1396) [annotate] [blame] [check-ins using]
module sympatch; % from rprint.red load!_package 'rprint; fluid '(!*n buffp combuff!* curmark curpos orig pretop pretoprinf rmar); symbolic procedure rprint u; begin integer !*n; scalar buff,buffp,curmark,rmar,x; curmark := 0; buff := buffp := list list(0,0); rmar := linelength nil; x := get('!*semicol!*,pretop); !*n := 0; mprino1(u,list(caar x,cadar x)); % prin2ox ";"; prin2ox "$"; %3.11 91 KG omarko curmark; prinos buff end; % error in treatment of roots in connection % with conjugate of complex numbers symbolic procedure reimexpt u; if cadr u eq 'e then addsq(reimcos list('cos,reval list('times,'i,caddr u)), multsq(simp list('minus,'i), reimsin list('sin,reval list('times,'i,caddr u)))) else if fixp cadr u and cadr u > 0 and eqcar(caddr u,'quotient) and fixp cadr caddr u and fixp caddr caddr u then mksq(u,1) else addsq(mkrepart u,multsq(simp 'i,mkimpart u)); put('expt,'cmpxsplitfn,'reimexpt); put('cos,'cmpxsplitfn,'reimcos); put('sin,'cmpxsplitfn,'reimsin); endmodule; % algebraic repart(pi):=pi; % Present in 3.4.1 and later versions. % algebraic impart(pi):=0; % error in treatment of roots in connection % with conjugate of complex numbers % end; end;