Linked Questions

6 votes
0 answers

Graph relationships between functions and variables [duplicate]

Possible Duplicate: Has anyone written any function to automatically build a dependency graph of an arbitrary Mathematica function? I need to make sense out of a huge notebook (17Kloc) that was ...
CHM's user avatar
  • 3,415
602 votes
19 answers

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 ...
125 votes
7 answers

What is the most convenient way to read definitions of in-memory symbols when we don't have the source files? (Spelunking tools)

Note: I put Simon's implementation on GitHub. Contributions welcome! When trying to read the definition of already defined (package or built-in) symbols using ...
Szabolcs's user avatar
  • 235k
123 votes
7 answers

Struct equivalent in Mathematica?

I really miss having something like a struct in Mathematica. I know of (and regularly use) a couple of programming techniques which feel like a ...
Cassini's user avatar
  • 5,566
33 votes
3 answers

Function that counts the number of arguments of other functions

I have a newbie question: is it possible to write a function that counts the arguments (total and optionals) of a given function? Possibly it should be able to work with built-in and custom functions ...
Jane T.'s user avatar
  • 495
9 votes
1 answer

How to write a simple interpreter / DSL with Wolfram Language?

I am specifically trying to write an interpreter for Mathematica predicates to MongoDB aggregation stages, but I wanted to phrase the question a bit more generically because I can see many times one ...
Dan's user avatar
  • 870
13 votes
1 answer

Symbolic computations with already assigned variables

For example I have assigned some variables that could defined in terms of each other. Then I for some reason need to derive some formula using this variables. How to show the result of this ...
swish's user avatar
  • 7,881
7 votes
2 answers

Using the Wolfram language to interpret the Wolfram language?

I want to plot the relationship of all fucntions in Mathematica, maybe using Graph or force-directed-graph in D3.js ...
partida's user avatar
  • 6,816
8 votes
1 answer

FullDefinition and Module local variable

I have a question about FullDefinition and how it interacts with the local variables of Module. I've created a few functions (...
user7987's user avatar
  • 295
3 votes
1 answer

Applying rules to rewrite expressions that contain patterns

I'm trying to write a rule that can rewrite a pattern that exists in another expression. For some reason, this is proving to be more challenging than I expected ... most likely because I'm not totally ...
LBushkin's user avatar
  • 471
1 vote
1 answer

Reassign Functions for Graphic Representation [closed]

How might I construct a function of the form Rep[defs,code], graphic[code] and display[code] ...
William's user avatar
  • 7,605
6 votes
1 answer

What's reliable way of finding declared but undefined functions/symbols in several interrelated packages?

I have many packages some of which use some of others. I have many symbols defined in them. Is there a reliable way of finding declared/exported but undefined functions/symbols in several ...
user13253's user avatar
  • 8,666
1 vote
0 answers

Can I get a symbol cross-reference of a Mathematica Notebook?

Is there a way to get a cross reference listing for a notebook or set of notebooks?
Ralph Dratman's user avatar
2 votes
0 answers

Package for static Mathematica code analysis to produce a Cayley tree?

I am looking for a package which can display a static dependency tree of code from a single Mathematica notebook or from a list of Mma notebooks. (Of course, to prevent such a tool from producing tons ...
Adalbert Hanßen's user avatar
1 vote
0 answers

Matching All Functions [duplicate]

Is there any way to match all functions? There's an existing answer for matching functions of one parameter (_@_) but it doesn't work for trying to test if a symbol ...
linkhyrule5's user avatar