Questions seeking help understanding error messages and fixing errors.

learn more… | top users | synonyms (2)

0
votes
0answers
15 views

Suddenly error when training SVM

I am running Classify[] function using a SVM model, suddenly I get an amazing error that I can not resolve it here is my code. The data is imported from a file *.txt ...
2
votes
1answer
33 views

Display line number/stack trace of error in script (i.e. batch mode / command line interface)

I am trying to set up a Mathematica script so that it runs from the command line in the manner that a sane person would expect. I have the following at the start of the file: ...
4
votes
1answer
109 views

Error given by the Clear function

I'm trying to clear out some variables that I've previously used, so that I can use them again. I tried this in a different notebook and it worked, however, now, a command like : ...
4
votes
1answer
164 views

Goal optimization: finding the best combination of capacitors and resistors resulting in given properties

I want to edit @MarcoB answers (because the code he gave doesn't answer the question appropriately)->(the function that need to be optimised is not implemented as asked) But it seems like I am having ...
0
votes
0answers
44 views

Getting NDSolve::conarg: error from attempt to solve diffusion equation

I'm trying to model diffusion of a single species from a fixed reservoir into a porous solid. Function u[x,t] should go from 0 < x < L, while f[x,t] should go from L < x < Vratio. I have ...
1
vote
0answers
21 views

License not released after kernel is stopped for KernelTimeLimit reached?

Using webMathematica, doing massive tests of our functions (each call can take from 0 to 15 seconds). After a while we started getting lots of 403 Forbidden errors. webMathematica.log: ...
11
votes
1answer
210 views

How to deal with bad arguments when a function's UpValues is a pure-function?

In practice, I needs to define the UpValues of a user-defined function. For instance, the operation of function like differential formula , expansion and so on. ...
3
votes
1answer
73 views

Compile::cplist: error from MapThread [duplicate]

What is the cause of this error? Compile[{{r, _Integer, 2}, {d, _Integer, 2}}, pos = Position[MapThread[#1 > #2 &, {r, d}, 2], x_ /; x == True]] ...
3
votes
2answers
116 views

In 10.3 System DialogInput execution error

I have upgraded to 10.3 from Mathematica 9.0. However, in 9.0 things that ran well will not run in 10.3. A typical example is: ...
1
vote
1answer
100 views

Serious Startup Error: Error code 583

I can't start Mathematica 10.2 in Windows 8.1 64 bit, I'm getting this error even after I uninstalled and re-installed. I emailed support a couple fo days ago, but I'm yet to hear from them and I ...
1
vote
0answers
46 views

FindPeaks “expecting an image” [closed]

I am trying to use FindPeaks for a list of data, but when I have tried to use it it returns an error. I went to the help menu for the function to check that everything is in the correct format, and ...
3
votes
1answer
61 views

DSolve with Piecewise Function in System of DEQs

I have been messing around with this problem from MSE, which is given by: $$ \ddot{x} = \begin{cases} -x + c\cdot \operatorname{sgn}(x)& |x| > c\\ 0 & |x|\leq c \end{cases} $$ where $c ...
0
votes
1answer
98 views

Solving ODE system with NDSolve: “singularity or stiff system suspected” [closed]

I'm trying to solve a set of 4 ODEs as specified below, however I'm getting this error ...
1
vote
0answers
45 views

How to fix the error InterpolatingPolynomial::ipdup: The abscissas are not distinct

I'm trying to plot the function Abs[InterpolatingPolynomial[..] - f[x]] where f is a function. I receive the error: InterpolatingPolynomial::ipdup: The ...
0
votes
0answers
26 views

Serious Startup Error, “The file outline cache was ignored.”

I was trying to change my default fontsize. I was reading Changing the default font for StandardForm I/O from 'New Courier' to 'Consolas'? and the instructions for affecting all future notebooks ...
1
vote
2answers
58 views

Floor function issue [closed]

While attempting to evaluate a recurrence relation an error with the Floor function is encountered. Computing an example to verify the floor function works correctly I ran the code ...
0
votes
1answer
54 views

Shooting method — why is NDSolve giving me an error message?

I am currently trying to write a code to implement the so-called shooting method (I've given a brief description of it below, for those unfamiliar) for second order ODE's in the form ...
1
vote
1answer
135 views

Why can DSolve not solve this ODE? [closed]

I wish to solve an equation for the field lines of an electric field. This is the textbook question 1.3.8(a) from D. Dubin's Numerical and Analytical Methods for Scientists and Engineers, Using ...
3
votes
1answer
46 views

When slope is undefined, output is undefined instead of error message

This simple program returns the slope and the equation of a line when two points are selected in Manipulate. If the line is vertical, I want to intervene before Mathematica's error message. I want to ...
1
vote
2answers
59 views

NDSolve with one parameter

This is a copyable minimal example to illustrate the problem that occours when I include one parameter U into a differential equation which I want to solve with ...
3
votes
1answer
100 views

Binary decision diagrams (BDD) syntax error

I am new here (and to Mathematica) and would like to rebuild a simple binary decision diagram that I found here https://en.wikipedia.org/wiki/Binary_decision_diagram A code has been provided as part ...
0
votes
1answer
29 views

Modify code to avoid recursion limit warning [closed]

I programmed a recursive function and I want to see the evolution depending on the number of trials. I want to find the value of k for which the difference between $rec_i^k$ and $rec_i^{k+1}$ is equal ...
3
votes
1answer
49 views

Mathematica 8 won't start - Error Code 499

I am pretty dumbfolded on this one and there seem to be virtually no clues around the net. The only thing vaguely related is a fairly similar (unsuccessful) question on reddit: ...
1
vote
1answer
99 views

Wrong root when using numerical values

I have the following inequality: $$ \sqrt{\frac{a}{2x}}+ \frac{b}{1-\frac{a}{a+\sqrt{a(2bx + a)}}} + \frac{a}{2x\frac{a}{a+\sqrt{a(2bx + a)}}\left(1-\frac{a}{a+\sqrt{a(2bx + a)}}\right)} < f $$ on ...
1
vote
1answer
55 views

How to test if DSolve can solve equation

I have a rather generic system of n first order ODE to solve, of the type $v_i'[t] + \frac{A}{t}v_i[t] = \sum_jI_{ij}[v_i[t],v_j[t]]$,   $I_{ij}=-I_{ji}$. Depending on the form of interaction ...
2
votes
1answer
76 views

NDSolve with piecewise function gives error “Encountered non-numerical value for a derivative at x == 0.” [duplicate]

I am solving differential equation with piecewise function and i am getting error that NDSolve::ndnum: Encountered non-numerical value for a derivative at x == 0.. ...
2
votes
2answers
68 views

How to fix internal error “too much recursion” when trying to compute a definite integral

I'm completely new to Mathematica. I got a 14 day free trial and I'm using the online version. I'm trying to use it to check the results of an integration I performed by hand. But I'm not getting any ...
1
vote
1answer
51 views

Operations on dynamic arrays [duplicate]

When I do a simple operation like this fib = Table[Fibonacci[i], {i, 15}] and then look to find the position of a certain value, everything works fine: ...
7
votes
2answers
150 views

Derivative of the Dedekind eta function fails to compute with errors I don't understand

When trying to understand better the question Eisenstein Series in Mathematica? I stumbled on the following: issuing Derivative[1][DedekindEta][.11 I] gives ...
1
vote
1answer
56 views

Error with NDSolve when used for a nonlinear system of PDE's

I am trying to solve the following system of Hamilton-Jacobi PDE's: $ V_1,_t - 0.5 V_1,_x^2/(1 - 0.2x)^2 + V_1,_x(0.1x^2+0.03x+.0.01)/(1 - 0.2x)+0.03(x-0.5)^2-V_1,_x V_2,_x/(1 - 0.2x)^2=0$ $ V_2,_t - ...
4
votes
1answer
80 views

What is a sufficient decrease in the merit function?

As far as I understand, the merit function measures how far the data is from the fitted function. I am calulcating the second partial derivative of a function, and then numerically finding its maxima ...
1
vote
1answer
52 views

Error in NDSolve

I want to solve this nonlinear equation in the "NDSolve". The matrixs of this equation are defined as below. ...
6
votes
2answers
222 views

Solving the path of Earth around Sun

This maybe isn't a universally helpful question. Maybe a little of a code dump. But here goes. I'm trying to solve the path Earth moves around Sun from Earths mass, Suns mass, Earths initial velocity ...
1
vote
0answers
95 views

Exceeding time constraint of 300 seconds when taking coefficients of some expressions from schur polynomial [closed]

I have written a code that takes coefficients of some expressions from schur function, but it seems to take a lot of time, and Mathematica will stop after 300 seconds saying that it's over the time ...
3
votes
1answer
85 views

SystemException with Interpolation

Consider the following sample code Interpolation[{Range[20], 2*Range[20]}]; ...
2
votes
2answers
56 views

Misplaced Automatic in output of ContourPlot3D [closed]

The following gives an error when displayed in the front end: cp = ContourPlot3D[x, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> {{0.}}] There is an ...
4
votes
1answer
120 views

Why does my MapThread expression fail in this case?

This morning, I opened one of my previous notebooks and evaluated it. Surprisingly, the code produced an error. This took me a whole four hours to find the problem and it is with ...
2
votes
1answer
138 views

Getting errors NDSolve::nlnum, NDSolve::icfail)

I would like to plot the function v[r], and resolve this differential equation in spherical simmetry: ...
4
votes
0answers
64 views

List(Log)Plot with “high” resolution results in various warnings, e.g. BinCounts::step

Here is some very odd behavior from ListLogPlot. So if I want to plot a function using LogPlot, I can specify the ...
1
vote
1answer
61 views

Convergence in NIntegrate

I wish to understand how to cope with the following error messages: ...
2
votes
0answers
35 views

Scaling 1D ArrayPlot divide by zero error [closed]

I am trying to overlay an ArrayPlot onto a WaveletScalogram, using the helpful answer here; however, my ArrayPlot is one-dimensional. My code: ...
1
vote
1answer
132 views

Mathematica hangs on opening at start up on Mac OS X 10.11 (Yosemite)

Since updating to Mac OS X 10.11 (Yosemite), Mathematica 10.0 will not start. I just get the spinning beachball, with no error messages, but it does not crash. I've tried suggested fixes (Deleting ...
0
votes
1answer
51 views

Error message Graphics`Colors`

I am having trouble running this code: ...
2
votes
2answers
193 views

Attempting to use NDSolve to plot harmonic oscillator solutions

NDSolve[{ (-y''[r]/1880) + (470 (0.04077)^2 r^2 - 48 + 1/(1880 r^2)) y[r] == 0, y[0] = 0, y'[0] = 0}, y, {r, -4, 4}] I use this but get errors and am ...
2
votes
1answer
72 views

Errors in plotting regular function

Suppose we want to define Tanh-function via exponent: th[x_] := (1 - Exp[-2 x])/(1 + Exp[-2 x]); FullSimplify[th[x]] Out[13]= Tanh[x] Then we define new ...
1
vote
2answers
96 views

Error NDSolve::nlnum1 from 2nd order ODE with 4 boundary conditions

I want to solve this 2nd order ODE with two initial conditions close to the origin (one to the function and the other to its derivative) and more two similar conditions for an endpoint. ...
2
votes
2answers
138 views

How to visualize multiple errorbars for one data set with ErrorListPlot?

I have a following problem: I am performing error analysis for my data set using multiple technics. Obviously, at the end of my analysis I want to compare the errorbars plotting them on the same ...