 class="sourceCode julia"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">water_density</span>(temperature<span class="op">=</span><span class="fl">27</span>, salinity<span class="op">=</span><span class="fl">35</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>Compute density of water (kg/m³), given <code>temperature</code> in °C and <code>salinity</code> in ppt.</p>
<p>Implementation based on