Re: calculate de Jong function
- To: mathgroup at smc.vnet.net
- Subject: [mg56990] Re: calculate de Jong function
- From: dh <dh at metrohm.ch>
- Date: Thu, 12 May 2005 02:32:25 -0400 (EDT)
- References: <d5skfb$nv0$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Stefan, there is the Length function that gives you the length of e.g. a vector, that is the dimension of your x. In version 5.1 there is the function Norm that can make your life still easier. Sincerely, Daniel Stefan Schuster wrote: > Hello, > > I don't know how I should implement the first de jong function: > > f(x)=Sum((x_i)^2) > where x is a Vector with n dimensions and x_i is the value of the i-th > Dimension. > i.e. all Values of the Vector are squared and added. > > My problem is that I don't know how many Dimensions there are, so I > can't define the borders of the SUM function. > > thanks in advance for help > > Stefan >