MathGroup Archive 2007

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

Search the Archive

Re: About Table


lyst={3,6,9,4.4,6.7,5,3,6.2,3.7,5.2,6.3,9,10,12,13.2};

myN[x_Integer]:=x;
myN[x_]:=N[x];

Flatten[Table[{myN[i],myN[j],lyst[[10i+2j+1]]},
      {i,0,1,1/2},{j,0,2,1/2}],1]//TableForm


Bob Hanlon

---- Evanescence <origine26 at yahoo.com.tw> wrote: 
> Hello dear all:
> My questions are as follows:
> First I have a list is{3,6,9,4.4,6.7,5,3,6.2,3.7,5.2,6.3,9,10,12,13.2}
> Then I want to have tableform is as follows:
> 
>     0      0       3
>     0     0.5     6
>     0       1      9
>     0     1.5    4.4
>     0       2     6.7
>    0.5     0       5
>    0.5    0.5     3
>    0.5      1     6.2
>    0.5    1.5    3.7
>    0.5      2     5.2
>     1        0     6.3
>     1       0.5     9
>     1         1     10
>     1       1.5    12
>     1          2    13.2
> 
> Please tell me how can I do it.
> Thank you very much
> Evanescence 2007 04 11
> 
> 



  • Prev by Date: Re: About Table
  • Next by Date: Units of MaxBend?
  • Previous by thread: Re: About Table
  • Next by thread: Re: About Table