|
[Date Index]
[Thread Index]
[Author Index]
RE: Variables names
- To: mathgroup at smc.vnet.net
- Subject: [mg15038] RE: [mg15002] Variables names
- From: "Greg Arnold" <garnold at mbvlab.wpafb.af.mil>
- Date: Wed, 9 Dec 1998 04:12:23 -0500
- In-reply-to: <199812050630.BAA04464@smc.vnet.net.>
- Sender: owner-wri-mathgroup at wolfram.com
ToExpression[ "x" <> ToString[i] ]
-----Original Message-----
From: Kim Allemand [mailto:kim.allemand at epfl.ch] To:
mathgroup at smc.vnet.net
Subject: [mg15038] [mg15002] Variables names
Hi,
I have a square matrix Q of dimension N and would like to generate the
quadratic function $\sum_{i,j}q_{ij}x_i x_j$. The problem is how to say
to Mathamatica that the variables names are x1, x2, etc. Is it possible
to generate variables names in an automatic way? A possibility would be
to generate manually a vector NN={x1, x2, x3, ....} of dimension N and
then to pick NN[[i]] for the ith variable name, but imagine when
N=1000... !!
Thanks, Kim
Prev by Date:
Re: RE: New Notebook looses focus after first keystroke
Next by Date:
Re: Bug in PolynomialReduce
Previous by thread:
Variables names
Next by thread:
Re: Variables names
|