1
$\begingroup$

I have the following variable:

Subscript[n, 0 ] = 12 (\[Sigma] L^2)/(e h^2)

If I now do:

ClearAll["Global`*"]

And then call:

Subscript[n, 0 ]

I get:

12 (\[Sigma] L^2)/(e h^2)

... So apparently a variable with a subscript cannot be deleted by "clear all".

How can you do it ?

Here for testing:

Subscript[n, 0 ] =12 (\[Sigma] L^2)/(e h^2)
ClearAll["Global`*"]
Subscript[n, 0 ] 
$\endgroup$

marked as duplicate by Kuba Dec 3 '18 at 14:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ Clear[Subscript]. More generally, don't use subscripts at all. $\endgroup$ – AccidentalFourierTransform Dec 3 '18 at 14:54

Browse other questions tagged or ask your own question.