If you want to send your code it might be an interesting exercise to
make the calculations work.

But before you send everything if that suits you, I did note that it
looks like you need FIVE inputs not FOUR to make it work.  The list
under the "where:" section in the above link lists SEVEN variables. Of
those Dn and Df only occur on the left side of the equations so they
would receive the results of the calculations.  H appears on both so
would also be needed as an input for two of the calculations shown on
the link. If you wouldn't have H as an input, it can be derived from
the other four.

If I am clear, you mapped as follows:

f = Focal Length
s = Focus
N = Aperture
c = Circle of Confusion

I assume that is what you are referring to as "hyperfocal point".

I also assume that your fourth calculation, total depth of field is
simply far focus minus near focus.

Again, if you want to send me your layout I will see if I can get the
calculations working.


On Jan 20, 11:20 am, C47 <[email protected]> wrote:
> 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.
>
> I have a very basic GUI set up using Droiddraw which allows me to
> input my 4 variables, which are:
>
> Focus (@+id/focust)
> Focal Length (@+id/flt)
> Aperture (@+id/apt)
> Circle of Confusion (@+id/coct)
>
> just to get things started, can someone show me how to use these
> values to calculate several other values? I would like the app to give
> me:
>
> near focus
> far focus
> hyperfocal point
> total depth of field.
>
> Equations for this calculation are located 
> here:http://www.dofmaster.com/equations.html
>
> I think I can figure out formatting, calculation buttons, etc. but
> coding the actual math is more than a bit confusing...
>
> Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to