New answers tagged

2

I think in general no one know's how to express roots of polynomials in terms of radicals, or even determine when it's possible. Quintics has been solved and there's a Mathematica package to solve them. Radicals.nb SolveQuintic[x^5 + 20 x + 32 == 0, x] For sextics I believe the most that is known is how to determine which equations can be expressed in ...


8

As a more direct answer to the question of memory we can check with a test. In[1]:= MemoryInUse[] (* Out[1]= 34093104 *) In[2]:= bunchOfSymbols = Table[Unique[], {26000}]; In[3]:= foo[Sequence @@ bunchOfSymbols] := bar; In[4]:= MemoryInUse[] (* Out[4]= 43032256 *) In[5]:= Remove @@ bunchOfSymbols; In[6]:= MemoryInUse[] (* Out[6]= 41577200 *) ...


18

I decided to take one of my large packages and Remove all symbols in the Private` context that have no definitions attached to them ... And is there any risk if only those symbols that are not used globally or that do not have definitions are carefully removed? In general, the complexity of the Mathematica language and the intricacies of the ...


3

Once you've loaded the package in with Needs then you can find all the included functions using Names with a wildcard: Needs["VariationalMethods`"] Names["VariationalMethods`*"] (* {"EulerEquations", "FirstIntegral", "FirstIntegrals", "NVariationalBound", "VariationalBound", "VariationalD"} *) or Needs["PolyhedronOperations`"] ...


3

I have found $Epilog utterly unreliable for this. Not all ways of quitting Mathematica evaluates $Epilog. And of course, there is the problem that a different package may (re)set it. I have no idea how Compile implements this, but I have two suggestions: Place all your temporary files in a special folder that you empty on load. Be careful how you handle ...


5

I am a bit late, but here is a short paper of mine with Wolfram Language code. It covers Bayesian regression as well as model selection. Take notice of the books in the references. Excellent for self study. http://djafari.free.fr/MaxEnt2014/papers/04_paper.pdf


2

Glancing through your last posts, it seems to me that you are still looking for a library under Mathematica that enumerates all vertices of a polytope. But you are very close to the answer. It is the C-implementation of the cddlib library for Mathematica by Komei Fukuda. This also works fine under Mathematica. There, the library is called Cddmathlink and you ...


3

Shortly: Here what is going on, aTestFunction was created in aPackage` context, then you've removed it and since the current context is aPackage`Private` the definition of your function is created there. More precisely: New symbols are created in current $Context during read time, (1) the existance of aTestFunction between BeginPackage and Begin lines ...


1

Manipulate is HoldAll and the body isn't evaluated till it is displayed. That's because effectively there is Dynamic[body]. I once explained that a little in Manipulate in Manipulate. So inside the package it won't do anything, as no output is generated. You can see this here: ClearAll[x]; Manipulate[x = 5, {y, Null}]; Pause[1]; x Manipulate[x = 5, {y, ...



Top 50 recent answers are included