In the Wolfram Language, attempting to define variables with subscripts can lead to errors. You can resolve any issues with defining such variables by using the function Symbolize in the Notation Package.
The Wolfram Language uses various syntactic rules to interpret input. In particular, expressions with subscripts are treated as functions of their components and not independent symbols. This can lead to recursion errors or other undesired behavior.
Expressions containing subscripts, superscripts or more general symbols can be specified as variables using the Symbolize function in the Notation Package.
- Load the Notation Package into your Wolfram Language session using the command:
A window opens containing a truncated version of the Notation palette.
- Click the Symbolize button. The Symbolize function template is inserted into the current notebook, and the placeholder square is selected.
- Type or paste the expression you would like to use as a variable into the highlighted placeholder square.
- Evaluate the Symbolize expression with Shift+Enter.
The Symbolized expression is now interpreted as an atomic expression and not a function of its components.
Please note that when using the Notation Package and the Symbolize function, it is necessary to insert the function template from the relevant palette.
Whether you have a question about billing, activation or something more technical, we are ready to help you.
1-800-WOLFRAM (+1-217-398-0700 for international callers)
8am–5pm US Central Time
- Product registration or activation
- Pre-sales information and ordering
- Help with installation and first launch
Advanced Technical Support (for eligible customers)
8am–7pm US Central Time
8:30–10am & 11am–5pm US Central Time
- Priority technical support
- Product assistance from Wolfram experts
- Help with Wolfram Language programming
- Advanced installation support