MathGroup Archive 2005

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

Search the Archive

Re: Help with output form?

  • To: mathgroup at
  • Subject: [mg60986] Re: Help with output form?
  • From: ted.ersek at
  • Date: Thu, 6 Oct 2005 04:08:27 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

A user wanted to make it so that evaluating
(lhs=rhs) would make the assignment and show
lhs=rhs in the output instead of just rhs.
The following more or less does this.


     Block[{$ModifySet}, lhs=rhs; HoldForm[lhs=rhs] ]



  y = a^2 + 2 a b + b^2

But then you will have trouble if you use the above output cell to make a
new input expression.  That can be fixed if you use a package I have
posted at

Then change HoldForm above to HoldTemporary.

     Ted Ersek

  • Prev by Date: NET/Link return array from C++
  • Next by Date: Re: Problem with D and Abs
  • Previous by thread: Re: Re: Help with output form?
  • Next by thread: Re: Re: Help with output form?