Linked Questions

3
votes
0answers
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 ...
7
votes
3answers
135 views

CompiledFunction showing its contents

CompiledFunctions usually appear very compactly, for instance: ...
1
vote
0answers
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 ...
19
votes
7answers
4k views

Finding the period of an array of integers

A simple array of integers is given. The problem is to detect if a pattern is repeatedly occurring in the array, and find the length of that pattern. For example, for ...
17
votes
2answers
277 views

Serious regression in Integrate in 11.1.1? Division by zero generated

seen first in 11.1.1, Fixed in 11.2 What is going on here? In version 11.1.1 on windows 7 Using Version 11.0.1 also on windows 7 Source code ...
4
votes
2answers
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 ...
26
votes
4answers
31k views

How do I identify the source of a “Tag times protected” error?

I have some code that looks like Table[ a = 1; b = {2, 3} c = i;, {i, 2} ] which gives an error: Set::write: Tag Times in c {2,3} is Protected....
11
votes
1answer
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 ...
5
votes
2answers
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 ...
1
vote
0answers
143 views

Debuging in Mathematica [duplicate]

Description I have using Mathematica to solve all kinds of problems that encountered in my study. However, the function that I define to solve specific problem is not always right, in other words, it ...
7
votes
1answer
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 ...
8
votes
3answers
154 views

Indexed and array-valued interpolations

Bug introduced in 10.1 or earlier and fixed in 10.4.0 Using Indexed on an InterpolatingFunction leads to an ...
112
votes
3answers
5k 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 ...
0
votes
0answers
36 views

Can we find a way to see how Mathematica does calculation? [duplicate]

Sometimes when we have an expression to calculate, it is the kind of calculation that we do not know how to calculate by ourselves. We use Mathematica to calculate the expression, and Mathematica ...

15 30 50 per page