PYTHON - how to write my python maths equation correctly
<p>I have an equation T=0.0804*x +16.081 which I want to convert to a python script.</p>

<p>I have written a script but I think there is a problem as when I run it embedded in diamond it says it is dying and there is an error and aborts what I am trying to do</p>

<p>The script is:</p>

<pre><code>def val(X,t):
    import math
    t=0.0804*X +16.081
    return t
</code></pre>

<p>Any help is much appreciated.
Thanks</p>
