MathGroup Archive 2007

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

Search the Archive

Re: Joining two Tables or something like that.


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.