Linked Questions

2
votes
1answer
59 views

Displaying outcome of Trace

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
134 views

CompiledFunction showing its contents

CompiledFunctions usually appear very compactly, for instance: ...
1
vote
0answers
67 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 ...
17
votes
2answers
276 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 ...
11
votes
1answer
144 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 ...
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 ...
7
votes
1answer
255 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 ...
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 ...
2
votes
1answer
173 views
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 ...
3
votes
3answers
674 views

How does one unpack the contents of a list while using rules to substitute values for each variable?

My intention is having a large collection of variables (symbols to be more specific) in a list and substituting all the variables at once with a value using rule instead of going through each one, one ...
3
votes
1answer
211 views

How to summarize an expression

Is there a similar command as str in R in Mathematica? ...
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 ...
14
votes
2answers
2k views

How to find out where an error occurs?

I got this error when using Mathematica: ...
17
votes
2answers
392 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 ...

15 30 50 per page