MathGroup Archive 2012

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

Search the Archive

Typing Formula Steps in a Grid

  • To: mathgroup at
  • Subject: [mg125387] Typing Formula Steps in a Grid
  • From: Ride <edmund.r at>
  • Date: Sun, 11 Mar 2012 04:07:27 -0500 (EST)
  • Delivered-to:

Good day all,

I am a new Mathematica Home user.  While typing out the workings for a formula in a Grid, Mathematica complains that the operators are protected and will not display the formulas.

The first Grid works fine:

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 when I do an example grid I expect to see the assignments in the top row and the workings in the second row.

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, all I get back is 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 this grid:

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

May someone guide me to the correct section of the help to fix this?



  • Prev by Date: Re: Real time sound processing?
  • Next by Date: Re: Listplot with appendto list
  • Previous by thread: More general idea re operators
  • Next by thread: Re: Typing Formula Steps in a Grid