MathGroup Archive 2009

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

Search the Archive

Re: Two Questions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102941] Re: [mg102883] Two Questions
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Wed, 2 Sep 2009 04:07:08 -0400 (EDT)
  • References: <200909010753.DAA18766@smc.vnet.net>

Hi,

one solution is to specify the table-ranges with "With"

With[{
  xmin = 5,
  xmax = 20,
  ymin = 3,
  ymax = 10},
 TableForm[Table[f[x, y], {y, ymin, ymax}, {x, xmin, xmax}],
  TableHeadings -> {Range[ymin, ymax], Range[xmin, xmax]}]
]


Yes, you can call Mathematica routines from Python. Please find the
corresponding directory in your installation and check the contents:

/usr/local/Wolfram/Mathematica/7.0/SystemFiles/Links/Python

Cheers
Patrick

On Tue, 2009-09-01 at 03:53 -0400, cmoller 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
> 
> 



  • References:
  • Prev by Date: Re: Replace in operators
  • Next by Date: Re: Problem with recent file list in Mathematica 7
  • Previous by thread: Re: Two Questions
  • Next by thread: Re: Two Questions