MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

AW: Need help writing geology software using cirlces

  • To: mathgroup at
  • Subject: [mg29137] AW: [mg29117] Need help writing geology software using cirlces
  • From: Matthias.Bode at
  • Date: Wed, 30 May 2001 23:28:24 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Hello Peter,

this idea may yield the results you have in mind:

(ArcSin[Sin[0/180*Pi]]+ArcSin[Sin[45/180*Pi]])/2*180/Pi //N


(ArcSin[Sin[350/180*Pi]]+ArcSin[Sin[45/180*Pi]])/2*180/Pi //N


(ArcSin[Sin[0/180*Pi]]+ArcSin[Sin[180/180*Pi]])/2*180/Pi //N


            ArcSin[Sin[270/180*Pi]])/4)*180/Pi //N


Please note that your examples

3): average of "one vector north plus one vector south"
4): average of "one vector north plus one vector south plus one vector east
plus one vector west"

will both evaluate to zero for vectors of even length.
(Vector and matrix operations are dealt with in section 1.8.3 of THE
<< Miscellaneous`Geodesy` might inspire you as well in determining the whims
of rivers.)

Best regards,

Matthias Bode
Sal. Oppenheim jr. & Cie. KGaA
Koenigsberger Strasse 29
D-60487 Frankfurt am Main
Tel.: +49(0)69 71 34 53 80
Mobile: +49(0)172 6 74 95 77
Fax: +49(0)69 71 34 6380
E-mail: matthias.bode at

-----Ursprungliche Nachricht-----
Von: Peter Wilson [mailto:peter at]In[50]:=
Gesendet: Mittwoch, 30. Mai 2001 11:51
An: mathgroup at
Betreff: [mg29117] Need help writing geology software using cirlces

I am currently writing a computer program that needs to calculate the
average angle, given numerous angles in a previous sequence.

1) Given the angles, 0? and 45?  the average is definitely 22.5?

2) Given 2 angles of 350 and 45, the average should be 17.5 degrees
(hmmm...Is that right?)

3) Given 0 and 180 the average can be considered either 90 or 270

4) Given 0, 90, 180 and 270, the average may? be considered 0. In such cases
my program will cope fine.

Here's my question
Q. What formula can I use to find the average angle in a circle, from a
series of angles?
i.e.. 0,45,56,135,270,360,2,18... etc.

Please note that I understand basic trigonometry, but that's about it.  I'm
a computer programmer, not a mathematician.

I would appreciate any help.  My computer program is currently used in
Geology to track the course of a river, and to provide a predictive model of
the same river in previous and future years.  It currently works, however
it's a bit rough and I'm currently looking for refinement algorithms.



  • Prev by Date: Re: NDsolve question
  • Next by Date: Re: Re: ColorFunction for ListPlot3D, ListContourPlot or ListDensityPlot ?
  • Previous by thread: I hate using Legend
  • Next by thread: mutivariable interpolation functions