Questions tagged [error-tracking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

Wolfram script exported from a Mathematica Notebook : errors actually warnings?

I have exported with the following script put at the beginning of my Mathematica notebook : ...
user avatar
  • 35
0 votes
1 answer
31 views

Error handling of Databin

I am using Databin in a FormFunction and would like to check whether the DatabinAdd[] was successful. If it is not I get a \$Failed but I am unable to check for it. ...
user avatar
  • 3,302
1 vote
1 answer
70 views

Plotting SD at each point

I have a question to plot out the standard deviation for my graphs: How can I plot out the SD values in each point such that the max and min will start from 0 and not an offset standard deviation (SD) ...
user avatar
  • 302
0 votes
0 answers
17 views

Interpolating function error: stack trace value and notebook give different values for the out of bound inputs

So, I get the input out of bound error, in the notebook out put. ""Input value {3.,1.5708,3.14159} lies outside the range of data in the interpolating function." Values {3,Pi/2,Pi}. ...
user avatar
0 votes
0 answers
42 views

The scaled boundary value residual error in NDSolveValue

What is the reason behind getting the following error? ...
user avatar
2 votes
1 answer
74 views

Trouble Finding the period of a function [closed]

I want to use Mathematica to compute the period of the function $F(t)=\cos t - \exp \left( - \sum_{k=1}^{50} \frac{\sin (kt) }{k} \right) -\sum_{k=1}^{50} \frac{\cos (kt)}{k}$, so here's my code ...
user avatar
4 votes
4 answers
141 views

Error when placing legends

Consider the following plot plot = ListLinePlot[{{{0, 0}, {1, 1}}, {{0, 0}, {1, .8}}}, PlotLegends -> Placed[{"1", "2"}, {.8, .4}]] When I ...
user avatar
  • 4,138
0 votes
0 answers
63 views

WebSearch Stopped Working

I've been using 'WebSearch' and 'WebImageSearch' quite a lot recently to sample images for my work. However, these functions suddenly stopped working. When I evaluate, for example, ...
user avatar
  • 4,138
2 votes
0 answers
33 views

Error when exporting

Imagine I have a list of plots, call it frames, and I rasterize them in order to have a smoother exported video, like so ...
user avatar
  • 4,138
1 vote
0 answers
47 views

"Show Stack Trace" option always missing from error context menu

According to the Wolfram Language documentation, there should be an option in the context menu to see the stack trace: But I never see that option in my context menus: Is there a specific global ...
user avatar
  • 4,677
1 vote
0 answers
56 views

What do do if Mathematica stops without error messages?

I am trying to run the relatively simple code ...
user avatar
0 votes
0 answers
48 views

Error in The Third Execution

I try to search the optimal solution of a large Problem using NMinimize and method Differential Evolution (DE). I call the NMinimze inside a loop with 100 iteration, and each time with different ...
user avatar
  • 73
0 votes
0 answers
28 views

Rigorous upper bound on the absolute approximation error of an output of `NIntegrate`

Is there a way to use Mathematica to obtain a guaranteed, rigorous upper bound on the absolute approximation error of an output of NIntegrate (as an approximation ...
user avatar
0 votes
0 answers
51 views

fixing the error: " The current computation was aborted because there was insufficient memory available to complete the computation. " in mathematica

...
user avatar
  • 69
1 vote
0 answers
37 views

Why do I get the (NMinimize::nrnum) error and how to fix it?

I have an energy function which depends on the angles of the electrons({x} symbol for theta) and phase of electrons({y} symbol for phi). I am using NMinimize to minimize the energy with respect to {x}...
user avatar
0 votes
1 answer
37 views

Graph Plotting Error - NonLinearModel and 'neither a list of replacement rules nor a valid dispatch table' [closed]

I am trying to produce a nice looking graph from Mathematica. (if any background on that is required, I am happy to share, but I'll keep it short for now unless anyone is interested) Question: ...
user avatar
  • 467
1 vote
0 answers
58 views

Unexpected behaviour of SolveAlways

My problem is quite simple and I cannot spot if this is my mistake or some malfunction of mathematica. I am using ...
user avatar
  • 4,113
1 vote
0 answers
34 views

spontaneously quitting kernel, assignment and packed arrays

I am having an issue where the kernel spontaneously quits, deep in a long code that I have used for quite some time without this issue. I've tracked it down to an assignment of the form: a[[All, All, ...
user avatar
  • 1,183
1 vote
0 answers
90 views

Why is Mathematica saying this sequence tends to $0$?

I am a complete novice in Mathematica so please bear with me. I am trying to graph a sequence that converges to $\pi$ but after $27$ iterations Mathematica just goes crazy and I am not sure why. I got ...
user avatar
  • 553
0 votes
1 answer
152 views

Error test failure for the following system

My question is about a reason of the inability of Mathematica to integrate the given system of differential equations, that depends on parameters, in a stable way: for some values of the parameters ...
user avatar
  • 3,544
0 votes
0 answers
189 views

Mathematica stops working with no warning/error

I have some long computations on my Mathematica notebook. For some reason they stop and Mathematica gives me no reason as to why. No warning. No erros. If run the "Initialization Lines" (...
user avatar
1 vote
0 answers
52 views

RegionPlot outputs System`ReduceDump`

I'm using Solve[] to find the solutions to a system of equations, then checking their stability in a Hessian using ...
user avatar
1 vote
1 answer
82 views

Strange error not found in a monte carlo code, Infinite expression 1/0 encountered

I've been trying to code a kinetic monte carlo simulation for a dimerization reaction, 2M ---> D. However I have a kinetic Monte Carlo code for a first order decomposition reaction of AIBN (that's ...
user avatar
  • 13
2 votes
1 answer
166 views

How to implement an "if an error occurs"-condition in Mathematica programming?

In general Mathematica may return a value even if NDSolve has run into error. A simple example is ...
user avatar
1 vote
1 answer
59 views

Why does the mix of Exclusions and SymbolicProcessing->0 sets my integral to $0$?

I am trying to compute a $5$-dimensional integral, which may or may not be zero. I do believe it is finite though, at least for the values $\epsilon$, $\sigma$ used here. The integral is given in the ...
user avatar
  • 641
5 votes
2 answers
130 views

How to Quiet[] only the first argument of Check[]?

I have a Check of the form Check[expr,failexpr, {NIntegrate::slwcon}] If expr throws slwcon, I would like to redo the calculation with higher precision by ...
user avatar
1 vote
1 answer
83 views

Catching NDSolve Singularities

I am using NDSolve to solve a system of equations with changing initial conditions (I'm using NDSolve multiple times). However, for particular initial conditions I am getting an effective step size of ...
user avatar
0 votes
2 answers
100 views

NDSolve: How to perform a reverse integration consistency check?

Let there be the following NDSolve code: s = NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}] I think it ...
user avatar
  • 53
2 votes
1 answer
44 views

How can I properly use Catch[] to prevent my program from quitting?

I am getting an error depicting an Uncaught Throw, with the accompanying code being returned: Hold[Throw[$Failed, CURLLink`Utilities`Exception]] I have managed ...
user avatar
  • 1,397
1 vote
1 answer
425 views

Why does Mathematica just return Hold of my Input? [closed]

Example: Solve[x^2 + a x + 1 == 0, x] Output: Hold[Solve[x^2 + a x + 1 == 0, x]] What is the problem? Any child can solve this in its head
user avatar
  • 135
2 votes
0 answers
88 views

Issues with symbolic integration

I am trying to do the following indefinite integral, ...
user avatar
  • 173
5 votes
1 answer
225 views

Raise Warning/Error on invalid Matrix Addition and Multiplication

Consider the following code: DiagonalMatrix[{1, 1, 1}] - 1 Mathematica interprets it in the way, that it substracts 1 from every matrix field while ...
user avatar
1 vote
2 answers
189 views

Avoiding a for loop to create a list

I am trying to evaluate: ...
user avatar
1 vote
0 answers
87 views

raise error on type mismatch

Is there a best practice for raising an error on a type mismatch? For compiled functions I'm guessing the answer is the use of GeneralUtilities`WithMessageHandler. ...
user avatar
  • 12.3k
5 votes
1 answer
90 views

Ignore message in `Check` without silencing

Check[expr,failexpr,checkedMessages] will evaluate expr and if it encounters any of the messages in ...
user avatar
  • 1,183
0 votes
0 answers
61 views

customisable error checking, message handling code

I have an iterated computation running in a while loop, which is bound to fail at some point, at which point I want it to stop, e.g. ...
user avatar
  • 1,183
1 vote
0 answers
22 views

How to get a value from Error message? [duplicate]

I've looked pretty hard for a solution to this issue with no luck. Hope you could give me a clue: When I run NDSolve I get the following error msg: ...
user avatar
1 vote
0 answers
670 views

Kernel shutting down automatically with no error

What are the possible reasons why a kernel exits and the computation simply stops without printing out an error message? In case the specific scenario is required, it is as follows but perhaps the ...
user avatar
  • 255
3 votes
1 answer
166 views

Large residual error when solving a 2D BVP with NDSolve and Finite Element Method

I'm trying to solve a simple PDE (an inhomogeneous Helmholtz equation) in a disk domain with center at $(1,0)$ and radius 0.5 using the following commands ...
user avatar
  • 191
9 votes
2 answers
4k views

Histogram with Error bars

I have a dataset for which Mathematica easily creates a Histogram. However I also need Mathematica to show error bars corresponding to 3 standard deviations for ...
user avatar
2 votes
1 answer
107 views

How to catch error messages from parallel kernels

Doing something that throws out an error (warning): ParallelTable[NIntegrate[1/Sin[10 t], {t, 0, W}], {W, 0, 10, 1}] In parallel somehow limits a possiblity to ...
user avatar
3 votes
1 answer
108 views

Saving a log file if an error occurs

I am running a program that adds a message to a list after each completed cycle (about 5k cycles). Upon completion, the program saves the list to disk so I can review it. However, if the program ...
user avatar
  • 5,320
2 votes
2 answers
596 views

DSolve running forever

I have no idea how to speed this up. Does maple do a better job at solving this?
user avatar
3 votes
2 answers
160 views

How to track accumulated error?

If Im not wrong when we use the command N we are using float point numbers in machine precision, right? And the machine precision depends on the bits of the CPU ...
user avatar
  • 1,097
0 votes
0 answers
68 views

Errors with NIntegrate: NIntegrate::ncvb and NIntegrate::slwcon

The image shows the array (W) I'm trying to integrate. It gives the following errors: 1. NIntegrate::ncvb 2. NIntegrate::slwcon I tried excluding the singularity points; adjusting the accuracy goal, ...
user avatar
0 votes
1 answer
150 views

Plotting of an error estimate of `NDSolve`

So, in an earlier post, (see here), I asked a question regarding a surface of section for a system of coupled non-linear ODEs. What I am after now, is the numerical precision of the results I get back....
user avatar
  • 707
4 votes
0 answers
205 views

Adding an attribute crashes the system?

At some point I noticed the following errors just in the documentation: And not only this one, this is not only for Manipulate, there were many others. Also the ...
user avatar
  • 657
1 vote
1 answer
122 views

What is the best practice way to handle arithmetic exception in Mathematica

What is/are common way/s to handle what would be ArithmeticExceptions in Java in Mathematica/ Wolfram Language? The ugly code is the If...Continues in the innermost For Loop. How should I address this ...
user avatar
36 votes
2 answers
1k views

How do I disable the stack tracing feature in Mathematica 11?

Bug was introduced in 11.0 and persisting through 11.1 It looks like the Mathematica 11 stack tracing feature (see red ellipsis in front of any warning message) prevents the garbage collector from ...
user avatar
  • 7,666
1 vote
1 answer
111 views

Catching errors while mapping a solver over a list of parameters

Perhaps this question has a simple answer, I'm sorry but I unable to get my head around it. Here's a minimal description of my issue. I have a an equation of the form ...
user avatar
  • 581