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
- Follow-Ups:
- Re: How to use HoldForm within Module
- From: Ken Levasseur <Kenneth_Levasseur@uml.edu>
- Re: How to use HoldForm within Module