MathGroup Archive 2005

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

Search the Archive

Re: holding boxes verbatim


"Chris Chiasson" <chris.chiasson at gmail.com> wrote

> As a follow up to those who requested clairification:
>
> Consider the simple examples:
>
> HoldAllComplete[b*(a + s*m)] (*notice the order of the vairables
> inside the inner Times is rearranged on output*)
> HoldAllComplete[(x)^(1/2)] (*notice the reformatting of an expression
> to the power 1/2 is reformatted to the square root of the expression*)
> HoldAllComplete[(x/y)(h/g)] (*notice the elimination of the parenthesis*)
>
> The reason these things happen is that the boxes are parsed into
> Mathematica input such as Times[b,Plus[a,Times[s,m]]].
>
> I need a way to work directly with the boxes, but still at least do
> some variable substitution.
>
> Thank you again for your time.

Some of your concerns are alleviated by using OutputForm[HoldForm[ ... ]]. 
At least in your examples, the only differences between the input and the 
output are the absence of * and unnecessary parentheses.

Carl Woll 



  • Prev by Date: Re: plot on condition
  • Next by Date: Re: (x-y) DiracDelta[x-y] does not simplify to 0
  • Previous by thread: Re: holding boxes verbatim
  • Next by thread: Re: holding boxes verbatim