Re: Re: powersum with a function with variable count of parameters
- To: mathgroup at smc.vnet.net
- Subject: [mg25304] Re: [mg25273] Re: [mg25262] powersum with a function with variable count of parameters
- From: Otto Linsuain <linsuain+ at andrew.cmu.edu>
- Date: Tue, 19 Sep 2000 03:45:29 -0400 (EDT)
- References: <200009172133.RAA20770@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Excerpts from mail: 17-Sep-100 [mg25273] Re: [mg25262] pow.. by Richard Palmer at bellatlan > Try PowerSum[args__]:=Plus@@{10^#&/@List[args]) > > The args parameter has two (2) underscores following it. This permits 1 or > more arguments. List[args] turns the arguments into a list. the function > 10^# is mapped onto each element of the list (creating another list) and the > elements of the list are finally summed. > > Regards, Richard Palmer > Richard, the function Power is Listable, 10^# & /@ list can therefore be abbreviated to 10^list Otto Linsuain.
- References:
- Re: powersum with a function with variable count of parameters
- From: Richard Palmer <mapsinc@bellatlantic.net>
- Re: powersum with a function with variable count of parameters