MathGroup Archive 2005

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

Search the Archive

Re: split list equation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59462] Re: [mg59414] split list equation
  • From: Igor Antonio <igora at wolf-ram.com>
  • Date: Wed, 10 Aug 2005 02:56:58 -0400 (EDT)
  • Organization: Wolfram Research, Inc.
  • References: <200508090730.DAA19049@smc.vnet.net>
  • Reply-to: igora at wolf-ram.com
  • Sender: owner-wri-mathgroup at wolfram.com

David Boily wrote:
> is there a function that does this:
> 
> {r, t}=={1, 2} ==> {r==1, t==2}
> 
> thanks, 
> 
> David Boily
> Centre for Intelligent Machines
> McGill University
> Montreal, Quebec

David,

You can use the Inner function:


In[1]:= Inner[Equal, {r, t} , {1, 2}, List]

Out[1]= {r == 1, t == 2}

In[2]:= {r, t} = {1, 5}

Out[2]= {1, 5}

In[3]:= %%

Out[3]= {True, False}
-- 


Igor C. Antonio
Wolfram Research, Inc.
http://www.wolfram.com

To email me personally, remove the dash.


  • Prev by Date: Re: Simple list operation
  • Next by Date: Re: Simple list operation
  • Previous by thread: Re: split list equation
  • Next by thread: Re: split list equation