MathGroup Archive 1998

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

Search the Archive

How to use HoldForm within Module

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15259] How to use HoldForm within Module
  • From: "Chee Lim Cheung" <cheelc at mbox2.singnet.com.sg>
  • Date: Wed, 30 Dec 1998 01:50:21 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Hello Mathematica gurus,

I am new to Mathematica. I need to use a function in its original form
within Module.

e.g.,doNOTCHANGE[f_]:=Module[{g},g=HoldForm[f];Print[g]]

may not give what I want as f is already rearranged according to
Mathematica's lexicographical order within Module,i.e.,HoldForm[f] in
Module may not be exactly of the same form as f as defined. One example
is f=-1(UnitStep[t-1]-UnitStep[t-2]).Can any of you out there show me
the way to get f in its original form inside Module?

Thanks
Chee


  • Prev by Date: Contour Plotting on a sphere
  • Next by Date: mathlink program hanging in MLAnswer
  • Previous by thread: Re: Contour Plotting on a sphere
  • Next by thread: Re: How to use HoldForm within Module