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: [mg25277] Re: [mg25262] powersum with a function with variable count of parameters
  • From: Ranko Bojanic <rbojanic at columbus.rr.com>
  • Date: Sun, 17 Sep 2000 17:33:43 -0400 (EDT)
  • Organization: Ohio State University
  • References: <200009170847.EAA17957@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Sunday, September 17,  2000 Peter Klamser <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

Peter:

Try these functions:
f[x_,y__] := Apply[Plus,a^{x,y}]
g[x_,y__] := Apply[Plus,HoldForm[10]^{x,y}]

Regards,
Ranko


  • Prev by Date: Re: Dormand-Prince Runge-Kutta
  • Next by Date: Re: powersum with a function with variable count of parameters
  • Previous by thread: powersum with a function with variable count of parameters
  • Next by thread: Re: powersum with a function with variable count of parameters