setting discrete values for a function -- newbie
- To: mathgroup at smc.vnet.net
- Subject: [mg97600] setting discrete values for a function -- newbie
- From: "Karsten W." <Karsten.G.Weinert at googlemail.com>
- Date: Mon, 16 Mar 2009 06:28:08 -0500 (EST)
Hello, my task is to set some function values f[[a], f[b], ... to zero. Is there a nicer way to do this than this one: Clear[f]; args = Partition[{a,b,c}, 1]; Apply[(f[#] = 0 )&, args, {1}]; Especially, can I avoid calling Partition? Best wishes, Karsten.
- Follow-Ups:
- Re: setting discrete values for a function -- newbie
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: setting discrete values for a function -- newbie