Converting equations to java for android?
<p>I am a cameraman and I want to make an app for my Moto Droid that will
calculate my depth of field given four inputs. I am literally brand
new to javascript and this programming stuff, so I was wondering if
anyone could help me out.</p>

<p>I have a very basic GUI set up using Droiddraw which allows me to
input my 4 variables, which are:</p>

<p>Focus (@+id/focust)</p>

<p>Focal Length (@+id/flt)</p>

<p>Aperture (@+id/apt)</p>

<p>Circle of Confusion (@+id/coct)</p>

<p>Equations for this calculation are located here: <a href="http://www.dofmaster.com/equations.html" rel="nofollow">http://www.dofmaster.com/equations.html</a></p>

<p>for example...</p>

<p>to get hyperfocal distance I need to get: ((f^2)/(N*c))+f  </p>

<p>all of these variables will be drawn from inputs in the GUI, but I don't know how to call them, how to write the actual math, and how to address the results so I can make them appear in the "results area" on the bottom of the screen.</p>

<p>I've never done java before and I only want to make this app because the existing ones don't fit my needs. Can someone help?</p>

<p>Thanks!</p>
