MathGroup Archive 2009

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

Search the Archive

Re: Defining function with indexed variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99350] Re: Defining function with indexed variables
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 3 May 2009 05:23:36 -0400 (EDT)
  • References: <gth5g1$ev0$1@smc.vnet.net>

Hi,

and you are sure that

f[x_List]:=x.x

is not better ?

Regards
   Jens

Paul Smith wrote:
> Dear All,
> 
> How can one define the function
> 
> f(x1,x2,...,x100) := x1^2 + x2^2 + ... + x100^2
> 
> using superscripts?
> 
> Thanks in advance,
> 
> Paul
> 


  • Prev by Date: Re: Defining function with indexed variables
  • Next by Date: Re: interactive 3d graphic in a palette?
  • Previous by thread: Re: Defining function with indexed variables
  • Next by thread: Re: Defining function with indexed variables