Tom, As I understood it the main objections were to including these verbs in the existing trig.ijs script. I don't think anyone will object to you creating a separate script or addon. Do you think it would be sufficient if for example your students were able to obtain the desired functionality by typing: require 'convert/misc/surveying'
If the surveying script relies on functionality in the trig.ijs script then you could add a "require 'trig' " at the start of the surveying script. If you envisage the script growing and expanding you might want to create a new full-blown addon and add to that over time. Ric On Wed, Jun 8, 2011 at 7:00 AM, Tom Arneson <[email protected]> wrote: > 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 I’ve > 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°mm’ss” format. > > > > Because I intend to introduce J to my students, I feel I’d 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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
