MathGroup Archive 2008

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

Search the Archive

Re: newbie question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93263] Re: newbie question
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sat, 1 Nov 2008 05:11:40 -0500 (EST)

On 10/31/08 at 3:06 AM, polymedes at gmail.com (polymedes) wrote:

>I'm trying to apply the function ToDegrees (from Geodesy package)
>to an array of data. It does not seem to work on arrays. Can
>somebody give me an idea on how to do this conversion? Ideally, I'd
>like to import a file in the following format:

>12,23,49    70,45,30
>12,25,41    70,46,40
>12,26,51    70,47,50
>12,27,55    70,48,33

Since you comment the function doesn't work on arrays, I assume
you are not having difficulty importing the data into Mathematica.

There are a couple of simple things you could do. Use Map to map
the function ToDegrees to the list of coordinates. That is:

In[7]:= data = {{12, 23, 49}, {12, 25, 41}, {12, 26, 51}, {12, 27,
     55}};

In[8]:= ToDegrees /@ data

Out[8]= {44629/3600,44741/3600,4979/400,1795/144}

compute the appropriate dot product, That is:

In[9]:= data.{1, 1/60, 1/3600}

Out[9]= {44629/3600,44741/3600,4979/400,1795/144}


  • Prev by Date: RE: Re: Re: 3D Graphics in a Palette or Dialog
  • Next by Date: Re: Graph by Date
  • Previous by thread: Re: Pure functions?
  • Next by thread: Re: newbie question