Re: HoldForm
- To: mathgroup at smc.vnet.net
- Subject: [mg76003] Re: [mg75968] HoldForm
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Mon, 14 May 2007 05:50:04 -0400 (EDT)
- References: <200705140739.DAA22935@smc.vnet.net>
On 14 May 2007, at 16:39, dimitris wrote: > May be I will annoy a little Roman (I am just kiddin'!) > but I have one question about HoldForm (and yes I am > obsessed with it! No kiddin'! It's amazing!) > > I have > > In[19]:= > f[x_] = Log[x]*x; > lowerLim = 0; upperLim = Pi; > > Then > > In[20]:= > o = HoldForm[Integrate[f[x], {x, lowerLim, upperLim}]] > > Out[20]= > HoldForm[Integrate[f[x], {x, lowerLim, upperLim}]] > > However I want the output of Input[20] to be as Out[28]... > > In[28]:= > HoldForm[Integrate[Log[x]*x, {x, 0, Pi}]] > > Out[28]= > HoldForm[Integrate[Log[x]*x, {x, 0, Pi}]] > > Any ideas??? > > Thanks a lot! > > Dimitris > > I think the simplest solution (which probably is not what you want) is: 1) a simple substitution o /. f[x] -> x*Log[x] 2) Alternatively, you can use this; o = Integrate[TraditionalForm[f[x]], {x, lowerLim, upperLim}] Of course I am assuming you are using TraditionalForm for output! If not, replace TraditionalForm with StandardForm. Note that to "release" TraditionalForm you can use: o /. TraditionalForm -> Identity Andrzej Kozlowski
- References:
- HoldForm
- From: dimitris <dimmechan@yahoo.com>
- HoldForm