Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2001

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

Search the Archive

Re: Need help writing geology software using cirlces

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29132] Re: [mg29117] Need help writing geology software using cirlces
  • From: "Sherman Reed" <sherman.reed at worldnet.att.net>
  • Date: Wed, 30 May 2001 23:28:21 -0400 (EDT)
  • References: <200105300950.FAA08323@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Pete,
I assume all angles are measured in a counter-clockwise direction from the
positive x axis.

Take the average of the angles, then use Mod to find the value from 0 to 360
degrees.

The attached note shows the results for the examples you provided.
[Contact the author to get this - moderator]

If you are going to use trigometric functions to plot points, etc., then
determining the sign of the function is covered in the trig texts.

Average or Mean is straightforward.  I suspect this is not the complete
answer, but it is a beginning.

Sherman C. Reed
sherman.reed at att.net
----- Original Message -----
From: "Peter Wilson" <peter at midar.com>
To: mathgroup at smc.vnet.net
Subject: [mg29132] [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.
>
> Examples:
> 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.
>
> Cheers,
>
> Pete
>
>
>


  • Prev by Date: Re: possible?: Notebook in "batch mode"
  • Next by Date: Re: NDsolve question
  • Previous by thread: Need help writing geology software using cirlces
  • Next by thread: Re: AW: Re: Why can't Nsolve find a solution to this ?