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.
- References:
- split list equation
- From: David Boily <dsboily@fastmail.ca>
- split list equation