DataMuseum.dk

Presents historical artifacts from the history of:

RC4000/8000/9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC4000/8000/9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦887a9ee08⟧ TextFile

    Length: 768 (0x300)
    Types: TextFile
    Names: »kk2«

Derivation

└─⟦621cfb9a2⟧ Bits:30002817 RC8000 Dump tape fra HCØ.  Detaljer om "HC8000" projekt.
    └─⟦0364f57e3⟧ 
        └─⟦508e019d6⟧ »kkfiler« 
            └─⟦this⟧ 
└─⟦00964e8f7⟧ Bits:30007478 RC8000 Dump tape fra HCØ.
    └─⟦b2ec5d50f⟧ 
        └─⟦8748ba386⟧ »kkfiler« 
            └─⟦this⟧ 

TextFile

begin
  integer a,b,c,i,j,k;
  real r,s,t,u;
  real procedure fak(n);
   integer n;
  begin
    real f;
    integer m;
    f:=1;
    for m:=1 step 1 until n do
    f:=f*m;
    fak:=if n=0 then 1 else f;
  end;
  real procedure knp(n,p);
  value n,p; integer n,p;
  knp:=fak(n)/(fak(p)*fak(n-p));
  read(in,a,r);
    u:=0;
  s:=1-r;
  for i:=0 step 1 until a do
  begin
    t:=knp(a,i)*r**i*s**(a-i);
    u:=u+t;
    write(out,<:<10>:>,<<     d.dddddddd>,t,u,1-u);
  end;
end;
▶EOF◀