MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: List Operations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38690] Re: List Operations
  • From: atelesforos at hotmail.com (Orestis Vantzos)
  • Date: Sun, 5 Jan 2003 06:33:55 -0500 (EST)
  • References: <av6jub$nug$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

status={len1,len2}
status1={3,4}
Evaluate[status]=status1

and now you have len1==3,len2==4 and status={len1,len2}
Orestis

"Hermann Schmitt" <schmitther at netcologne.de> wrote in message news:<av6jub$nug$1 at smc.vnet.net>...
> Hi,
> 1)
> in the following example len1 and len2 are assigned values.
> In[2]=status = {len1, len2}
> status1 = {3, 4};
> {len1, len2} = status1;
> Print["status: ", status];
> Print["len1: ", len1, "  len2: ", len2]
> 
> Out[2]= {len1, len2}
> status: {3, 4}
> len1: 3  len2: 4
> In[7]:=
> 
> 2)
> In this example, len1 and len2 are not assigned values, because status1 is
> assigned to status directly.
> In[2]=status = {len1, len2}
> status1 = {3, 4};
> status = status1;
> Print["status: ", status];
> Print["len1: ", len1, "  len2: ", len2]
> 
> Out[2]= {len1, len2}
> status: {3, 4}
> len1: len1  len2: len2
> In[7]:=
> 
> My question is:
> Can the result of example 1) be achieved in any way using the variables
> status and status1
> Hermann Schmitt


  • Prev by Date: How to Write a 6 summation equation that accesses a data file
  • Next by Date: Re: Re: Re: help on nonlinear ODEs
  • Previous by thread: List Operations
  • Next by thread: Re: List Operations