Chemical calculator: Difference between revisions
m
→{{header|ALGOL W}}: Adjust layout to avoid wrapped lines
Cyril Nocton (talk | contribs) |
m (→{{header|ALGOL W}}: Adjust layout to avoid wrapped lines) |
||
Line 187:
real procedure parseCompound ; begin
real mass, itemMass;
% parses an element symbol
real procedure parseAtom ; begin
string(3) symbol;
Line 265:
A("Es",252 );A("Fm",257 ); % Md % %, No % % Lr %
end Actinides ;
A("
A("Be", 9.0121831 );A("Mg",24.305
A("
A("
A("
A("
A("
A("
A("
A("
A("
A("
A("
A("
A("
A("
A("Ne",20.1797 );A("Ar",39.948 );A("Kr",83.798 );A("Xe",131.293 );A("Rn",222 ); % Og %
% ---------------- first period elements ---> % A("H", 1.008);A("He", 4.002602);
% --- hypothetical eigth period elements ---> % A("Uue",315 );A("Ubn",299 );
Line 313 ⟶ 314:
UueCl : 350.450
</pre>
=={{header|AutoHotkey}}==
<syntaxhighlight lang="autohotkey">test := ["H", "H2", "H2O", "H2O2", "(HO)2", "Na2SO4", "C6H12", "COOH(C(CH3)2)3CH3", "C6H4O2(OH)4", "C27H46O"
|