Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15032 > unrolled thread
| Started by | "Louis Talman" <talmanl@gmail.com> |
|---|---|
| First post | 2013-06-28 07:49 +0000 |
| Last post | 2013-06-28 07:49 +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 "Louis Talman" <talmanl@gmail.com> - 2013-06-28 07:49 +0000
| From | "Louis Talman" <talmanl@gmail.com> |
|---|---|
| Date | 2013-06-28 07:49 +0000 |
| Subject | Re: What is f[1]? Advanced question |
| Message-ID | <kqjf6l$9f2$1@smc.vnet.net> |
On Tue, 25 Jun 2013 19:14:08 -0600, amannucci
<Anthony.J.Mannucci@jpl.nasa.gov> wrote:
> 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
x most certainly *is* a function. Its a function whose domain contains
just the three numbers 1, 2, and 3.
And it is *not* an array. Mathematica has lists, which it uses as arrays
on occasion. An array, y, is indexed with double brackets: a[[1]],
a[[2]], etc.
--Louis A. Talman
Department of Mathematical and Computer Sciences
Metropolitan State University of Denver
<http://rowdy.msudenver.edu/~talmanl>
.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web