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


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

What is f[1]? Advanced question

From amannucci <Anthony.J.Mannucci@jpl.nasa.gov>
Newsgroups comp.soft-sys.math.mathematica
Subject What is f[1]? Advanced question
Date 2013-06-26 01:06 +0000
Message-ID <kqdeps$lfm$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


I have found a Mathematica program with the following construct:
x[1]=0.1
x[2]=0.2
x[3]=0.3

or 
Do[x[i]=i/10.,{i,1,3}]

x is not a function. It is not a list. What is it? If I query x thus:
?x

the answer is just what I have written above. Mathematica knows about x[1], x[2], etc. How does Mathematica know about the "elements" of x? 

In some other sense, I could have written:
y1 = 0.1
y2 = 0.2
y3 = 0.3

But
?y

obviously gives a different result (just returns y). 

Thank you.

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


Thread

What is f[1]? Advanced question amannucci <Anthony.J.Mannucci@jpl.nasa.gov> - 2013-06-26 01:06 +0000

csiph-web