MathGroup Archive 2007

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

Search the Archive

Re: Hold and Equal


Murray Eisenberg schrieb:
> OK, that does what I explicitly asked for, but what I asked for was an 
> oversimplified case of what I actually wanted...
...
> Moreover, if I try, say,
> 
>    step[Hold[Integrate[x^2,x]]]
> 
> then Hold appears on both sides of the resulting equality.
> 
> What I'm after is something that will allow me to show an equation of 
> the form, say,
> 
>      integral = evaluatedIntegral
> 
> where the left-hand side uses the integral sign and a "dx" (as an 
> unevaluated expression), the right-hand side evaluates that integral, 
> and the entire expression appears in traditional mathematical form.
> ...

And the attribute HoldAll (or HoldFirst) doesn't work in your version?

(the HoldForm can be seen, because I converted output to InputForm before
copy/paste). It is invisible in the Notebook when using Standard- or
TraditionalForm

step[Integrate[x^2, x]]

--> HoldForm[x^3/3 = x^3/3]

SetAttributes[step, HoldAll]
step[Integrate[x^2, x]]

--> HoldForm[Integrate[x^2, x] = x^3/3]

Peter


  • Prev by Date: Re: Problems...
  • Next by Date: About Mathematica Evaluation...
  • Previous by thread: Re: Hold and Equal
  • Next by thread: Re: Re: Hold and Equal