|HP 48G coordinate join program|
Message #1 Posted by Dan on 9 Oct 2006, 1:56 p.m.
I was wondering if anyone can give me some advice on how to use one set of input data to do two caculations?
i'm writing a coordinate join program for my 48g (im not very skilled i only learnt to program a few hours ago) and i want my set of eastings and northings for 2 points to be able to calculate horizontal distance and quadrant angle, which they can already do by themselves, but i cant seem to combine them together properly into one soft key.
here is what ive come up with so far:
Hoz Distance: << -> A B C D 'sqrt( (C-A)^2 + (D-B)^2)' >>
Quadrant Angle: << -> A B C D 'ATAN( (D-B) / (C-A) )' >>
*where A,B,C and D are east1, north1, east2, north2, respectively
I want these two values to be either side by side such as (Dist, QA), or in different stack positions (preferrably the latter) such as:
any advice would be greatly appreciated!