

Side note: f=5 and f:=5 both work with a "Symbol" f. The above process requires that symbol f be initialized, local variable x created, and expression x+5 is permanently held in memory, unless you clear it. Then the expression x+5 will be evaluated using this new variable/value. This creates a delayed set, that any time a value is passed into a symbol reference f as a functional parameter, that value will be given a local context function-specific name of x (not affecting the global definition of x, if there is one). It must always be followed at the end by &.īest example is this: f:=x+5. Notation # is (as stated above) used to mean "a variable goes here" in a pure function ("closure" for you traditional developers). I save you from an explanation about radicals and finding polynomial roots. So, Root is a kind of stenographic writing for roots of polynomials with order > 3.

It's just the first root of the polynomial. That means Mathematica doesn't know how to caculate a symbolic result. So, if your poly is x^2 - 1, using what we saw above: f = #^2 - 1 &īut if we try with a higher order polynomial: f = -1 - 2 #1 - #1^2 + 2 #1^3 + #1^4 & Or you may have a function operating in a list, so: f = #] + #] &Īccording to Mathematica help: Root represents the exact kth root of the polynomial equation f=0. If you have a function operating on two vars, you could do: f = #1 + #2 & That is important for pairing & and # when you have nested functions. The & "pumps in" the variable into the # sign.

If this does not solve the problem, please contact Wolfram Technical Support for assistance.If you want to define a y(x)=x^2 function, you just could do: f = #^2 & Press Command + Shift + G to open a file search dialog and enter “~/Library/Mathematica/”. To navigate to a hidden folder, open the Finder application. These folders may be hidden on your computer. Mathematica will recreate these directories the next time you start the software. You may need to enable your account to see hidden files and folders.Ĭlose Mathematica, then delete or rename all these directories in order to reset Mathematica to its default configuration.

… where is your username on the computer. You can access your activation information through the Wolfram User Portal.īy default, the Base Directory, the User Base Directory, the Local Base directory and the Cache Base Directory are located at: Mathematica may need to be activated again after resetting.
