Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15013 > unrolled thread
| Started by | Tomas Garza <tgarza10@msn.com> |
|---|---|
| First post | 2013-06-26 04:59 +0000 |
| Last post | 2013-06-26 04:59 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: What is f[1]? Advanced question Tomas Garza <tgarza10@msn.com> - 2013-06-26 04:59 +0000
| From | Tomas Garza <tgarza10@msn.com> |
|---|---|
| Date | 2013-06-26 04:59 +0000 |
| Subject | Re: What is f[1]? Advanced question |
| Message-ID | <kqdsf4$n2n$1@smc.vnet.net> |
It is possibly a previously declared "Array" with the name "x", and the three lines are assigning values to the elements of the array. Check for Array in the Help.
-Tomas
> From: Anthony.J.Mannucci@jpl.nasa.gov
> Subject: What is f[1]? Advanced question
> To: mathgroup@smc.vnet.net
> Date: Tue, 25 Jun 2013 21:14:08 -0400
>
> 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 top | Article view | comp.soft-sys.math.mathematica
csiph-web