Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg35539] Re: Output of left-hand side of expression
  • From: Oliver Ruebenkoenig <ruebenko at donne.imtek.uni-freiburg.de>
  • Date: Thu, 18 Jul 2002 03:06:34 -0400 (EDT)
  • References: <ah3231$suq$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Wed, 17 Jul 2002, news.eircom.net wrote:

> 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?

ToString[HoldForm[M = 1 + C]]

is your friend

Oliver Ruebenkoenig, <ruebenko at imtek.de>
   Phone: ++49 +761 203 7293



  • Prev by Date: Equation to Postscript
  • Next by Date: Reading excel files?
  • Previous by thread: Re: Output of left-hand side of expression
  • Next by thread: Re: Output of left-hand side of expression