MathGroup Archive 2005

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

Search the Archive

Re: evalutating expression at different values


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