Linked Questions

3
votes
1answer
331 views

How to restrict global variables to within a given notebook? [duplicate]

Possible Duplicate: Is there a way to separate variables between multiple notebooks? I assigned a global variable like a=10; It works in all my notebooks, but ...
2
votes
1answer
186 views

Is there a convenient way to localize all variables in a new notebook? [duplicate]

I often digress to test some others’ code when working on my own problems. Usually, I have to check if there are conflict variables. Of course, it is not a wise way. By contrast, all the variables in ...
0
votes
0answers
35 views

How to restrict the use of variables to the notebook? [duplicate]

I am solving two problems simultaneously in which the variable x is defined. To the left of the image, i'm solving shape functions and matrix operations. But to the right i'm solving Green's function. ...
0
votes
0answers
25 views

How to create a new notebook without the value defined in a former notebook? [duplicate]

When I try to calculate sth new and create a new notebook, the variables in the former notebook will be a trouble. The only I know is use Clear["*"] or quit the ...
454
votes
37answers
98k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
87
votes
6answers
85k views

How do I clear all user defined symbols?

Is there some way to do this other than going to Evaluation -> Quit kernel and firing a new one up?
11
votes
1answer
29k views

What does “Tag Integer is Protected” message mean?

(Newbie question) For every function I define I get this message: When I close and reopen Mathematica, and re-enter the function definition, I don't get the message anymore. What does it mean?
5
votes
2answers
6k views

How do I plot a solution of a differential equation?

I am having trouble generating a plot for a solution to my differential equations. I always end up with just blank axes. ...
5
votes
2answers
2k views

Forecast Future Stock Prices - Brownian Motion - Again

excuse me, I think I have here a technical problem with Mathematica yesterday I posted the question with the title: Forecast Future Stock Prices - Brownian Motion I am still not very experienced but ...
8
votes
1answer
2k views

Use different kernels for different Notebooks

I know that the command LaunchKernels[] starts up four kernels on my machine: ...
7
votes
1answer
449 views

Context “Unique to This Notebook” makes variables black even if they're not defined?

I'm trying to use this technique to keep variables separated between different notebooks. It seems to be working fine, except that variables turn black as soon as they are evaluated — any ideas why ...
0
votes
2answers
169 views

How to avoid restart during development? [duplicate]

Possible Duplicate: How do I clear all user defined symbols? During package development things get messed up quite often. (especially when playing with notations) Is there a simple way to reset ...
3
votes
1answer
149 views

Setting the context automatically based on section

Suppose I have a task that keeps things organized using contexts, so: ...
3
votes
1answer
251 views

automatically add Global` to $ContextPath for all notebooks when using CellContext->Notebook

I have some definitions in my init.m. E.g. my init.m contains this: ...
1
vote
1answer
240 views

What's wrong with my code for finding primes?

From here I found a fast method to make prime list, the python version works well, but my Mathematica version does not. Obviously ,169 is not a prime number. What's ...

15 30 50 per page