Tag Info

Hot answers tagged

9

Do not try to redefine a System` symbol. It is almost guaranteed to cause trouble sooner or later. Instead, here's how to deal with name collisions: If your function is not part of a package, then make sure that you never used symbol names that start with a capital letter. This way you can avoid name collisions. The same applies to any non-public ...


9

Caveat This is the known risk with any user definition upon a Symbol starting with a capital letter that is not explicitly called from a user context. It is not adequate to believe that you will not need any new functionality that is added as the new function may itself be required by other functions which you do need, including existing ones if they are ...


5

Description ? at the beginning of a line is the short from of Information. Given a pattern that matches multiple Symbols Information returns a list of them in alphabetical (canonical) order, in columns top to bottom and left to right. You are therefore asking how you can modify the behavior of this System function. You would need some way of storing the ...


4

In Version 10 you can now create ImplicitRegions and Integrate over them: region = ImplicitRegion[And @@ {0 <= x, x <= 1 - y, -1 <= y, x + 2 y <= 2}, {x, y}] Now Integrate[x + y, {x, y} ∈ region] 2/3


3

You can just add something like ClearAll["MyPackage`*", "MyPackage`*`*"] to the beginning of the package. Then you don't have to restart the kernel, just re-load the package the most convenient possible way (<<mypackage.m or if you edit it in the front end, then simply re-run it). You need to be more cautious if your package maintains some sort ...


2

In order to do something at startup, like adding a path so that Mathematica can find certain files, you need to use init.m.


2

The following was supposed to be a comment, but since I'm new here, I have to put it into an answer. I used the MathPSfrag package already in Mathematica versions 6, 7, 8 and 9, and everything worked fine (under Windows 7 and 8). Now, with Mathematica 10, the package is indeed no longer working. However, the problem is more serious than just an outdated ...


2

You want all the basic stuff, the same stuff I do, but unfortunately it seems support here is pretty thin on the ground. Some others I've found: https://github.com/melton1968/math - seems to be a full attempt at a parser, which is amazing, but it doesn't appear to be functioning properly right now. As much as I'd like to deep dive on that, I don't have the ...


2

You can use an external R, as described in the answer you link to, and you can install packages into this external R installation. The errors you see are not related to this. Here are the problems with the code: REvaluate needs to be used with a single R expression. It's not possible to pass it multiple expressions. Enclose everything in { ... } to ...


1

Problem Solved. If I start Mathematica 10 and immediately run Context["Classify"] it will says Context::notfound: Symbol Classify not found and if I run Context[Classify] note: without quote. Mathematica will tell you: "Global`" But When I run Needs["MachineLearning`"] and then run Context["Classify"] Mathematica gives System` ...



Only top voted, non community-wiki answers of a minimum length are eligible