Sin/Cos/Tan Trigonometric Functions

Hi all,

Wondering if trig functions have been programmed into ODK. I would like to
use haversine to calculate distances between two geopoints.

Current workaround is pythagorean with a correction value programmed in for
the approximate latitude (using the cosine of the aprox. latitude we are
at, here in the Philippines that is Cos(11)). This is accurate enough for
short distances, but haversine would apply over all calculations.

Has support for sin/cos/tan been added as of yet?

Thanks,

Neal

Hi all,

Just bumping this question. Found this which says that these are not
available as of over 2 years ago:
https://groups.google.com/forum/#!searchin/opendatakit/trigonometric/opendatakit/lRDWZ_kakUk/RtIMfmGWBAkJ

Yaw or Matt, is this still the case? I clicked the link to try to submit it
as a feature request but I couldn't figure out how to submit it (there
doesn't seem to be a "new issue" field anywhere)

Thanks!

Neal

··· On Wednesday, March 16, 2016 at 11:05:50 AM UTC+8, Neal Barsch wrote: > > Hi all, > > Wondering if trig functions have been programmed into ODK. I would like to > use haversine to calculate distances between two geopoints. > > Current workaround is pythagorean with a correction value programmed in > for the approximate latitude (using the cosine of the aprox. latitude we > are at, here in the Philippines that is Cos(11)). This is accurate enough > for short distances, but haversine would apply over all calculations. > > Has support for sin/cos/tan been added as of yet? > > Thanks, > > Neal >

Correct. Code contributions are welcome.

.. those would be to the https://bitbucket.org/m.sundt/javarosa repository.

··· On Thu, Mar 17, 2016 at 10:25 PM, Neal Barsch <nbarsch@grameenfoundation.org wrote:

Hi all,

Just bumping this question. Found this which says that these are not
available as of over 2 years ago:

https://groups.google.com/forum/#!searchin/opendatakit/trigonometric/opendatakit/lRDWZ_kakUk/RtIMfmGWBAkJ

Yaw or Matt, is this still the case? I clicked the link to try to submit
it as a feature request but I couldn't figure out how to submit it (there
doesn't seem to be a "new issue" field anywhere)

Thanks!

Neal

On Wednesday, March 16, 2016 at 11:05:50 AM UTC+8, Neal Barsch wrote:

Hi all,

Wondering if trig functions have been programmed into ODK. I would like
to use haversine to calculate distances between two geopoints.

Current workaround is pythagorean with a correction value programmed in
for the approximate latitude (using the cosine of the aprox. latitude we
are at, here in the Philippines that is Cos(11)). This is accurate enough
for short distances, but haversine would apply over all calculations.

Has support for sin/cos/tan been added as of yet?

Thanks,

Neal

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Neal,

I haven't had time to add the code, but it's straightforward if you
(or a dev you know) wants to give it a go!

The relevant code is at
https://github.com/dimagi/javarosa/blob/master/core/src/main/java/org/javarosa/xpath/expr/XPathFuncExpr.java

Search for sin, cosin, etc. And while you are doing that, you might as
well also throw in tan,
floor, ceiling, etc.

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Fri, Mar 18, 2016 at 7:57 PM, Mitch Sundt mitchellsundt@gmail.com wrote:

Correct. Code contributions are welcome.

.. those would be to the https://bitbucket.org/m.sundt/javarosa repository.

On Thu, Mar 17, 2016 at 10:25 PM, Neal Barsch nbarsch@grameenfoundation.org wrote:

Hi all,

Just bumping this question. Found this which says that these are not
available as of over 2 years ago:

https://groups.google.com/forum/#!searchin/opendatakit/trigonometric/opendatakit/lRDWZ_kakUk/RtIMfmGWBAkJ

Yaw or Matt, is this still the case? I clicked the link to try to submit
it as a feature request but I couldn't figure out how to submit it (there
doesn't seem to be a "new issue" field anywhere)

Thanks!

Neal

On Wednesday, March 16, 2016 at 11:05:50 AM UTC+8, Neal Barsch wrote:

Hi all,

Wondering if trig functions have been programmed into ODK. I would like
to use haversine to calculate distances between two geopoints.

Current workaround is pythagorean with a correction value programmed in
for the approximate latitude (using the cosine of the aprox. latitude we are
at, here in the Philippines that is Cos(11)). This is accurate enough for
short distances, but haversine would apply over all calculations.

Has support for sin/cos/tan been added as of yet?

Thanks,

Neal

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks Yaw. Will look into it.

Neal T. Barsch
Mobile Financial Services Fellow
Grameen Foundation http://www.grameenfoundation.org/
#3 Brixton Street, Pasig, Metro Manila, Philippines
Skype: nbarsch
Cell: 0916-240-3782 (Globe)
Facebook http://www.facebook.com/StopPovertyNow│Twitter
http://twitter.com/grameenfdn│YouTube
http://www.youtube.com/user/grameen?blend=6&ob=5

··· On Wed, Mar 30, 2016 at 9:30 AM, Yaw Anokwa wrote:

Hi Neal,

I haven't had time to add the code, but it's straightforward if you
(or a dev you know) wants to give it a go!

The relevant code is at

https://github.com/dimagi/javarosa/blob/master/core/src/main/java/org/javarosa/xpath/expr/XPathFuncExpr.java

Search for sin, cosin, etc. And while you are doing that, you might as
well also throw in tan,
floor, ceiling, etc.

Yaw

Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to
https://nafundi.com to get started.

On Fri, Mar 18, 2016 at 7:57 PM, Mitch Sundt mitchellsundt@gmail.com wrote:

Correct. Code contributions are welcome.

.. those would be to the https://bitbucket.org/m.sundt/javarosa
repository.

On Thu, Mar 17, 2016 at 10:25 PM, Neal Barsch nbarsch@grameenfoundation.org wrote:

Hi all,

Just bumping this question. Found this which says that these are not
available as of over 2 years ago:

https://groups.google.com/forum/#!searchin/opendatakit/trigonometric/opendatakit/lRDWZ_kakUk/RtIMfmGWBAkJ

Yaw or Matt, is this still the case? I clicked the link to try to submit
it as a feature request but I couldn't figure out how to submit it
(there

doesn't seem to be a "new issue" field anywhere)

Thanks!

Neal

On Wednesday, March 16, 2016 at 11:05:50 AM UTC+8, Neal Barsch wrote:

Hi all,

Wondering if trig functions have been programmed into ODK. I would like
to use haversine to calculate distances between two geopoints.

Current workaround is pythagorean with a correction value programmed in
for the approximate latitude (using the cosine of the aprox. latitude
we are

at, here in the Philippines that is Cos(11)). This is accurate enough
for

short distances, but haversine would apply over all calculations.

Has support for sin/cos/tan been added as of yet?

Thanks,

Neal

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups

"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an

email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/KPugsSKm3c0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.