|
[Date Index]
[Thread Index]
[Author Index]
Re: Grid Wont Show Formulas
- To: mathgroup at smc.vnet.net
- Subject: [mg125433] Re: Grid Wont Show Formulas
- From: roby <roby.nowak at gmail.com>
- Date: Wed, 14 Mar 2012 00:34:28 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <jjhq9e$j0q$1@smc.vnet.net>
On 11 Mrz., 10:12, Ride <edmun... at gmail.com> wrote:
> Hello,
>
> 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.
>
> Thanks,
>
> Ride
Hi, you have to supress the assignmet.
Grid[{
{Defer[Subscript[R, p] = 0.03], Defer[Subscript[R, B] = 0.02]},
{Defer[Subscript[R, p] - Subscript[R, B] = 0.03 - 0.02 = 0.01],
SpanFromLeft}}, Dividers -> All]
Robert
Prev by Date:
Re: Mathematica loop help
Next by Date:
Re: Map onto a column
Previous by thread:
Grid Wont Show Formulas
Next by thread:
Non linear model fitting with an integral model
|