Linked Questions
21 questions linked to/from How to create expanding summary boxes like the ones displayed for InterpolatingFunction, NearestFunction, etc.?
5
votes
1
answer
277
views
How do I make those nice summary boxes like Dispatch and SparseArray do? [duplicate]
Dispatch and SparseArray have nice output forms that summarise their contents:
The contents even manage to be retained fully on ...
1
vote
0
answers
49
views
How can I change the way a Head is printed on the notebook? [duplicate]
Consider the following simple example:
Interpolation[{0, 1, 2, 3}]
Despite the FullForm of the output of this expression is
...
2
votes
0
answers
46
views
Constructing new output object graphics [duplicate]
Occasionally, when you ask Mathematica to carry out a task for which there is no good compact representation for the output, it will generate a special icon in v10, or an abbreviation in lower ...
602
votes
19
answers
156k
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 ...
50
votes
2
answers
9k
views
How to build a bvh (a motion capture file format) player in Mathematica?
How to build a bvh player that can be used to visualize human motions in Mathematica? Any
idea or sample code would be appreciated.
...
12
votes
4
answers
1k
views
Solving Burger's equation with NDSolve at large time
I want to solve the following Burger's equation
$$\partial_tu+\partial_x\left(\frac{u^2}{2}\right)=0,~~x\in[0,2\pi],~t>0\\u(x,0)=\frac{1}{3}+\frac{2}{3}\sin(x)$$
with mathematica. Here's my code:
<...
34
votes
2
answers
1k
views
Custom atomic expressions - modern tutorial
Atomic but sophisticated expressions are all around for a long time: Graph SparseArray.
More are coming with each new release, ...
12
votes
2
answers
670
views
What are the differences between using MakeBoxes and Interpretation?
Say I want to define a custom graphical representation for my function foo.
I can do this using MakeBoxes as in the following:
<...
15
votes
1
answer
438
views
Why is SparseArray and InterpolationFunction always grayed out?
In the front end of Mathematica version 10, a new feature was implemented which dims output cells that no longer correspond to its input cells. So when you type
...
7
votes
3
answers
195
views
CompiledFunction showing its contents
CompiledFunctions usually appear very compactly, for instance:
...
12
votes
5
answers
375
views
Implement settable properties
I am looking for advice on implementing the following. (It is possible that the answer is that it is simply not a good idea to do this.)
I would like to have an object similar to ...
19
votes
2
answers
738
views
Adding Regularisation to Built-in Interpolation function
tl;tr; How to improve performance of regularised Interpolation?
Context
Since Version 12, Mathematica now incorporates a range of (underrated IMHO) regularisation ...
13
votes
1
answer
329
views
How to mimic thing["property"] syntax?
Many builtin "things" support the (usually undocumented) syntax thing["property"], and usually the available properties can be listed using thing["Properties"] (thing["Methods"] might work too).
...
9
votes
1
answer
442
views
How to build a function object like the built-ins such as Interpolation?
There are many built-in functions that return a function object, such as Interpolation[], BSplineFunction[] ,...
5
votes
2
answers
168
views
How to prevent arguments UpValues from being used in selective functions
Ok, I know the simple answer is to set some form of Hold attribute to the function but bear with me for a bit while I explain my motivation and why that is not quite what I want.
I have a collection ...