MathGroup Archive 2011

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

Search the Archive

Re: Improt vs Get

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119938] Re: Improt vs Get
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Thu, 30 Jun 2011 20:39:52 -0400 (EDT)
  • References: <201106250929.FAA20235@smc.vnet.net>

Get is used to read Mathematica expressions, so Mathematica evaluates
your list and interpretes  e.g. -0.5066E+01 as -0.5066*E+1 = 0.377082


Ted Sariyski wrote:

> Hi,
> I have a file tst:
>
> {{X [m], -0.5066E+01, -0.4039E+01, -0.3012E+01},{Y [m], -0.5066E+01, 
> -0.4039E+01, -0.3012E+01}}
>
> which I Get:
> fn = FileNameJoin[{myDir, "tst"}]
>
> In[]= Get[fn]
> Out[]= 
> {{X[m],-0.377082,-0.097914,0.181254},{Y[m],-0.377082,-0.097914,0.181254}}
>
> which is not what I expect.
>
> Import, however, returns the content of tst:
>
> In[] =Import[fn,"List"]
> Out[]= {{{X [m], -0.5066E+01, -0.4039E+01, -0.3012E+01},{Y [m], 
> -0.5066E+01, -0.4039E+01, -0.3012E+01}}}
>
> What do I miss here?
> Thanks in advance,
> --Ted
>
>
>

-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: Why does Solve give me no solutions for this in Version 8.0.1?
  • Next by Date: Re: Bug in Sum?
  • Previous by thread: Re: Improt vs Get
  • Next by thread: generating the netimage of a geodesic shape?