Linked Questions

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 $ \...
user160917's user avatar
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 ...
jlconlin's user avatar
  • 247
2 votes
3 answers
417 views

Why does Clear[] not work on subscripted variables? [duplicate]

Where is the problem? ...
RF_1's user avatar
  • 692
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. ...
John's user avatar
  • 1
0 votes
1 answer
358 views

How to clear this variable [duplicate]

I can not clear this variable. How to clear?
Takemi's user avatar
  • 1
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 ...
james's user avatar
  • 3,093
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 ...
Scott's user avatar
  • 31
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, ...
rcollyer's user avatar
  • 34.1k
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 ...
user avatar
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]] ...
Osiris Xu's user avatar
  • 1,029
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: ...
David's user avatar
  • 15k
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 ...
matheorem's user avatar
  • 17.4k
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 ...
IsaacS's user avatar
  • 583
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: ...
Simon Woods's user avatar
  • 85.4k
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: ...
Christian Ivicevic's user avatar

15 30 50 per page