MathGroup Archive 2005

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

Search the Archive

Re: evalutating expression at different values


This is an example of what you want:

In[1]:= Outer[f[#1,#2]&,Array[x,3],Array[y,3]]

Out[1]= 
{{f[x[1],y[1]],f[x[1],y[2]],f[x[1],y[3]]},{f[x[2],y[1]],f[x[2],y[2]],
    f[x[2],y[3]]},{f[x[3],y[1]],f[x[3],y[2]],f[x[3],y[3]]}}

Steve Luttrell

"mbekkali" <mbekkali at gmail.com> wrote in message 
news:cu218v$m3n$1 at smc.vnet.net...
>I have a function f[x,y] and I would like to evaluate it at N different
> specific values of x[z] and y[z], so that at the end I have a NxN
> matrix with different expressions of z.  It should produce something
> similar to the output of function Table, however, with x[z] and y[z]
> taken specific values rather than values of fixed periodicity, like
> {min,max,step}.  How do I do that?
> 



  • Prev by Date: Re: Vertex labeling
  • Next by Date: Re: Re: Contour Integration
  • Previous by thread: Re: evalutating expression at different values
  • Next by thread: Vertex labeling