Since this is a fairly industry-specific format, and the verbs consequently
are use-case-specific, it might be cleaner (and easier) to create a JAL
addon for these & related surveying utilities.  

-Dan

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tom Arneson
Sent: Friday, June 03, 2011 7:18 AM
To: [email protected]
Subject: [Jprogramming] Suggested addtion to addons/math/misc/trig.ijs

In land surveying angles in degrees, minutes, and seconds are often entered
and stored in files as a decimal number with the first 2 digits right of the
decimal point representing minutes and the following digits representing
seconds and decimal seconds. I've used these verbs for years although I
named them rtodms  dmstor or r2dms dms2r. After I saw the verbs dfr and frd
in trig.ijs, I decided to follow that convention and renamed them as rfdms
and dmsfr.

 

I'm planning to use J Software in my land surveying technology courses at
Saint Paul College, a community & technical college (www.saintpaul.edu ) and
would like my students to have these verbs at hand for use.

 

I'd like to see the following sentences added to addons/math/misc/trig.ijs

 

NB. =========================================================

NB. d.mmss indicates degrees minutes and seconds coded into a decimal number

NB.*dmsfr v d.mmss from radians

NB.*rfdms v radians from d.mmss

 

dmsfr=: ** 0.0001 * 0 100 100 #. 0 60 60 #: 648000p_1 * |

rfdms=: 1r648000p1 *** 0 60 60 #. 0 100 100 #: 10000 *|

 

NB. =========================================================

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to