395 views

### Why Infinity /. _?(# < 6 &) -> 0 replaces Infinity with ComplexInfinity?

Suppose I define a matrix: mat = { {Infinity, 4, 9}, {6, Infinity, 10}, {8, 9, Infinity} }; Now I want to replace all values smaller than ...
2k views

### How to find out where an error occurs?

I got this error when using Mathematica: ...
174 views

### Is there a way to accelerate buffering to the screen?

I have an application that does a bunch of small computations, mostly Table management, and logic around loops. It takes seconds to execute. However, when I turn on debug (a variable I set for ...
147 views

### TraceScan output with input/output in same order as TracePrint

I would like a version of TraceScan that gives me the ability to see what the trace pattern evaluated to, but prints output in the order that ...
146 views

### Trace of -{1} expression

I'm trying to understand Trace. Usually it doesn't repeat but it adds {-1,-1} for his simple expression after having a correct ...
500 views

### Visualizing nested lists for easier human understanding

When interacting with Mathematica, I often find myself staring blankly at waves of curly braces, trying to understand how data is organized hierarchically. For example, the beginning of the result to ...
257 views

### Why can't I pattern match Dt?

A simple question: MatchQ[f[a], f[x_]] (* True *) MatchQ[D[a], D[x_]] (* True *) MatchQ[Dt[a], Dt[x_]] (* False *) Why doesn't the last test succeed? Is this a ...
212 views

### How to summarize an expression

Is there a similar command as str in R in Mathematica? ...
175 views

...
434 views

### How does Mathematica interpret a expression?

I'm a beginner to Mathematica. I'd read several document. But I still have a problem. For example, every expression in Mathematica are of the form ...
84 views

### Displaying outcome of Trace [duplicate]

Is there a better way to display Trace output? Parsing could be provided to separate blocks of the computation by an extra line. Trace produces a large chunk of unbroken output that I copy into a new ...
159 views

### Find where an error occurred in a bunch of command line scripts

I have been using my intuition to solve errors in my Mathematica scripts. But when calculations got more complex and I started getting errors involving code in more participating scripts (a script ...
68 views

### Is there packages can help read, analyze or understand MMA codes? [closed]

Sometimes, I think that it's difficult to learn high level codes, or even when looking back on some long lines of codes I myself had written, espectially when lots of pure-functions was used, so I'm ...