Linked Questions

3
votes
1answer
181 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
0answers
44 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
0answers
43 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 ...
536
votes
19answers
135k 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 ...
42
votes
2answers
7k 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. ...
27
votes
2answers
576 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, ...
11
votes
2answers
406 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: <...
12
votes
5answers
312 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 ...
7
votes
3answers
136 views

CompiledFunction showing its contents

CompiledFunctions usually appear very compactly, for instance: ...
15
votes
1answer
359 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
1answer
239 views

How does thing[“property”] syntax work?

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). ...
1
vote
3answers
102 views

nearer pairs to a special point

I have a list as data which is uploaded here, due to its long length. We can consider to the list as a collection of {x,y} pairs. Please consider a value for ...
9
votes
1answer
340 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
2answers
110 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 ...
9
votes
1answer
173 views

How to defer creating/displaying boxes in front end until requested?

If the size of an output expression is larger than threshold ByteCount, the front end will display an abbreviated version of it by producing an ...

15 30 50 per page