Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [internals]

Questions about internal, possibly undocumented functions and/or the construction, implementation or design of Mathematica

2
votes
1answer
117 views

How to find the list of all the elementary functions in mathematica?

Is there any command to give me the list of all the embedded elementary functions in Mathematica like Cos Sin Cosh Sinh Log and so on?
11
votes
2answers
354 views

On random numbers extracted from NormalDistribution by two different methods under the same seed

I've encountered the following situation within various trials. Why does such a difference arise between bulk sampling and one-by-one sampling? ...
8
votes
0answers
40 views

Styles inheritance stack for elements of a Graphics/GraphicsBox

You can skip to the bottom if you only care about the question. My original goal was to control FrameLabel color from a notebook level opposed to doing it ...
6
votes
1answer
58 views

How to prevent or clear the cache used by ComponentMeasurements

Let's restart the kernel and take the first example from ref/ComponentMeasurements: Timings indicate some kind of caching mechanism. It seems useful in many cases. ...
15
votes
2answers
202 views

DistributeDefinitions is evaluating the definitions, and this only for a large number of definitions

I am using Mathematica 11.3 and this seems to me to be a bug. I would like, if possible, some idea on a workaround. Here is an example of a trivial code that works as expected: ...
3
votes
1answer
70 views

Memory consumption problem when reading png images with Image`ImportExportDump`ImageReadPNG

For importing png images I use often: image = First@Image`ImportExportDump`ImageReadPNG[fileName] (see: ?*`*PNG*) since this is faster than: ...
0
votes
0answers
51 views

NDSolve:Method of Lines: Spatial Discretization: bother doing it explicitly or just implement as internal routine?

My question is whether one's code must always contain the actual description of spatial discretization written explicitly or whether the Method of Lines can be called as an internal routine. If so ...
4
votes
1answer
50 views

AccuracyGoal & PrecisionGoal: how to know which was used to yield the result?

With NMinimize (or many other functions), when an answer is found without any warnings, this means that a certain convergence criterium was achieved. It could be ...
2
votes
1answer
29 views

Just typing Import[] tries to list folders in a directory, and it is slow over sshfs

It appears that Mathematica tries to list the folder that you're typing into an Import[] statement. Since I'm working with folders mounted over sshfs and they ...
3
votes
1answer
82 views

Extracting Internal Visualization Information (PlotTheme, MeshRegion, FaceNormals, etc.)

Sometimes, you can tell Mathematica knows something internally, possibly because it visualizes the known quantities for you, but can't figure out how to get it to tell you them explicitly. I'm having ...
5
votes
1answer
138 views

How to convert a RawArray of bytes to ByteArray?

A ByteArray can be converted to a RawArray: ...
3
votes
0answers
72 views

Extract explicit region (integration bounds) from ImplicitRegion

Using an ImplicitRegion in NIntegrate by far best performance is obtained by using ...
0
votes
1answer
104 views

How can I make Mathematica agree that 0^0 = 1? [duplicate]

Occasionally I encounter messages like Power::indet: Indeterminate expression (0. + 0. I)^0 encountered. (or just 0^0). I believe I can safely declare these to be 1 for all of my purposes. Is ...
9
votes
1answer
210 views

What's purpose of the Internal`ToEquivalenceClass [closed]

There is a kernel function Internal`ToEquivalenceClass.I don't know how to use it.There are some right example right to run ...
1
vote
0answers
90 views

How to switch Variance (and StandardDeviation) on WeightedData to use unbiased estimator for frequency weights?

For weighted sample variance it appears that Variance (and StandardDeviation) on WeightedData...
1
vote
1answer
86 views

What does the return value of Internal`ArgumentCountRegistry mean?

Internal`ArgumentCountRegistry sometimes will give a value about some function.Such as ...
4
votes
0answers
59 views

Optimization`FindFit`ObjectiveFunction and PenaltyFunction

Consider the following toy example: model = a Cos[w t]; data = Table[{t, Cos[2.1 t]}, {t, 0, 10, .25}] + RandomReal[.1, 41]; as both an unconstrained problem: <...
5
votes
1answer
228 views

What's purpose of function System`Private`LookupCodeByName and System`Private`LookupNameByCode [closed]

These are useful function from their name.And they are kernel function since: ...
31
votes
1answer
912 views

How can I work with RawArray?

RawArray seems to be able to efficiently hold integer and floating point data of various sizes. What is RawArray good for? How ...
3
votes
0answers
75 views

How to specify custom density function for GeoHistogram?

Bug introduced in 11.0.0 and persisting through 11.0.1 or later GeoHistrogram is new in 11.0 Using ...
4
votes
1answer
66 views

How to enable c method (Stuart-Kendall $\tau_{c}$) of KendallTau?

Using GeneralUtilities`PrintDefintions on KendallTau to investigate which method it is using I discovered that it is using the $...
2
votes
0answers
81 views

Internal`LocalizedBlock doesn't support Protected symbols and emits weird messages

Protect[x]; Internal`LocalizedBlock[{x[0]}, x[0] = 1; x[0]] ...
2
votes
0answers
123 views

What does System`Private`GetContentCode do? [closed]

I just came across this strange function. It is next to GetRefCount and functions like HasDownCodeQ, so it may be something ...
4
votes
4answers
208 views

How to scope `Pattern` labels in rules/set?

Module[{x}, f@x_ = x; p@x_ := x; {x, x_, x_ -> x, x_ :> x} ] ?f ?p gives ...
7
votes
1answer
302 views

NDSolve how to monitor shooting method iteration?

here is a shooting method solution right out of the docs: ...
2
votes
0answers
78 views

Where can I find tutorials or examples about Internal` packages and other useful packages? [duplicate]

As an intermediate level Mathematica user, I consider one of the greatest barrier on my way to a higher level of programming is the lack of knowledge about extra packages like Internal` package or ...
17
votes
1answer
440 views

What are Package` context symbols for?

The Package` context contains the following: What is the use of these undocumented functions? I am looking for a concise description of the syntax and purpose of ...
4
votes
0answers
110 views

Is there any way to see a kernel function's code? [closed]

I was using the extremely useful function PrintDefinitions from the GeneralUtilities package and I encountered this: ...
13
votes
1answer
255 views

What are the main differences between RawArray and PackedArray?

What I know: PackedArray is documented (to some extent) in "Developer Utilities Package", RawArray is just mentioned in ...
12
votes
2answers
173 views

What's in a ValueList?

I discovered a command System`Private`ValueList in my .mx dumps. It's an internal command and thus undocumented, but from the ...
18
votes
1answer
2k views

How was Mathematica built?

I've been wondering this for a while now: How was Mathematica built? Is it written in Haskell? C++? I'd love to get a taste of the wizardry behind this incredible software.