Typing Formula Steps in a Grid
- To: mathgroup at smc.vnet.net
- Subject: [mg125387] Typing Formula Steps in a Grid
- From: Ride <edmund.r at gmail.com>
- Date: Sun, 11 Mar 2012 04:07:27 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
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?
Thanks,
Ride
- Follow-Ups:
- Re: Typing Formula Steps in a Grid
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Typing Formula Steps in a Grid