Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: evalutating expression at different values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53994] Re: evalutating expression at different values
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Sun, 6 Feb 2005 00:45:09 -0500 (EST)
  • References: <cu218v$m3n$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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