Re: powersum with a function with variable count of parameters
- To: mathgroup at smc.vnet.net
- Subject: [mg25270] Re: [mg25262] powersum with a function with variable count of parameters
- From: "Matt Herman" <Henayni at hotmail.com>
- Date: Sun, 17 Sep 2000 17:33:37 -0400 (EDT)
- References: <200009170847.EAA17957@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Well, what you can do, is f[list_]:= Sum[10^list[[r]], {r,1,Length[list]} Matt ----- Original Message ----- From: "Klamser" <Klamser at t-online.de> To: mathgroup at smc.vnet.net Subject: [mg25270] [mg25262] powersum with a function with variable count of parameters > Hi, > > how can I write a function f[x_,xi__]=10^x+10^xi, that returns > f[1,2,3]->10^1+10^2+10 ^3. > > When i use the above definition, I only get > > 10^1+10^2^3 > > But I want to get > > 10^1+10^2+10 ^3 > > Regrads, Peter > > > >
- References:
- powersum with a function with variable count of parameters
- From: "Klamser" <Klamser@t-online.de>
- powersum with a function with variable count of parameters