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: [mg53996] Re: [mg53972] evalutating expression at different values
  • From: DrBob <drbob at bigfoot.com>
  • Date: Sun, 6 Feb 2005 00:45:14 -0500 (EST)
  • References: <200502050817.DAA22287@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

For instance,

Outer[f,Range@3,Range@4]

{{f[1,1],f[1,2],f[1,3],f[1,4]},{f[2,1],f[2,2],f[2,3],f[2,4]},{
   f[3,1],f[3,2],f[3,3],f[3,4]}}

or

Distribute[f[Range@3,Range@4],List]

{f[1,1],f[1,2],f[1,3],f[1,4],f[2,1],f[2,2],f[2,3],f[2,4],f[3,1],f[3,2],f[3,
     3],f[3,4]}

Put any Lists (built via Table, perhaps) in place of the ranges above.

Bobby

On Sat, 5 Feb 2005 03:17:04 -0500 (EST), mbekkali <mbekkali at gmail.com> wrote:

> 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?
>
>
>
>



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: Vertex labeling
  • Next by Date: Re: Re: Re: New Web Site for Mathematica Users using WikiMedia
  • Previous by thread: evalutating expression at different values
  • Next by thread: Re: evalutating expression at different values