[Newbie questions] function composition
- To: mathgroup at smc.vnet.net
- Subject: [mg38050] [Newbie questions] function composition
- From: Francois Bernard Lauze <francois at itu.dk>
- Date: Thu, 28 Nov 2002 14:07:43 -0500 (EST)
- Organization: The IT University Of Copenhagen
- Reply-to: francoisNO at SPAMit-c.dk
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Hope I won't be too imprecise, I just started with mathematica last Friday. 1) I want to define a function, say f, with among others the following property f[f[a,b,c],d,e] should be evaluated as f[f[a,b,1/2],b,1/2] in case b = d and c = d = 1 2) from a list, say {a,b,c}, I would like to generate {{b->0,c->0},{a->0,c->0},{a->0,b->0} I guess I have understood the iterative way of doing that, but what about a more functionqal form? Thanks a lot, Francois -- Francois Lauze The IT University of Copenhagen, Glentevej 67 2400 Kbh NV, Denmark Tel (45) 38 16 89 29