MathGroup Archive 2003

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

Search the Archive

Re: HoldForm Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41357] Re: [mg41351] HoldForm Question
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Fri, 16 May 2003 06:40:24 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

There are a number of tricks one can use. Perhaps the simplest is:

MatrixForm[Table[HoldForm[(2*Pi*r*
     c)/8] /. {r -> rr, c -> cc}, {rr, 0, 7}, {cc, 0, 7}]]

Andrzej Kozlowski
Yokohama, Japan
http://www.mimuw.edu.pl/~akoz/


On Thursday, May 15, 2003, at 05:07  pm, Dana DeLouis wrote:

> Hello.  Could someone point me in the right direction on the use of
> Hold?  I cannot seem to find a solution.
>
> In this simple table, I would like to first substitute the values of r 
> &
> c, but then not reduce the equation.
>
> MatrixForm[Table[HoldForm[(2*Pi*r*c)/8], {r, 0, 7}, {c, 0, 7}]]
>
>
> Here, I get a table of all "2 Pi r c / 8"
>
> This is close, but I would like the r's and c's to have the appropriate
> values.
>
> I would like "2 Pi 0 0 / 8",  "2 Pi 0 1 / 8"....etc
>
> I have gone thru all the Hold functions without much luck.
> I could not find anything in the achieves either.
>
> InputForm[Names["Hold*"]]
>
> {"Hold", "HoldAll", "HoldAllComplete", "HoldComplete", "Holdfirst",
> "HoldFirst", "HoldForm", "HoldPattern", "HoldRest"}
>
> Thank you very much for your help.
>
> -- 
> Dana
> Windows XP
> $VersionNumber -> 4.2
> = = = = = = = = = = = = = = = = =
>
>
>
>
>



  • Prev by Date: RE: HoldForm Question
  • Next by Date: Re: HoldForm Question
  • Previous by thread: RE: HoldForm Question
  • Next by thread: Re: HoldForm Question