From: fizzy on
I try to use subscripts as much as possible even for defining functions
of say x,y,z....Note that I use the palette to do this which I can't
reproduce here....example.....defining the 'x' component of the Electric
Field which is a function of Cartesian coordinate 'x'......

E subscript Script x [x]


where the E subscript comes from the Basic Math palette....and the
Script x comes from the Special Characters palette.....E is taken from
the Greek letters....

there is no problem with this until I take the derivative....I get the
following output...


(E subscript Script x) ' [x]......

Prior to version 6 I got what i wanted, namely....

E subscript Script x ' [x] ......


......I tried a rule to get rid of the extra parentheses as well as a
Format statement....but neither fixed it....I also tried the Notations
package to Symbolize subscripts but still get the same output.....here
is how I tried to use a rule....

rule={(E subscript Script x) ' [x] -> E subscript Script x '
[x]//HoldForm......}

any ideas?

thanks...jerry blimbaum
From: Thomas Melehan on
Subscripted variables don't behave well.

Use Symbolize[subscripted variable]

Needs[Notation]


On Mar 29, 2010, at 6:20 AM, fizzy wrote:

> I try to use subscripts as much as possible even for defining functions
> of say x,y,z....Note that I use the palette to do this which I can't
> reproduce here....example.....defining the 'x' component of the Electric
> Field which is a function of Cartesian coordinate 'x'......
>
> E subscript Script x [x]
>
>
> where the E subscript comes from the Basic Math palette....and the
> Script x comes from the Special Characters palette.....E is taken from
> the Greek letters....
>
> there is no problem with this until I take the derivative....I get the
> following output...
>
>
> (E subscript Script x) ' [x]......
>
> Prior to version 6 I got what i wanted, namely....
>
> E subscript Script x ' [x] ......
>
>
> .....I tried a rule to get rid of the extra parentheses as well as a
> Format statement....but neither fixed it....I also tried the Notations
> package to Symbolize subscripts but still get the same output.....here
> is how I tried to use a rule....
>
> rule={(E subscript Script x) ' [x] -> E subscript Script x '
> [x]//HoldForm......}
>
> any ideas?
>
> thanks...jerry blimbaum


From: DrMajorBob on
> I try to use subscripts as much as possible even for defining functions
> of say x,y,z...

No surprise if you have problems, then.

I prefer math and programming... not typesetting.

Bobby

On Mon, 29 Mar 2010 05:20:50 -0500, fizzy <fizzycist(a)knology.net> wrote:

> I try to use subscripts as much as possible even for defining functions
> of say x,y,z....Note that I use the palette to do this which I can't
> reproduce here....example.....defining the 'x' component of the Electric
> Field which is a function of Cartesian coordinate 'x'......
>
> E subscript Script x [x]
>
>
> where the E subscript comes from the Basic Math palette....and the
> Script x comes from the Special Characters palette.....E is taken from
> the Greek letters....
>
> there is no problem with this until I take the derivative....I get the
> following output...
>
>
> (E subscript Script x) ' [x]......
>
> Prior to version 6 I got what i wanted, namely....
>
> E subscript Script x ' [x] ......
>
>
> .....I tried a rule to get rid of the extra parentheses as well as a
> Format statement....but neither fixed it....I also tried the Notations
> package to Symbolize subscripts but still get the same output.....here
> is how I tried to use a rule....
>
> rule={(E subscript Script x) ' [x] -> E subscript Script x '
> [x]//HoldForm......}
>
> any ideas?
>
> thanks...jerry blimbaum


--
DrMajorBob(a)yahoo.com

From: Christoph Lhotka on
Hi, as you may already know, the extra parentheses are not a problem
from a calculational point of view (Mathematica will treat them
correctly). I would leave them at the stage of calculations.

If it is just a matter of format, try (at the end of your calculations)
something like:

1)

expr=Derivative[1,0][Subscript[f,1,2]][x,y]

form=Derivative[ders__][Subscript[f_,sub__]][arg__]:>Subscript[f,sub,ders][arg]

expr/.form

therefore, the first subscripts will refer to the indices, the second
half to the derivatives. Another possibility would be to

2)

form=Derivative[ders__][Subscript[f_,sub__]][arg__]:>Derivative[ders][ToString[Subscript[f,sub],StandardForm]][arg]

expr/.form

To get the "old" format of Mathematica, but please note, that the header
of the function is now converted to a string.

Christoph



On 03/30/2010 12:04 PM, DrMajorBob wrote:
>> I try to use subscripts as much as possible even for defining functions
>> of say x,y,z...
>>
> No surprise if you have problems, then.
>
> I prefer math and programming... not typesetting.
>
> Bobby
>
> On Mon, 29 Mar 2010 05:20:50 -0500, fizzy<fizzycist(a)knology.net> wrote:
>
>
>> I try to use subscripts as much as possible even for defining functions
>> of say x,y,z....Note that I use the palette to do this which I can't
>> reproduce here....example.....defining the 'x' component of the Electric
>> Field which is a function of Cartesian coordinate 'x'......
>>
>> E subscript Script x [x]
>>
>>
>> where the E subscript comes from the Basic Math palette....and the
>> Script x comes from the Special Characters palette.....E is taken from
>> the Greek letters....
>>
>> there is no problem with this until I take the derivative....I get the
>> following output...
>>
>>
>> (E subscript Script x) ' [x]......
>>
>> Prior to version 6 I got what i wanted, namely....
>>
>> E subscript Script x ' [x] ......
>>
>>
>> .....I tried a rule to get rid of the extra parentheses as well as a
>> Format statement....but neither fixed it....I also tried the Notations
>> package to Symbolize subscripts but still get the same output.....here
>> is how I tried to use a rule....
>>
>> rule={(E subscript Script x) ' [x] -> E subscript Script x '
>> [x]//HoldForm......}
>>
>> any ideas?
>>
>> thanks...jerry blimbaum
>>
>
>


 | 
Pages: 1
Prev: Multi-dimensional Fourier series
Next: Histogram