exaux.red 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. module exaux;
  2. % Author: Eberhard Schruefer;
  3. fluid '(!*nat);
  4. global '(coord!* basisforml!* keepl!*);
  5. symbolic procedure boundindp(u,v);
  6. if null u then t else member(car u,v) and boundindp(cdr u,v);
  7. symbolic procedure memblp(u,v);
  8. if null u then nil
  9. else if atom u then member(u,v)
  10. else memblp(car u,v) or memblp(cdr u,v);
  11. symbolic procedure displayframe;
  12. begin scalar x,scoord;
  13. terpri!* t;
  14. scoord := coord!*;
  15. coord!* := nil;
  16. for each j in basisforml!* do
  17. <<x := assoc(j,keepl!*);
  18. maprin car x;
  19. prin2!* " = ";
  20. maprin reval cdr x;
  21. terpri!* t>>;
  22. %was varpri(reval cdr x,list mkquote car x,t)>>;
  23. if !*nat then terpri!* t;
  24. coord!* := scoord
  25. end;
  26. put('displayframe,'stat,'endstat);
  27. %symbolic procedure form!*coeff u;
  28. %begin scalar x,inds; %integer n;
  29. %inds:=cdr u;
  30. %n:=length inds;
  31. %x:=simp!* car u;
  32. %y:=dstrsdf numr x;
  33. %put('fcoeff,'simpfn,'form!*coeff);
  34. endmodule;
  35. end;