Questions tagged [error]

Questions seeking help understanding error messages and fixing errors.

Filter by
Sorted by
Tagged with
5
votes
2answers
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$ ...
0
votes
0answers
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: ...
1
vote
0answers
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, ...
1
vote
0answers
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 ...
2
votes
0answers
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, ...
2
votes
0answers
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. ...
0
votes
0answers
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? ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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: ...
-1
votes
0answers
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. ...
1
vote
1answer
40 views

Finding maximum of a function of 2 variables

I have function defined in such way: ...
7
votes
4answers
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 ...
0
votes
1answer
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, ...
0
votes
0answers
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 ...
9
votes
2answers
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. ...
4
votes
1answer
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: ...
0
votes
0answers
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 ...
7
votes
1answer
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::...
1
vote
0answers
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. (...
1
vote
0answers
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 ...
0
votes
1answer
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. ...
0
votes
1answer
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....
2
votes
0answers
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 ...
9
votes
2answers
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 ...
1
vote
1answer
21 views
2
votes
1answer
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. ...
0
votes
0answers
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 ...
2
votes
0answers
54 views

FindSequenceFunction instantly throws an exception

FindSequenceFunction[{2, 4, 6, 7, 14, 29, 18, 5, 5, 2, 4}] SystemException["MemoryAllocationFailure"] $Version "12.0.0 ...
2
votes
0answers
21 views

`MatrixFunction` is returning a cryptic error message about “the function `1`”

The "Possible Issues" section of the documentation for MatrixFunction lists several possible ways in which a call to ...
0
votes
0answers
90 views

Solving equations using Implicit-Runge-Kutta method [closed]

I am trying to solve the system of equations using Implicit-Runge-Kutta method but mathematica is showing error "NDSolve::ndcf: Repeated convergence test failure at [Tau] == 4.9`; unable to continue."....
2
votes
2answers
58 views

How to use NIntegrate inside FindRoot?

I am trying to use FindRoot on functions that involve NIntegrate, and Mathematica is throwing undesirable errors even when it ...
0
votes
1answer
36 views

What does <<2>> mean in an output? Double Less than or greater than signs [closed]

An error in my output gives I am trying to understand what the issue is. I was wondering if this <<2>> has anything to do with it, because I don't know what that syntax means. Is <<2>> ...
0
votes
0answers
77 views

Elastic Collision Animation

So I am trying to animate an elastic collision, but I have a problem with the ruler when using Manipulatefunction: ...
2
votes
2answers
352 views

How to solve a system of transcendental functions?

Having difficulty solving the following instructions: Solve the system of simultaneous transcendental equations (e^x+ ln(y) = 2 ; sin(x) + cos(y) = 1). Hint: Look for a solution pair (x,y) that meets ...
3
votes
1answer
89 views

Epilog error in new version

I am able to run the following code in earlier versions and get what I want but version 12 gives an error message stating that Coordinates should be a pair of numbers, or a Scaled or Offset form. <...
5
votes
0answers
106 views

What does “Solved to an acceptable level” mean in the context of NonlinearModelFit in M12

I made a simple cosine fit to some data: ...
2
votes
2answers
59 views

Using Reduce to solve trig equations. Error: unable to decide whether numeric quantity .. is zero

I'm trying to find solutions to a fairly simple pair of simultaneous equations in variables $\phi_1, \phi_2$ using Reduce. ...
0
votes
2answers
98 views

Assign FindRoot output vector to a vector instead of element by element

Using FindRoot to solve a multivariate equation system, assigning the output to variables one by one works, but assigning the output vector to a vector gives the ...
0
votes
1answer
108 views

I have just begun to use mathematica and was hoping someone could help me understand these error codes

" I have an assignment where I am required to use bisection or false position method depending on various inputs and I think I have a reasonable code that should work but I am not sure why I keep ...
1
vote
0answers
61 views

How to iterate a function

I have written a custom function called f1[r_] and I have tried iterating this function using Table. I work nicely for the first ...
0
votes
1answer
44 views

How do I restrict the domain over which an equation is solved? [closed]

I tried to use the Solve function to find all solutions to $\sin x = \cos(2x)$ in the interval [0, 2π). I evaluated ...
3
votes
0answers
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 ...
0
votes
1answer
45 views

Understanding and solving a problem with FindFit

I have a set of data which I give here ...
6
votes
2answers
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 ...
2
votes
1answer
183 views

Why program output produces 0 / 1 error

...
2
votes
1answer
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 ...
1
vote
1answer
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 ...
5
votes
0answers
132 views

How can I prevent errors with ReplicateLayer[]?

I am trying to build a NetGraph[] that takes input of the form {{0.6},{0.6},...,{0.8},{0.8}} and multiplies the last sequence ...

1
2 3 4 5
21