Skip to main content

Questions tagged [error-tracking]

The tag has no usage guidance.

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

Could you help me understand where in my code I produce a list with a specific dimension?

I am reading force.txt files from series of folders nb100, nb200 ,nb300, ... . and I need to save the related results as result100, result200, ... in the related directories. In order to do that I ...
Delaram Nematollahi's user avatar
0 votes
0 answers
49 views

Stopping control of oscillating converging error

I am doing many simulations of nonlinear differential equations. The differential equations are of the form $$y''(t)+g\left(y(t),y'(t)\right)=p \cos (2 \pi f t)$$ The solution settles to a periodic ...
Hugh's user avatar
  • 16.5k
1 vote
0 answers
55 views

How can I set up and simulate an Ornstein–Uhlenbeck process that depends on the proportional deviations from the steady state?

I'm trying to set up a stochastic differential equation and run numerical simulations for the following process: $$\frac{dV_t}{V_t}=\left[M+\gamma\left(M-\left(\frac{V_t}{V_{t-1}}-1\right)\right)\...
Mark Chambers's user avatar
1 vote
0 answers
91 views

How to compare simulated and experimental data?

I have numerically simulated and experimental data, I want to compare them and find the variation against numerical data. I do not have any idea about it. I just plotted experimental and simulated ...
Gopal Verma's user avatar
  • 1,065
4 votes
1 answer
126 views

Why is there an error about division by 0?

I'm converting all of my old Mathematica 7.0 codes to my new Mathematica 13.2, and I'm struggling with some issues I didn't encounter with version 7.0. The following code is giving me a headache, ...
Cham's user avatar
  • 4,093
0 votes
0 answers
30 views

Fixing the following error message for the simple substitution $ j[bb, a1, a2] //. {j[bb, ll__] -> List[ll].List[b1, b2]} $

For a given Mathematica code j[bb, a1, a2] //. {j[bb, ll__] -> List[ll].List[b1, b2]} I obtain the desired answer which is ...
phy_math's user avatar
  • 923
1 vote
0 answers
71 views

Graphics HatchFilling not working, Causes crash

I cannot use HatchFilling in my Mathematica v13.0.1 on Windows. Whenever I use it, both Mathematica's front end and Kernel crash. When I open the documentation ...
KratosMath's user avatar
  • 1,287
0 votes
1 answer
60 views

Seemingly inconsistent appearance of the Part error message

I'm new to mathematica and have been trying to create a graph with edge weights defined by patterns. Here is a code snippet: ...
potscratch9's user avatar
7 votes
1 answer
80 views

Check applied to list is not the same as list of Check

My question is in two parts. First, I want to know why Check[#, "Failed"] &@{0^0, 1^1} evaluates to ...
Nic's user avatar
  • 73
4 votes
2 answers
146 views

Mathematica flips the sign of a Maclaurin series

I have the following Mathematica code: ...
codebpr's user avatar
  • 2,253
0 votes
0 answers
91 views

"Could not read some data from some file"

This problem happens quite regularly. Does anyone know how to solve it? This is the information about the software. I'm wondering if this is related to Google Drive storage. The file is saved ...
hana's user avatar
  • 2,390
1 vote
1 answer
95 views

Plotting multiple series with ListLinePlot

I would like to plot 2 series of data on a ListLinePlot. One is made up of a single line, one is split. Each one would ideally be separately coloured lines and noted in the legend. I think I've ...
Epideme's user avatar
  • 505
1 vote
0 answers
242 views

ListLinePlot is not a list of numbers or pairs of numbers

I am getting this error 'ListLinePlot is not a list of numbers or pairs of numbers' However I'm not really sure what it means, the data set is a list of pairs of numbers. Even the more complex version ...
Epideme's user avatar
  • 505
0 votes
1 answer
67 views

ListLinePlot Options Expecter Error

The Problem I am trying to plot a ListLinePlot, and despite it being only a modified version of a working code, it now isn't working. It gives the error: ListLinePlot::nonopt (i.e. Options Expected ...
Epideme's user avatar
  • 505
11 votes
4 answers
234 views

How to detect errors that happen in the FrontEnd? [duplicate]

Some errors only seem to be produced at the point of typesetting, making it very difficult to detect them early. For example: ...
Sjoerd Smit's user avatar
  • 23.7k
0 votes
1 answer
42 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. ...
Matariki's user avatar
  • 3,382
1 vote
1 answer
101 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) ...
Boajj04's user avatar
  • 320
0 votes
0 answers
29 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}. ...
Tomás Alvim's user avatar
0 votes
0 answers
139 views

The scaled boundary value residual error in NDSolveValue

What is the reason behind getting the following error? ...
Sazedur Rahman's user avatar
2 votes
1 answer
93 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
189 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 ...
sam wolfe's user avatar
  • 4,863
0 votes
0 answers
111 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, ...
sam wolfe's user avatar
  • 4,863
2 votes
0 answers
66 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 ...
sam wolfe's user avatar
  • 4,863
1 vote
0 answers
138 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 ...
Shredderroy's user avatar
  • 5,251
1 vote
0 answers
130 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
39 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 ...
Iosif Pinelis's user avatar
0 votes
0 answers
122 views

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

...
Aya's user avatar
  • 69
1 vote
0 answers
54 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}...
Delaram Nematollahi's user avatar
0 votes
1 answer
44 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: ...
Epideme's user avatar
  • 505
1 vote
0 answers
64 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
1 vote
0 answers
37 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, ...
Jansen's user avatar
  • 1,223
1 vote
0 answers
92 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 ...
2132123's user avatar
  • 657
0 votes
1 answer
222 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 ...
John Taylor's user avatar
  • 5,827
0 votes
0 answers
532 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" (...
João Viana's user avatar
1 vote
0 answers
60 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 ...
Barnacle's user avatar
1 vote
1 answer
93 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 ...
Nebula's user avatar
  • 13
2 votes
1 answer
659 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
69 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 ...
Pxx's user avatar
  • 711
6 votes
2 answers
183 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 ...
maybe try codidact instead's user avatar
1 vote
1 answer
116 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 ...
Minkowski_in_a_onesie's user avatar
0 votes
2 answers
162 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 ...
student's user avatar
  • 53
2 votes
1 answer
53 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 ...
Jmeeks29ig's user avatar
  • 1,447
1 vote
1 answer
796 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
OD IUM's user avatar
  • 135
2 votes
0 answers
89 views

Issues with symbolic integration

I am trying to do the following indefinite integral, ...
Jaswin's user avatar
  • 183
5 votes
1 answer
274 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 ...
infinitezero's user avatar
  • 1,419
1 vote
2 answers
209 views

Avoiding a for loop to create a list

I am trying to evaluate: ...
TheInvoker's user avatar
1 vote
0 answers
123 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. ...
Alan's user avatar
  • 13.7k
5 votes
1 answer
105 views

Ignore message in `Check` without silencing

Check[expr,failexpr,checkedMessages] will evaluate expr and if it encounters any of the messages in ...
Jansen's user avatar
  • 1,223
0 votes
0 answers
73 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. ...
Jansen's user avatar
  • 1,223
1 vote
0 answers
24 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: ...
Ofek Peretz's user avatar