MathGroup Archive 2002

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

Search the Archive

Re: Output of left-hand side of expression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35529] Re: Output of left-hand side of expression
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 18 Jul 2002 03:06:12 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <ah3231$suq$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

SetAttributes[ValuePrint, HoldAll]

ValuePrint[a_] := Print[HoldForm[a], "=", a]

and

ValuePrint[M]  returns

M=1+C

Regards
  Jens

"news.eircom.net" wrote:
> 
> Hello
> This is really simple but I cannot find in manuals. (Honestly!)
> 
> Q. How do I display the left-hand side of an expression
> 
> currently I do
> 
> In[148]:=
> M=C+1
> Out[148]=
> 1+C
> 
> but I want
> 
> Out[xxx]=
> M=1+C
> 
> I need this so that I can copy/paste the entire expression into a doc. so
> that it is complete - not just the right hand side or result.
> 
> Is there some magic command that can do this? or system default?
> 
> Thankyou.


  • Prev by Date: Setting Notebook Options in a StyleSheet
  • Next by Date: Re: How to select all polynomials which have degree greater than a give number out of a list of polynomials!
  • Previous by thread: Re: Output of left-hand side of expression
  • Next by thread: Re: Output of left-hand side of expression