MathGroup Archive 2007

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

Search the Archive

Re: Joining two Tables or something like that.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84221] Re: Joining two Tables or something like that.
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Fri, 14 Dec 2007 04:48:49 -0500 (EST)
  • References: <fjtguv$7p8$1@smc.vnet.net>

spin9 at terra.com.br wrote:
> Hello,
> 
> I'm using a trial version of Mathematica and I need to do a simple
> thing that I don't found in the help neither searching here in the
> group.
> 
> I want to generate two tables based in two functions, say, f1[x_] :=
> x^2 and f2[x_] := x^3
> 
> Now, I want to use the command Table with TableForm (maybe Grid?) to
> generate in a *single* table both values of the above functions,
> example:
> 
> x = -2 to 2,  then:
> 
> Tableform:
> 
> 4  -8
> 1  -1
> 0   0
> 1   1
> 4   8
> 
> The problem is: I don't know how to "join" in a single tableform
> output two tables.

Try

dat = Table[{x^2, x^3}, {x, -2, 2}]

Grid[dat]

TableForm[dat]

-- 
Szabolcs


  • Prev by Date: Re: Re: Expanding powers of cosine
  • Next by Date: Re: NIntegrate bug in Mathematica 6?
  • Previous by thread: Joining two Tables or something like that.
  • Next by thread: Re: Joining two Tables or something like that.