|
|
DataMuseum.dkPresents historical artifacts from the history of: RC4000/8000/9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC4000/8000/9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 1536 (0x600)
Types: TextFile
Names: »han«
└─⟦621cfb9a2⟧ Bits:30002817 RC8000 Dump tape fra HCØ. Detaljer om "HC8000" projekt.
└─⟦0364f57e3⟧
└─⟦this⟧ »han«
opløselighed med ionstyrke
begin
real L,s,s1,I,lnL,f;
integer ip,in,lp,zn;
L:=readr(<:opl.produkt:>);
OM:
lp:=readi(<:positiv ions ladning:>);
zn:=readi(<:negativ - -:>);
if zn<0 then zn:=-zn;
if lp<=0 or zn=0 then
begin
write1(out,<:illegal ladning:>);
goto OM
end;
if zn mod lp=0 then
begin
in:=1; ip:=zn//lp
end
else
if lp mod zn=0 then
begin
ip:=1; in:=lp//zn
end
else
begin
ip:=zn; in:=lp; end;
write1(out,<:sammensætning: P:>,ip,<: N:>,in,'nl',1);
lnL:=ln(L/ip**ip/in**in)/(ip+in);
f:=.509*ln10*(ip*lp*lp+in*zn*zn)/(ip+in);
s:=0;
L1:
I:=.5*(lp**2*ip+zn**2*in)*s;
s1:=exp(lnL+f*sqrt(I)/(1+sqrt(I)));
if abs(s-s1)>.001*s then
begin
s:=s1;
goto L1
end;
write1(out,<:opløselighed:>,s,<: mol/l:>)
end
▶EOF◀