MathGroup Archive 2009

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

Search the Archive

Re: Two Questions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102910] Re: [mg102883] Two Questions
  • From: "Mitch Stonehocker" <mitch at aitoconsulting.com>
  • Date: Wed, 2 Sep 2009 04:01:34 -0400 (EDT)
  • References: <200909010753.DAA18766@smc.vnet.net>

Is this what you are after?

minX = 5;
maxX = 20;
minY = 3;
MaxY = 10;

lableX = Table[x, {x, minX, maxX}];
lableY = Table[y, {y, minY, MaxY}];

TableForm[Table[f[x, y], {x, minX, maxX}, {y, minY, MaxY}], 
 TableHeadings -> {lableX, lableY}]

Cheers,
Mitch 


-----Original Message-----
From: cmoller [mailto:cmoller at dpbioventures.com] 
Sent: Tuesday, September 01, 2009 3:53 AM
To: mathgroup at smc.vnet.net
Subject: [mg102910] [mg102883] Two Questions

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




  • References:
  • Prev by Date: Re: Nesting functional commands
  • Next by Date: Re: Nesting functional commands
  • Previous by thread: Two Questions
  • Next by thread: Re: Two Questions