# Questions tagged [error]

Questions seeking help understanding error messages and fixing errors.

1,030 questions
Filter by
Sorted by
Tagged with
215 views

### How to Calculate Factorial when Overflow/Underflow occurs

I'm trying to compute this function, which sums to 1 for $0 < \alpha < 1$ and $k \rightarrow \infty$ ...
60 views

### How to solve these equations without errors?

I'm new user of mathematica 12. I have to plot real and imaginary solutions of two equations, eq1 and eq2, which contain Dawson function, here is my program: ...
29 views

### How is following two (same) calculations giving two different results? [closed]

I have the following two pieces of code which give me two different results, ...
28 views

### How to delete random elements with RandomChoice?

I have a list of prices and a list of dates, but I have 154 more prices than dates. So I want to delete random prices to match both lists, however, every time I run the block of code I get a different ...
55 views

### Why is the sum of the series calculated using the integral

I tried to calculate the sum the Harmonic series via NSum up to a huge limit and got an error: NIntegrate: Numerical integration converging too slowly; suspect one of the following: singularity, ...
90 views

### Why does this memoized function cause the kernel to quit? [closed]

The following memoized recursive function causes the kernel to beep and quit. ...
20 views

### MakeExpression : Input Form error even with perfectly written expressions

I am frustrated by this MakeExpression error which sometimes shows up and sometimes doesn't for perfectly written expressions. How do I tackle this error? What is wrong with my code? ...
32 views

### Error in CDFDeploy

I'm deploying a Manipulate code to a CDF using CDFDeploy. Everything was going fine until now. All of a sudden, I'm getting the ...
31 views

### Unknown Box Name (ToBoxes) Error

I'm getting the following error in Mathematica What is going on? How do I avoid such an error? In order to roughly understand how I'm getting this error, here is a bit of context: I'm using ...
20 views

### FactorSquareFree::lrgexp: Exponent is out of bounds for function FactorSquareFree. Error

I'm trying to make a two-dimensional contour plot of the temperature of a plate. This is my initial function: ...
42 views

### DSolve with parameter as xmax

I am trying to solve a system of differential equations: DSolve[{eqn1,eqn2,...},{u1,u2,...},{x,xmin,xmax}] But I would like xmax to be a constant parameter, i.e. ...
40 views

### Finding maximum of a function of 2 variables

I have function defined in such way: ...
134 views

### How to handle Part function error when position does not exist?

Say a list list={{1,2},{3,4}}, list[[1]] and list[[2]] works. But ...
26 views

### Avoid an Error Message when Importing

Consider the following code Button["Import", file = SystemDialogInput["FileOpen"]; data = Import[file], Method -> "Queued"] which yields a button which, ...
39 views

### How to avoid expressions of Zeros and how to reinsert results in a Module

Here i have just a short example of my actual problem ...
201 views

### FEM Mesh related errors

Bug introduced in 12.0. Fixed in 12.1.0. I try to solve the simple heat transfer equation but there are some errors at the stage of the pre-processing. ...
129 views

### DSolve: unable to solve the conditions

I have a second order differential equation with $2$ boundary conditions and want to use the following code to solve it: ...
39 views

### DensityHistogram only returns a gray box

I have a complex Mathematica workbook that I've been using to read in binary files, create coincidences, perform an energy calibration, and final produce some coincidence analysis. The original ...
94 views

### FEM: how to find 2D flow under external forcing?

I'm trying to sovle a 2D Navier-Stokes equation in a rectangular region with no-flow boundary conditions and an external rotating force $f(x,y)=(-y,x)$. I've got the error message: NDSolveValue::...
20 views

### NMaximize fails for linear program?

Consider the following code, maximizing the variable diff subject to some constraints. Notice that all constraints are linear (in)equalities -- the integrality constraints are commented out. (...
21 views

### Suppress ComplexInfinity/Indeterminate error

i am running a loop of calculations, where errors or results like ComplexInfinity and Indeterminate appear. My parameters are ...
34 views

### How to turn on all suppressed error messages

I have a variety of possible errors in each iteration of a for loop. If, in one iteration of the loop, there are more than 3 error messages of the same kind, I am happy that the rest are suppressed. ...
21 views

### Create error Message with runtime value

I've written a Mathematica package (see here) which uses WSTP to call a C/C++ library. Some possible user-errors are known by the package and can be detected and reported by the front-end package code....
37 views

### NMinimize: Constraints not valid, although additional constraints make it valid

The following code produces the error message "The following constraints are not valid". However, if I add the additional constraint "diam <= 3" (commented out below), it runs correctly and finds a ...
754 views

### Why does {2, 9, 3, 16, 81, 0.09} //. {x_Integer -> Sqrt[x]} evaluate infinite times? [closed]

Here is my code. {2, 9, 3, 16, 81, 0.09} //. {x_Integer -> Sqrt[x]} The pop-up message ReplaceRepeated::rrlim suggests ...
21 views

### Errors 1. GreaterEqual::nord: Invalid comparison with 0.2 -0.4 I attempted. 2. RegionPlot3D::boolf:must be a Boolean function

I am trying to plot this inequality ...
94 views

### insufficient boundary condition error

I wish to solve the initial value kdv equation with a boundary condition that particles are fixed at the end points. Below is my code. ...
19 views

### ParametricNDSolve not accepting equation [duplicate]

I am trying to solve following differential equation $$\frac{d^2y}{dx^2}+(a+\frac{2}{\pi}b\hspace{3pt}\tan^{-1}x)\hspace{2pt}y=0$$ To solve it in mathematica I wrote the following code ...
54 views

40 views

### Mathematica file corrupted with the syntax error “Spacer[{0., 0.}], Selectable -> False”

My Mathematica file is corrupted. The error says There was a syntax error on line 34457 in the file: xxx.nb. The error was:Spacer[{0., 0.}], Selectable -> False ...
45 views

### Understanding and solving a problem with FindFit

I have a set of data which I give here ...
142 views

### Plotting a list of “Numerical” functions

In expressions like Plot[Through@{# &, #^2 &}@x, {x, -1, 1}] Plot effectively interprets the first argument as a ...
183 views

...
82 views

My code is: ...
86 views

### Plotting a two parameter function evaluated at a specific point [closed]

I am trying to solve the following problem: given the differential equation $$\frac{d^2y}{dx^2}+\bigg(a+b\frac{2}{\pi}\tan^{-1}x\bigg)y=0$$ subjected to two different initial condition we get two ...
54 views

### Error message when trying to solve 2 coupled PDEs using NDSolve

I'm currently facing a problem when trying to solve 2 coupled PDEs. I get the warning messages: NDSolve::fembdcc: Cross-coupling of dependent variables in DirichletCondition[IPF==IPB/10,z==5.] is not ...