RE: HoldForm Question
- To: mathgroup at smc.vnet.net
- Subject: [mg41362] RE: [mg41351] HoldForm Question
- From: "David Park" <djmp at earthlink.net>
- Date: Fri, 16 May 2003 06:42:33 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Dana,
How about this...
MatrixForm[
Table[HoldForm[(2*Pi*rp*cp)/8] /. {rp -> r, cp -> c}, {r, 0, 7}, {c, 0,
7}]
The one way you can change something in a Hold is to make a substitution.
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
From: Dana DeLouis [mailto:delouis at bellsouth.net]
To: mathgroup at smc.vnet.net
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
= = = = = = = = = = = = = = = = =