# Questions tagged [debugging]

Questions about debugging techniques, using the built-in debugger, and/or the Wolfram Workbench debugger.

198 questions
Filter by
Sorted by
Tagged with
46 views

### Solve function not returning the same output when it should

I'm trying to obtain an equation describing the intersection points of an arbitrary hyperbola with an ellipse centered at the origin. If I restrict the hyperbola to not have any horizontal translation,...
• 101
85 views

### Expand disagrees with original expression

I have a rather nasty double summation that I am doing. To check that whatever I do it is valid, I routinely substitute in numerical values. I also have checked the result of the double sum by doing a ...
103 views

### Partial trace of a $n \times n$ square matrix

I would like to create a function to compute the partial of a general matrix. I came across to the following code for a 4x4 matrix: ...
1 vote
59 views

### Troubleshooting NDSolveValue::rdelay Error in a Dengue Epidemic Model with Delay Differential Equations in Mathematica

I am modeling the vector dynamics of a dengue epidemic using a system of delay differential equations (DDEs) in Wolfram Mathematica. My model includes a complex interplay of host-vector interactions, ...
1 vote
30 views

...
355 views

### Is it possible in Mathematica to get a step-by-step evaluation of the following?

Is it possible in Mathematica (or WolframAlpha["...]") to get a step-by-step evaluation of the following? ...
• 635
241 views

### Incrementing a random element of an array repeatedly

Consider this code to simulate a simple instance of the coupon collector problem. We initialize an array to {0, 0} and then keep incrementing a random element until we've incremented every element at ...
• 696
1 vote
135 views

### Trace animation of spherical and $\pi$ atomic orbital

I want to get trace animation, which forms 3D object at last. Though I saw ring shape structural animation in the website: https://community.wolfram.com/groups/-/m/t/1991109 also Creating a movie of ...
• 365
1 vote
75 views

### How do I profile my own code in Mathematica? [duplicate]

Coming from the question Profiling from Mathematica and reading the example, I manage to reproduce it but I have no idea how to adjust it to profile my own code. Given an example file: ...
• 1,419
51 views

### Printing the value of a function crashes Mathematica

I define SolVm1: ...
• 479
72 views

• 7,875
126 views

### How to evaluate EXPR in a subsession of a different already running kernel and get the output?

Is there a way to evaluate some expression in a subsession of another already running kernel, collecting the output, from a Local monitoring kernel? Something like ...
78 views

### How to remove debugging prints from my package?

I'm using my own package, partly based on Ted Ersek's RootSearch package, partly based on some posts on this portal. It has a lot of debug prints coded like this: ...
1 vote
70 views

### DSolve is producing a segmentation fault for large systems of equations

The below code runs fine for anything up to a 64^2 matrix. However, moving to 128^2 throws a segmentation fault, which, despite my best efforts to debug, I cannot find a cause for. Or, to be honest, ...
1 vote