MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: powersum with a function with variable count of parameters

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25267] Re: [mg25262] powersum with a function with variable count of parameters
  • From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
  • Date: Sun, 17 Sep 2000 17:33:35 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Presumably you mean something like this:

f[x__] := Inner[Power, Array[10 &, Length[{x}]], {x}, Plus]

In[37]:=
f[a, b, c]

Out[37]=
  a     b     c
10  + 10  + 10

?

Andrzej



on 00.9.17 5:47 PM, Klamser at Klamser at t-online.de wrote:

> 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
> 
> 
> 

-- 
Andrzej Kozlowski
Toyama International University
JAPAN

http://platon.c.u-tokyo.ac.jp/andrzej/
http://sigma.tuins.ac.jp/



  • Prev by Date: Re: powersum with a function with variable count of parameters
  • Next by Date: Re: powersum with a function with variable count of parameters
  • Previous by thread: Re: powersum with a function with variable count of parameters
  • Next by thread: Re: powersum with a function with variable count of parameters