Finally!
Some real work is being done with perl!
Unfortunately, this code has some problems. See my partial log here for a 100L bath:
4. H202
2. HF
1. DI
What is the solvent: 1
What is the final concentration of each chemical you desire (wt %):
H202 (in %): 30
HF (in %): 10
Here are the volumes you need to fill:
H202: 102.94 L
HF: 20.1 L
DI: -23.04 L
I suggest examination of this code carefully before mixing chemicals via this calculation. The effort is well appreciated however.
One more suggestion: Use IUPAC names please. I once ordered "IPA" from a major chemical manufacturer only to receive isopropyl acetate instead of the isopropanol delivery expected.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|