Tag Info

Hot answers tagged

15

In addition to the error messages quoted in the question the line returns: GeneralUtilities`Benchmarking`PackagePrivate`plot[ IndexBy[{{{16, 9.37132*10^-6}, . . . IndexBy was removed from 10.1.0: Note that IndexBy will be removed in a future version of Mathematica. It was something that was considered for 10.0.0 but didn't make the cut. – Stefan R ...


11

I am not really familiar with LISP macros but from what little I think I know these do not appear to be strongly related. Rather they appear to be utility functions for function authors; it seems that a number of recently added internal top-level definitions use them. Some of them clearly do use meta-programming type expansions so perhaps they are closer ...


5

AA and BB in the definition of f are local symbols of the Test1`context. If you want to use them in the Global context you have to export them from the package or you have to precede them with their context: f[Test1`Private`AA[3]] 1 Or BeginPackage["Test1`"]; ClearAll[f]; f::usage = ""; AA::usage = ""; BB::usage = ""; Begin["`Private`"]; f[x_AA] := ...


2

It is a matter of having the right $ContextPath at the time n is referenced. This is slightly complicated by the fact that contexts are interpreted at parse time, so typical tricks such as Block do not work. The behavior of Begin and BeginPackage are also different with respect to $ContextPath, but this is all discussed in the documentation, so I will let ...


1

This question has been solved with the help from comments above. In fact, I have to say,I don't really think how to use this function when I begin to edit.In the process of discussing with others, I think there are two ways to solve this problem. If I really want a symbolic output, I must define or declare X and Y at the beginning of the Private part.But I ...



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