defining a transform from two lists
- To: mathgroup at smc.vnet.net
- Subject: [mg40837] defining a transform from two lists
- From: "Nathan Moore" <nmoore at physics.umn.edu>
- Date: Mon, 21 Apr 2003 06:58:43 -0400 (EDT)
- Organization: University of Minnesota, Physics
- Sender: owner-wri-mathgroup at wolfram.com
Suppose I have two lists of similar length, p1={n[i],a[i]} and p2 = {n[i],b[i]} and I'd like to create a new list, p3 = { n[i], f[ a[i], b[i] ] } if the new list comes from one parent list then it is relatively simple to write and apply a transform w/ map like h[{x_,y_}]:={x,f[y]} newlist = h/@list or = Map[h,list] but two parent lists confuse me thanks again! Nathan Moore, University of Minnesota Physics
- Follow-Ups:
- Re: defining a transform from two lists
- From: Peter <peter1963@totalise.co.uk>
- Re: defining a transform from two lists