MathGroup Archive 2009

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

Search the Archive

Re: Two Questions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102929] Re: [mg102883] Two Questions
  • From: "Elton Kurt TeKolste" <tekolste at fastmail.us>
  • Date: Wed, 2 Sep 2009 04:04:58 -0400 (EDT)
  • References: <200909010753.DAA18766@smc.vnet.net>

xRange = Range[5, 20]; yRange = Range[3, 10];

TableForm[Table[f[x, y], {x, xRange}, {y, yRange}], TableHeadings ->
{xRange, yRange}]

	3	4	5	6	7	8	9	10
5       f[5,3]  f[5,4]  f[5,5]  f[5,6]  f[5,7]  f[5,8]  f[5,9]  f[5,10]
6       f[6,3]  f[6,4]  f[6,5]  f[6,6]  f[6,7]  f[6,8]  f[6,9]  f[6,10]
7       f[7,3]  f[7,4]  f[7,5]  f[7,6]  f[7,7]  f[7,8]  f[7,9]  f[7,10]
8       f[8,3]  f[8,4]  f[8,5]  f[8,6]  f[8,7]  f[8,8]  f[8,9]  f[8,10]
9       f[9,3]  f[9,4]  f[9,5]  f[9,6]  f[9,7]  f[9,8]  f[9,9]  f[9,10]
10      f[10,3] f[10,4] f[10,5] f[10,6] f[10,7] f[10,8] f[10,9] f[10,10]
11      f[11,3] f[11,4] f[11,5] f[11,6] f[11,7] f[11,8] f[11,9] f[11,10]
12      f[12,3] f[12,4] f[12,5] f[12,6] f[12,7] f[12,8] f[12,9] f[12,10]
13      f[13,3] f[13,4] f[13,5] f[13,6] f[13,7] f[13,8] f[13,9] f[13,10]
14      f[14,3] f[14,4] f[14,5] f[14,6] f[14,7] f[14,8] f[14,9] f[14,10]
15      f[15,3] f[15,4] f[15,5] f[15,6] f[15,7] f[15,8] f[15,9] f[15,10]
16      f[16,3] f[16,4] f[16,5] f[16,6] f[16,7] f[16,8] f[16,9] f[16,10]
17      f[17,3] f[17,4] f[17,5] f[17,6] f[17,7] f[17,8] f[17,9] f[17,10]
18      f[18,3] f[18,4] f[18,5] f[18,6] f[18,7] f[18,8] f[18,9] f[18,10]
19      f[19,3] f[19,4] f[19,5] f[19,6] f[19,7] f[19,8] f[19,9] f[19,10]
20      f[20,3] f[20,4] f[20,5] f[20,6] f[20,7] f[20,8] f[20,9] f[20,10]


On Tue, 01 Sep 2009 03:53 -0400, "cmoller" <cmoller at dpbioventures.com>
wrote:
> Hi,
> 
> If I create a Table from this function f[x_, y_] := (2 x^2)/y^2 using
> Table[f[x,y],{x,5,20},(y,3,10}] can I add a statement that will adjust
> the table headings to conform with the selected ranges for x and y? I
> have tried TableForm with TableHeadings -> etc, but I must specify the
> exact headings. Can I use a formula with TableHeadings? To be direct,
> in the case above I want the labels to read 5,6..20 and 3,4..10.
> 
> My second question is can I call Mathematica routines with Python?
> 
> All the best.. and thanks,
> 
> Chris
> 
> 
Regards,
Kurt Tekolste



  • References:
  • Prev by Date: Re: Faster alternative to AppendTo?
  • Next by Date: Re: Faster alternative to AppendTo?
  • Previous by thread: Re: Two Questions
  • Next by thread: Re: Two Questions