Re: powersum with a function with variable count of parameters
- To: mathgroup at smc.vnet.net
- Subject: [mg25278] Re: powersum with a function with variable count of parameters
- From: "Klamser" <Klamser at t-online.de>
- Date: Tue, 19 Sep 2000 03:45:06 -0400 (EDT)
- References: <8q22cs$hr0@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
f[x__] := Apply[Plus, (10^{x})]
"Klamser" <Klamser at t-online.de> schrieb im Newsbeitrag
news:8q22cs$hr0 at smc.vnet.net...
> 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
>
>
>