Linked Questions
25 questions linked to/from Clear complains that a subscripted variable is not a symbol or a string?
4
votes
2
answers
7k
views
How do I clear all variables with subscripts? [duplicate]
Possible Duplicate:
Clear complains that a variable is not a symbol or a string?
Clear["Global*"]` Works for most variables, however if i do something like
$ \...
1
vote
0
answers
4k
views
How to assign (and retrieve) variables with subscripts? [duplicate]
I like to give subscripts to my variable names when the variables are related. I.e.,
Subscript[r, i] = 3
3
A problem arises when I later assign ...
2
votes
3
answers
417
views
Why does Clear[] not work on subscripted variables? [duplicate]
Where is the problem?
...
0
votes
1
answer
969
views
Can't clear variables with subscripts [duplicate]
ClearAll["Global`*"]
doesn't clear subscripted variables. It won't clear these variables for example.
...
0
votes
1
answer
358
views
How to clear this variable [duplicate]
I can not clear this variable.
How to clear?
1
vote
0
answers
290
views
How to clear all subscripted variables? [duplicate]
I have the following variable:
Subscript[n, 0 ] = 12 (\[Sigma] L^2)/(e h^2)
If I now do:
ClearAll["Global`*"]
And then ...
1
vote
0
answers
59
views
Mathematica says that a variable is not defined, yet it gives me a value [duplicate]
this is probably a dumb question (Mathematica noob here) but I can't figure out what's going on. I have a variable that I assign a value to and use, then later in the notebook I assign it a different ...
221
votes
2
answers
14k
views
What is the distinction between DownValues, UpValues, SubValues, and OwnValues?
When reading through the documentation, you often encounter the phrases DownValues, UpValues, ...
100
votes
5
answers
10k
views
Using the Mathematica front-end efficiently for editing notebooks
Background:
I have used Vim for 15+ years. There is a certain "one"-ness with the editor one achieves. Emacs users also experience this. Notepad users do not.
My current interaction with the ...
55
votes
2
answers
31k
views
Can we use letter with a subscript as a variable in Mathematica?
I tried
Subscript[a, 0] = 1
(* 1 *)
Clear[Subscript[a, 0]]
...
24
votes
2
answers
8k
views
Error entering equation in DSolve
I entered a command incorrectly as follows:
DSolve[{y'[x]=y[x]},y[x],x]
I am now experiencing:
...
7
votes
3
answers
4k
views
How to Clear variables with apostrophe?
An apostrophe ' is often used when we want to distinguish two variables. For example, if we already have a variable t and we may ...
6
votes
6
answers
8k
views
bar and hat only apply to certain letters
(I'm navigated from stackoverflow.com where I asked almost the same question)
I'm a beginner in Mathematica. Like shown in the image below, I'm trying to put hat ...
16
votes
1
answer
629
views
Selectively clear DownValues
How can I clear a subset of a symbol's DownValues ?
For example, suppose I have created some DownValues for $f$ like this:
...
3
votes
4
answers
247
views
Pack Solve results into a vector
I am currently using a really easy function to get the eigenvectors of a corresponding eigenspace:
...