0
$\begingroup$

I've gotten into the habit of using subscripted variables, invoking the Notation package and Symbolize. Now, I'd like to be able to write something like

In[1]:= Sum[a<sub>i<sub> ,{i,1,2}]
Out[1]:= a<sub>1<sub> + a<sub>2<sub>

but get

Out[1]:= 2 a<sub>i<sub>

I've tried RemoveSymbolize[myBoxes] to get rid of definitions, but it has no effect. I know that

In[2]:= Sum[Subscript[a,i],{i,1,2}]

works as I'd like and may have to do, but I'm curious if the subscripted variables entered using Ctrl+_ can be made to work.

$\endgroup$
1
  • $\begingroup$ When you use Symbolize the the complete variable plus subscript is treated as a single symbol -- which is the purpose of the function. To see this wrap Head around your symbolized variable and then try AtomQ. Then try that again with a "normal" subscripted variable. So the "i" that is subscripted is not available for iterations when you use Symbolize ...by design. To remove symbols evaluate ClearNotations. $\endgroup$ Commented Dec 10, 2013 at 20:52

1 Answer 1

1
$\begingroup$

Evaluating as per the image (using a pasted image because symbolize does not paste well) will help clear things up:

enter image description here

$\endgroup$
1
  • $\begingroup$ Thanks, I wasn't able to get back to this before now, but I appreciate your quick and clear response. I have the correct "picture" in my head now for how Symbolize works. Now I need to play around and see why the examples for using markup formats in the Exchange (html, LaTeX, etc.) didn't work for me. $\endgroup$
    – tes
    Commented Jan 6, 2014 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.