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: [mg53989] Re: [mg53972] evalutating expression at different values
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 6 Feb 2005 00:44:59 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Use Outer.

xlist = {1, 3, 5};
ylist = {2, 3, 4};
Outer[f[#1, #2] &, xlist, ylist]
{{f[1, 2], f[1, 3], f[1, 4]}, {f[3, 2], f[3, 3], f[3, 4]}, {f[5, 2], f[5,
3],
    f[5, 4]}}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: mbekkali [mailto:mbekkali at gmail.com]
To: mathgroup 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: Vertex labeling
  • Previous by thread: Re: evalutating expression at different values
  • Next by thread: Re: evalutating expression at different values