MathGroup Archive 2009

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

Search the Archive

Functions of Arrays

  • To: mathgroup at
  • Subject: [mg102590] Functions of Arrays
  • From: zak <u.gotzes at>
  • Date: Sun, 16 Aug 2009 06:39:22 -0400 (EDT)

Functions can be defined via

f[x1_, x2_] := x1^2 + x2^2

in Mathematica.

But how can I manage it to define a function depending on an array?
I would like to do something like


because the length of the array varies in my application.

  • Prev by Date: Re: Newcomer Question
  • Next by Date: Generating a list numnber in string format
  • Previous by thread: Re: Do-command
  • Next by thread: Re: Functions of Arrays