I am new to Mathematica so I do apologize if my question is too elementary.
In the start of my notebook, I want to make sure that any previous definitions are wiped out so I use the
Exitcommand before any other commands.
For example, consider the following
Quit g = 1/2 Sqrt[1 - v + 4 v^2] g[[2,1]]
then I change last part of the code and I want to re-evaluate the whole cells (I know that I can just re-evaluate the last cell by pressing
Shift+Enter but I don't want to do this as in long codes there are many such cells and I don't want to re-evaluate them one by one)
Quit g = 1/2 Sqrt[1 - v + 4 v^2] g[]
So I press
ctrl+A to select the whole cells and then press
Shift+Enter to evaluate the cells or I use
Evaluate Notebook in the
Evaluation menu bar. But the problem is that the result does not change! I think that there may be a problem in my evaluation method.
1- Can you kindly help me out to solve this issue? :)
2- What is the evaluation sequence in a NoteBook? For example, does it begin with the first cell? and then continues to evaluate the following cells in order.