Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3420

Re: Improt vs Get

From Peter Breitfeld <phbrf@t-online.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Improt vs Get
Date 2011-07-01 00:40 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iuj520$nlm$1@smc.vnet.net> (permalink)
References <201106250929.FAA20235@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Improt vs Get Peter Breitfeld <phbrf@t-online.de> - 2011-07-01 00:40 +0000

csiph-web