# Questions tagged [error]

Questions seeking help understanding error messages and fixing errors.

929 questions
Filter by
Sorted by
Tagged with
27 views

### SubtractFrom::rvalue with Compile

I want to compile the code described here, but I get the error: SubtractFrom::rvalue: 1.*^8 is not a variable with a value, so its value cannot be changed. A minimal non working example could ...
126 views

### Indeterminate result from Sinc

I have an impulse train given by (1 + Csc[(π x)/(1 + R)] Sin[(π (1 + 2 R) x)/(1 + R)])/(2 + 2 R) Because of the Csc, ...
70 views

...
74 views

### FindMinimum giving error FindMinimum::infeas:

I'm trying to find the minimum y-coordinate of a point which lies on a side of an equilateral triangle. FindMinimum doesn't work when I change the position of the ...
248 views

### Nonlinear system of ODEs with boundary conditions

I'm trying solve this problem: g'(r) = a(r)g(r)/r, (1/r)a'(r) = g(r)^2-1 which have the following boundary conditions: a(0)=n ...
289 views

### How to add error bars to a stacked bar chart?

Sorry, I know how to make error bars on normal bar charts, but how can I add vertical error bars to the top of my stacked bar charts, please? ...
83 views

### Taylor Series of numerical solution of FindRoot

I have found the inverse to the following equation by using FindRoot. I want to have a Taylor approximation (say starting from ...
76 views

### FullForm[1. - (0.3 + 0.4)] gives 0.30000000000000004 [duplicate]

I had a serious error propagation in my computations (Mathematica 10.4.1 Windows 64 bit). After some investigation, I realized the problem comes from something like this: FullForm[1. - (0.3 + 0.4)] ...
95 views

### Bizarre error messages when monitoring random integers

I am doing tbl = {}; Monitor[ Do[AppendTo[tbl, RandomInteger[{1, 100000}, 2]], 100000], Length[tbl] ] (well in fact I am doing something less boring but what I ...
124 views

### What is wrong with my fit?

I am trying to fit the following data: data = Import["https://pastebin.com/raw/gHdYLCbA", "Table"] I use the following code: ...
123 views

### Value for output of layer is inconsistent (implementing SqueezeUNET from Keras)

I'm attempting to implement this neural network in WL: https://github.com/lhelontra/squeeze-unet/blob/master/squeezeunet.py which is a variant of the SqueezeNet network that does image segmentation. ...
86 views

### Hyperbola ContourPlot missing input

I'm trying to plot a hyperbola using ContourPlot, but I can't understand what I'm missing on its call. The error says it's incorrect syntax, although I can't see any errors. ...
75 views

### NDsolve and Coupled first order ODE solving [closed]

I am new to this community and also to Mathematica. I am trying to solve a set of coupled first order differential equations related to the shape of a liquid drop. The code is as follows : ...
56 views

### How precisely does Mathematica handle/record an isolated error in one of a long series of separate calculations?

I'm generating a series of (numerical) matrices, and testing each one for a certain property, and trying to estimate what proportion possesses that property. I write out the result at every million-th ...
25 views

### How to display the error in interation in a comfortable way?

For example t = 0.5; Do[t = Module[{a = t}, c = (a^2 - 2)/3;Pause[1]; err = c - a; c]; Print[err], {i, 100}] I want to see the ...
89 views

### Why is this function indeterminate?

Consider an impulse train 1/(R + 1) + (Sum[Cos[(2 k π x)/(R + 1)], {k, R}])/(R + 1) For x=0 it's clear that this function ...
136 views

### How can I avoid the message Infinity::indet?

I have an impulse train of frequency R: 1/(R + 1) + (Sum[Cos[(2 k π x)/(R + 1)], {k, R}])/(R + 1) For ...
40 views

I have installed a package named HEP from Wolfram Library Archive which contains several .m files by Files -> Install (...
40 views

...
178 views

### Why does my Solve output contain this symbol? [duplicate]

I have a pair of coupled polynomial equations that I need to solve, so I tried using Mathematica's solve tool. This is the code that I wrote: ...
140 views

...
126 views

### NDSolve problem: Power::infy: Infinite expression 1/0. encountered

I am trying to solve system of 15 differential equations: ...
60 views

### Getting max precision limit overflow for a very simple calculation

I've never seen this error on such a simple calculation. Does anybody know how to fix this annoying error?
102 views

### Errors using FindRoot on slow numerical function

I would like to find the solution of an equation containing a slow function FindRoot[func[x, onsideS, hoppingS, 0.01] - (1/E) == 0, {x, 1,10}] for different ...
105 views

### NIntegrate::zeroregion error

While integrating the following function, ...
41 views

### Force a result from “Indeterminate” for single impulse?

The formula for a single impulse of amplitude $1$ at $x=r$ is given by $$\frac {\sin (\pi (x-r))}{\pi (x-r)}$$ (In MathJax because it's a math formula.) Formally, at $x=r$, this function evaluates ...
26 views

### Why do some manipulate/animate become error plots after notebook closed [duplicate]

I have some Manipulate/Animate plots (mostly relating to geometry and geography) which look good after evaluation. But when I ...
142 views

### How do I use FindMinimum with the LevenbergMarquardt method?

Below is my program. I don't know how to define the function f to make it work. Another question: When I define f as a vector ...
75 views

### How to reuse variable - Error: Pattern appears on the right-hand side of rule [closed]

I do not know enough about Mathematica to understand why the following statement won't save the variable for me for later use: x_fake = Table[i, {i, 1, 100}] It ...
62 views

183 views

### Mathematica 11.3 ListLogPlot gives strange error [closed]

Trying to make a very simple Log plot with Mathematica 11.3 on Ubuntu 17.10 ...