MathGroup Archive 2012

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

Search the Archive

Grid Wont Show Formulas

  • To: mathgroup at
  • Subject: [mg125393] Grid Wont Show Formulas
  • From: Ride <edmund.r at>
  • Date: Sun, 11 Mar 2012 04:09:33 -0500 (EST)
  • Delivered-to:


I am new to Mathematica and am attempting to should some formulas and workings in a grid in a notebook.  The formulas show up fine with the following entry:

Grid[{{Style["Excess Return", Bold], 
    Style["Relative Return", Bold]}, {Subscript[R, p] - Subscript[R, 
     B], Subscript[R, P]/Subscript[R, B] - 1}},
  Dividers -> {{False, True}, {False, True}}
  ] // TraditionalForm

Then I have the following entry to set the parameters for one of formulas and display the workings:

Grid[{{Subscript[R, p] = 0.03, 
   Subscript[R, B] = 0.02}, {Subscript[R, p] - Subscript[R, B] = 
    0.03 - 0.02 = 0.01, SpanFromLeft}}]

However I don't get a grid showing the assignments and the workings.  Instead I get the following two errors:

Set::write: Tag Plus in -0.02+0.03 is Protected. >>
Set::write: Tag Plus in -0.02+0.03 is Protected. >>

and then I get this grid:

 {0.03, 0.02},
 {0.01, \[SpanFromLeft]}

What am I doing wrong?

Also, I would like to be able to change the values of the assignment in the grid and have all the calculations below follow through with the assignment.  For now, I'd just like to get the grid to work.



  • Prev by Date: Re: maximize crosscorrelation
  • Next by Date: Re: Conformal Mapping of Mandelbrot Set
  • Previous by thread: Re: Typing Formula Steps in a Grid
  • Next by thread: Re: Grid Wont Show Formulas