MathGroup Archive 2007

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

Search the Archive

Re: About function to evaluation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74494] Re: About function to evaluation
  • From: "dimitris" <dimmechan at yahoo.com>
  • Date: Fri, 23 Mar 2007 19:04:56 -0500 (EST)
  • References: <ett7mp$ifv$1@smc.vnet.net>

In[214]:=
Print["your list of data"]
data = {{1, 2, 0}, {2, 3, 0}, {4, 1, 0}, {6, 3, 0}, {1, 3, 0}}
Print["your function"]
f[{y_, x_, z_}] = 2*x + 3*y
Print["f applied to data"]
ff = f /@ data
Print["constract your table of all the data"]
tb = MapThread[Append, {data, ff}]
TableForm[tb, TableAlignments -> Center, TableHeadings -> {None,
(StyleForm[#1, FontSize -> 14, FontColor -> Blue] & ) /@ {x, y, z,
HoldForm[f[x, y, z]]}}]


=CF/=C7 Evanescence =DD=E3=F1=E1=F8=E5:
> Hello Dear all:
> My questions are as follows:
> First I definite a function is f[x_,y_]:=2x+3y
> Then I have a list is data={{1,2,0},{2,3,0},{4,1,0},{6,3,0},{1,3,0}}
> For example{y,x,z}={1,2,0}    {y,x,z}={2,3,0}  {y,x,z}={4,1,0}
> {y,x,z}={6,3,0} {y,x,z}={1,3,0}
> I want to take the list data to the function to get the function
> values.
> Then express the form as follows at last
>
>    x     y     f[x,y]
>    2     1       7
>    3     2      12
>    1     4      14
>    3     6      24
>    3     1       9
>
> PS: The z values is zero overall.
> Please tell me how to get the function values in the list
> Thank you very much
> Evanescence 2007 03 21



  • Prev by Date: Re: label graph vertices
  • Next by Date: Re: About function to evaluation
  • Previous by thread: Re: About function to evaluation
  • Next by thread: Re: About function to evaluation