MathGroup Archive 2010

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

Search the Archive

Re: Show left hand side

  • To: mathgroup at
  • Subject: [mg111036] Re: Show left hand side
  • From: "David Park" <djmpark at>
  • Date: Sun, 18 Jul 2010 01:02:37 -0400 (EDT)

I'm not certain exactly what you are looking for here, but maybe this simple
example will help. Copy and paste the entire expression into one cell of a
notebook and evaluate. You could develop an annotated derivation this way by
adding steps and reevaluating.

Print["Starting equation"] 
radius == HoldForm[1 + 1] 
Print["Evaluate the rhs"] 
%% // ReleaseHold 
Print["Add x to both sides"] 
# + x & /@ %% 
Print["Square the result."] 
#^2 & /@ %% 
Print["Expand the right hand side."] 
MapAt[Expand, %%, 2] 

David Park
djmpark at  

From: Sam Takoy [mailto:sam.takoy at] 


When Mathematica prints an expression not terminated by a semicolon, I 
find it hard to match up the output with what I was trying output when a 
block of commands has many commands not terminated by a semicolon. Is 
there a way to get Mathematica to output the LHS so when I have R=1+1 it 
outputs R = 2 or something like that.


  • Prev by Date: Re: total newbie
  • Next by Date: Re: total newbie
  • Previous by thread: Re: Show left hand side
  • Next by thread: Re: Show left hand side