MathGroup Archive 2009

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

Search the Archive

Re: Two Questions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102896] Re: [mg102883] Two Questions
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 2 Sep 2009 03:59:03 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

f[x_, y_] := (2 x^2)/y^2

TableForm[Table[f[x, y], {x, 5, 20}, {y, 3, 10}],
 TableHeadings -> {Range[5, 20], Range[3, 10]}]


Bob Hanlon

---- 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




  • Prev by Date: Re: Simplifying If expressions
  • Next by Date: Re: Simplifying If expressions
  • Previous by thread: Re: Two Questions
  • Next by thread: Re: Two Questions