MathGroup Archive 2005

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

Search the Archive

Re: calculate de Jong function


Hi,

your vector is a list and the dimension of the 
vector is the
length of the list

f[x_]:=x.x

does what you want.

Regards
  Jens


"Stefan Schuster" 
<bi1169*delete_from_star_to_star* at fh-weihenstephan.de> 
schrieb im Newsbeitrag 
news:d5skfb$nv0$1 at smc.vnet.net...
> 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
> 



  • Prev by Date: Reading in a file
  • Next by Date: Re: calculate de Jong function
  • Previous by thread: Re: calculate de Jong function
  • Next by thread: Re: calculate de Jong function