MathGroup Archive 2005

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

Search the Archive

Re: Re: Re: Casting a Command as a String

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59020] Re: Re: [mg58962] Re: Casting a Command as a String
  • From: Bruce Colletti <vze269bv at verizon.net>
  • Date: Wed, 27 Jul 2005 01:24:41 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Januk

Please disregard my last note.  Thanks to your reply, here's the code I've sought:

Clear@f;
SetAttributes[f,HoldAll];
f[x_] := ShowGraph[x,PlotLabel->ToString@HoldForm@x];
Scan[f,Unevaluated@{Cycle@4,Cycle@5}];


Bruce
=====================
From: Januk Aggarwal <ggroup at sarj.ca>
To: mathgroup at smc.vnet.net
Subject: [mg59020] Re: [mg58962] Re: Casting a Command as a String

Hi Bruce,

On Mon, 25 Jul 2005 08:09:43 -0500 (CDT), Bruce Colletti wrote

> Thank you for the reply.  The approach, while instructive 
> (expecially in how you've used Hold), is longer than hoped for.  

No worries, I'm still new to Mathematica myself, so I am very aware that 
there are likely much more efficient ways of doing pretty well everything.  
I think I've learned more in a week on this group than

I personally liked Stephen Layland's modification of what I proposed:

> Hrm.  I think a simple Hold function will do the trick a lot easier:

>   SetAttributes[f,HoldAll];
>   f[x_] := ShowGraph[x, PlotLabel -> ToString[HoldForm@x]]


  • Prev by Date: Re: Why won't Horner[] work?
  • Next by Date: Re: Showing Mathematica notebooks within Firefox browser (like Adobe PDF's)
  • Previous by thread: Re: Casting a Command as a String
  • Next by thread: Setting gridlines thickness in Plot