Linked Questions
9
votes
1
answer
5k
views
How can I view the code implementing a built-in Mathematica function? [duplicate]
Possible Duplicate:
What is the most convenient way to read definitions of in-memory symbols when we don’t have the source files?
I would like to look at the code that implements ...
6
votes
1
answer
617
views
Is there a method to look inside at the internal code of Built-In functions? [duplicate]
How can I look at the code of built-in functions?
Is there something like this:
LookInsideFunction[SubsetQ]
RETURNS
...
9
votes
0
answers
239
views
Finding hidden treasure (aka finding undocumented functions) [duplicate]
I was searching for a way to determine if a point is within a polygon and stumbled upon rm -rf's answer. (actually, I really wanted to find a point within a ...
1
vote
1
answer
144
views
How to unprotect/see the code of a command in Mathematica [duplicate]
How do you see the code form of a command in Mathematica?
I know there is a command in Mathematica, "Unprotect[]", but how do you actually use this?
0
votes
1
answer
105
views
Information (??) of function defined in Package return the function with long name of variables [duplicate]
When I call Information of a function defined in Package I get always the result that shows the function with full name Private variables.
For example:
...
2
votes
0
answers
75
views
Where is documentation for Control`PoleZeroPlot? [duplicate]
An earlier question here mentioned Control`PoleZeroPlot, which I've found useful. Typing Names["*`PoleZeroPlot] returns
...
0
votes
0
answers
28
views
Seeing definitions of built-in functions [duplicate]
Possibly a very amateur question, so I'll apologise in advance. I'm reasonably new.
I'm trying to write a Dot equivalent of ...
604
votes
19
answers
158k
views
Where can I find examples of good Mathematica programming practice?
I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
89
votes
11
answers
20k
views
How to check if a 2D point is in a polygon?
Background: I use code from An Efficient Test For A Point To Be In A Convex Polygon Wolfram Demonstration to check if a point ( mouse pointer ) is in a ( convex ) polygon. Clearly this code fails for ...
93
votes
4
answers
6k
views
Automatically generating a dependency graph of an arbitrary Mathematica function?
Has anyone written a function to pull the function dependencies of a function? That is, it would be nice to have a function that returns a list of function dependencies as a set of rules, terminating ...
117
votes
4
answers
6k
views
Programmatic formatting for Mathematica code - possible?
It seems to be both an interesting programming challenge and a very useful practical application to have a Mathematica program which would allow one to pretty-print Mathematica code, so that it is ...
37
votes
5
answers
1k
views
Any ideas on how to use the Region` context?
If you type
?Region`*
you'll get:
which seems a bunch of interesting and not documented symbols.
Any idea (or experience) on how to use them?
Edit
By ...
24
votes
5
answers
4k
views
Is it possible to use Mathematica to record sound and/or vision?
I think the title says it all. I know about ImageCapture which seems to capture stills.
Can ImageCapture be made to capture a ...
30
votes
2
answers
3k
views
Switch from logarithmic to linear scaling partway along a plot's axis
In the 2015 Planck satellite results, they give the latest plot of the temperature power spectrum of the cosmic microwave background, which I show below. (I am only interested in the main plot; you ...
41
votes
1
answer
4k
views
FindFaces: how to improve the results of the face recognition feature
In Mathematica 9, the FindFaces command offers an easy way to detect faces. In some experiments, I've been getting reasonable results, but I'd like to know if there ...
25
votes
2
answers
1k
views
How to know the usage of undocumented function like LinearAlgebra`BLAS?
BLAS is not documented in mathematica. Using
?LinearAlgebra`BLAS`*
gives
But None of the function has a detailed usage information
Click any of the function ...
21
votes
2
answers
635
views
Where is the old option TraceInternal->True?
Already at least in version 2 (I think), the function Solve calls the function Roots. At that time, I had a rather dirty trick, that still works, to verify this:
...
14
votes
3
answers
3k
views
Match colors to plot themes
How do I get the colors to match the plot theme when I use a PlotLegend that is separate to the plots?
I have had a look at How to access new colour schemes in ...
16
votes
3
answers
2k
views
TeXForm and large brackets (\Biggl[ etc)
Goal
I am trying to export a very long expression like
expr = c1*bracket1[a+b+c2*bracket2[d+e+f...]]+...
to LaTeX using ...
10
votes
2
answers
57k
views
How can I create an empty JSON object?
For creating non-empty object, I use following syntax
ExportString[{"key" -> "value"}, "JSON"]
(*{"key" : "value"}*)
But how can I create an empty object? ...
17
votes
3
answers
2k
views
How can I return private members of a Mathematica package as the output of package functions without the "PackageName`Private`" prefix?
I have created a Mathematica package that manipulates various types of input physics data into a common form of output data for further analysis. To make this process more efficient and manageable, I ...
20
votes
2
answers
516
views
How does Rescale[] handle infinities?
Rescale appears to be a simple function. It just does a simple linear $y = a x + b$ type rescaling of the values:
...
11
votes
2
answers
1k
views
Extract ticks from plot
I am trying to extract the ticks settings of a plot to re-design the plot in a custom plot function (effectively, giving the plot a custom design but automatically). I think the ticks should be ...
9
votes
4
answers
2k
views
Transform an InterpolatingFunction
I'd like to transform an InterpolatingFunction from NDSolve but can't figure out how. Here's an example. The equation I want to solve is
...
21
votes
2
answers
678
views
Why is TextString[-0.5] a positive number?
Bug introduced in 10.0 and fixed in 10.0.2
I want to format numbers in decimal notation and chose TextString for this task. But today, when looking at the final ...
20
votes
1
answer
644
views
How does the built-in debugger decide what to highlight?
How does the built-in debugger decide which definition to highlight in the notebook when Break on messages" is enabled?
Here's an example to illustrate what I mean. First, enable the debugger (...
15
votes
2
answers
821
views
How do I prevent Mathematica from reformatting the expressions that I copy as LaTeX?
When I choose something that looks like
$$
W_1(1)=\rho ^{5} \omega _1 \rho ^{-5}\\
W_2(2)=\rho ^{23} \omega _2 \rho ^{-23}\\
W_3(3)=\rho ^{10} \omega _3 \rho ^{-10}\\
W_4(4)=\rho ^{9} \omega _4 \rho ^...
20
votes
1
answer
1k
views
New behavior of PlotRange in Mathematica 10
In Mathematica 10, when I plot data that has small changes around some non-zero value, the plot chooses a PlotRange that "collapses" the data so that the variations ...
9
votes
2
answers
2k
views
How to set the NDSolve method to LSODA
I notice that off all the Method options available for NDSolve[...], LSODA is invoked quite ...
19
votes
2
answers
1k
views
Understanding Villegas-Gayley
In this nice answer, Mr.Wizard writes
...