I was a bit surprised at the violent objections to including in addons, some verbs for converting angles in d.mmss format to and from radians. I've worked with angles encoded in d.mmss format for at least 40 years and have coded conversions in at least a half dozen languages.
Some of the applications and or manufactures using this format are: · HP calculators · AutoCAD Civil 3D · TDS/Spectra Precision data collectors · Leica Geosystems instruments · Topcon survey instruments · Trimble · Underhill Geomatics · TraversePC software · Star*Net There are likely many more, but the ones shown above are all ones that Ive used. In all of my use in J, I convert to radians and use data in that format throughout the calculations. For output I either label all ddd.mmss output with a column header or use: ddd°mmss format. Because I intend to introduce J to my students, I feel Id have more success if the conversion verbs were in the trig addon, so the students would consider them as part of the language. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Tom Arneson Sent: Friday, June 03, 2011 06:18 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
