For questions on interpreting existing error messages that you have encountered, as well as writing and managing messages, assertions and checks for your own functions.

learn more… | top users | synonyms

5
votes
1answer
64 views

Error messages from TensorContract and TensorReduce

I am struggling with a few errors when using symbolic tensors. I am using mathematica 9.0.1.0, linux x86. The following code generates what seems to me an incorrect tensor, this is the smallest ...
4
votes
2answers
220 views

Indeterminate expression. Where?

Consider the following: ...
4
votes
1answer
89 views

Sentiment analysis of tweets

I want to use Mathematica for a sentiment analysis on tweet-messages. For that purpose i selected several tweets. Each tweet is interpreted by myself as positive (pos) of negative (neg). For example: ...
4
votes
1answer
86 views

Issues with $MachineEpsilon

I'm attempting to add $MachineEpsilon to numbers I am pulling from the domains of 3 interpolating functions. I pulled 3 numbers, and for one of these numbers adding ...
4
votes
1answer
220 views

CreateCOMObject doesn't work on home edition

I can call an application named "PinPoint.Plate" with Visual Basic, Python and Mathematica version 8 but not with version 9. I can still call Excel though. How can I fix this? This is what I did: ...
4
votes
1answer
121 views

How can I prevent a Plot expression from evaluating points forbidden by its RegionFunction?

I just ran into this and it had me scratching my head for a good while. Say I have a function which may produce error messages for certain inputs, like e.g. ...
4
votes
2answers
116 views

'kEINVALErr' error on startup

I have been using Mathematica 8 on an OS X system for quite a while now, but this morning it threw this error at me when I started the program up: Assertion 'kEINVALErr' failed at ...
4
votes
1answer
346 views

Differential Equations with Matrices

I'm trying to implement the differential equation of a Cellular Neural Network in Mathematica as seen below: ...
4
votes
1answer
1k views

NonlinearModelFit::cvmit: Failed to converge to the requested accuracy or precision within 100 iterations

I have got a problem in my program with NonlinearModelFit: ...
4
votes
3answers
145 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0 Update: Since no one has been able to give a reason for this change in behavior or provide a solution I am tagging this as a bug. Please report it to Wolfram Support if this ...
4
votes
1answer
307 views

Error Interpretation in NIntegrate

I am using a recursion algorithm developed by Migdal for Lattice Field Theory, and I have the following code: ...
4
votes
1answer
515 views
3
votes
2answers
249 views

How can I get WhenEvent to recognize criterion I specify?

Using NDSolve I want to solve a differential equation till a quantity which is a function of the dependent variables reaches a certain value. My functions and criteria are complicated, but I am able ...
3
votes
3answers
285 views

Need help with exception handling

I have read the docs for Catch, Throw, and friends multiple times, and I confess that I find them utterly incomprehensible... ...
3
votes
1answer
219 views

How to show error messages in current notebook?

I would like Mathematica to print error messages in current notebook together with output. This is default option in Mathematica, but recently I turned it off somehow. Now, I am getting output in ...
3
votes
3answers
383 views

StreamPlot using NDSolve gives error messages

StreamPlot[{x[0], x'[0]} /. NDSolve[{x''[t] == 1, x'[0] == v0, x[0] == x0}, {x, x'}, {t, 0, 1}], {x0, -2, 2}, {v0, -2, 2}] The above code gives me the errors ...
3
votes
1answer
114 views

How do I format Compile[] correctly?

My Mathematica skill is still rusty, so kindly bear with me. I'm having problem formatting expression to compile the function correctly: $\sum _{g=1}^G \sum ...
3
votes
1answer
130 views

Set gives an unexpected error message (Set::partw)

Here is a minimal example: s = 1 /(a + b[3]) + 1 /(2 a + b[3]); s[[1]] = Sum[s[[1]] /. b[3] -> k, {k, 3}] s[[4]] s[[4]] = Sum[s[[4]] /. b[3] -> k, {k, 3}] ...
3
votes
2answers
390 views

How to set the initial condition? (to make IC and BC consistent)

I want to find the initial condition which fits mixed boundary condition of Phi[r, Theta, t]. The original initial condition in text is Phi[r, Theta, 0] == 1 . ...
3
votes
1answer
207 views

Font Issues: “Like Resource 58” error

I'm running Mathematica 9.0.0 on a Macbook Air with OSX 10.6.8 and I've recently started having issues with the font in the program. All special characters are being replaced with other characters in ...
3
votes
1answer
256 views

FunctionInterpolation Errors / Question re Evaluation Order and Options

I have using Mathematica functions that takes a Cartesian coordinate relative to the Earth (xyz) and converts it to a latitude, longitude, and altitude (lla). And here it is: ...
3
votes
1answer
298 views

Exception/Error handling using returns codes

There is good explanation available for error handling on this and similar links. Here there is information on handling inappropriate input arguments and handling unprocessed functions using ...
3
votes
0answers
53 views

NIntegrate::ncvbr: How should we interpret and handle this error not mentioned in any documentation?

I have some user-defined module describing my integrand which has to be computed numerically (it's much more complicated than this but bear with me): ...
3
votes
1answer
98 views

The front end encountered an error while processing a “NotebookPredictions” packet

I occasionally get the error The front end encountered an error while processing a "NotebookPredictions" packet. I cannot find any documentation for this error message online. It does not ...
3
votes
0answers
197 views

Numerically solving a system of PDEs where one function is composed with the other

I'm trying to solve the following system using NDSolve: $$ \begin{align} u_t(x,t) &= u_{xx}(x,t) - v(x,t) \\ v_t(x,t) &= u(v(x,t),t) \end{align} $$ with ...
3
votes
0answers
52 views

SiegelTheta fails to evaluate when given proper arguments

SiegelTheta often returns error messages when I give it arguments that should be of the correct form. For instance, I have a numerical matrix like ...
3
votes
0answers
107 views

Dealing with errors and resuming the code after one

How can I write my Mathematica code so that it resumes at a specific place if any Message is displayed during the execution of an expression? For example, in Visual ...
2
votes
4answers
126 views

How to plot a graph from it's incidence matrix?

I'm using Mathematica v9 and am trying to draw a graph by using it's incidence graph, but it won't draw it, which occurs an error "is not a valid incidence matrix.". But I've checked my matrix, and ...
2
votes
1answer
2k views

How do I troubleshoot when I get a Part::partd or a Part::partw error?

Mathematica has produced the following error message: Part::partd: Part specification ... is longer than depth of object? What is partd? I think I may ...
2
votes
1answer
3k views

How do I identify the source of a “Tag times protected” error?

I have some code that looks like Table[ a = 1; b = {2, 3} c = i;, {i, 2} ] which gives an error: Set::write: Tag Times in c {2,3} is ...
2
votes
1answer
1k views

Mathematica Can't Evaluate This?

I am trying to find the inverse function of $\frac{\ln{x}}{x^2}$ in Mathematica. I am using the Solve[] function to find the inverse (yes, I know about ...
2
votes
3answers
355 views

How can `SquareWave` be used as the input in `OutputResponse`?

I'd like to compute the response of a TransferFunctionModel when driven by a SquareWave. Here's a simple example, ...
2
votes
1answer
693 views

A combination of Set::setraw and Set::shape errors

Please consider the following toy code: ...
2
votes
1answer
89 views

Possible to Solve a LocationEquivalenceTest?

I have 5 groups, each containing around 20 elements. These elements are all dependent on x. For example: Set1 = {1.5x + 1, 2x + 0.5, 1 x + 1, ...} etc. Now, I want ...
2
votes
2answers
453 views

Solving set of non-linear simultaneous equations gives PolynomialGCD::lgrexp error - what next?

I'm trying to solve a set of six simultaneous non-linear equations to get a numerical answer using NSolve: ...
2
votes
1answer
143 views

Printing a success message if no errors have yet been thrown in the current session

I plan to run a lengthy Mathematica script on a Linux terminal (by "a Linux terminal," I mean that I have text output only -- no GUI), using the program math. To ...
2
votes
1answer
529 views

FindRoot Infinite expression 1/0 encountered error

I have 1 equation in 1 variable, which when I use Plot, looks like this: ...
2
votes
1answer
419 views

Infinite Expression Error from NDSolve

I am trying to solve a differential equation numerically. So I have ...
2
votes
2answers
1k views

NMinimize with defined function call getting error NMinimize::nnum

I want to call the NMinimize function for my own defined calculations but I got an error. Below is a simple example. ...
2
votes
1answer
110 views

Error when attempting to save Notebook. Cause and solution?

I am experiencing an error attempting to save a modified Notebook in Mathematica 10 under Windows. The error I get is: ...
2
votes
1answer
134 views

Differences between ParametricPlot3D and NIntegrate

I have a function $f : \mathbb{R} \rightarrow \mathbb{R}^3$ defined in a rather nasty way in mathematica however it's a smooth function and what not. I am interested in $f'[t]$ and when I run it ...
2
votes
2answers
643 views

Problem with NDsolve for a system of equations

I want to solve a system of differential equations which is not very complicated, but I cannot handle the problem with mathematica!! Please have a look at the problem and result and help me with your ...
2
votes
1answer
54 views

Evaluating $n$-th derivative of a function at a given point [closed]

I have a function defined as follows: \begin{array}{ccccc} g & : & [-1,1] & \to & \mathbb C \\ & & x & \mapsto & \frac{1}{(x-z)^k} \\ \end{array} where $k$ is a ...
2
votes
1answer
86 views

a mysterious error in multiple symbolical integration

I am trying to do the following integration: ...
2
votes
2answers
129 views

Getting messages Rest::norest and Divide::indet from ContourPlot3D

Note: The bug described in this post is found in Mathematica version 9 and seems to have been fixed in version 10. Ok I don't know if it's a bug or what, but here's what I found: If I use this ...
2
votes
1answer
155 views

Mathlink works strangely

I have problem when using mathlink, the source code is quite simple: ...
2
votes
1answer
165 views

RevolutionPlot3D: Inconsistency between Mathematica 8/Linux and Mathematica 9/OSX

The following code runs error-free in Mathematica 8.0 under Linux. ...
2
votes
1answer
236 views

How can I remove unnecessary warning messages?

I updated Mathematica,CdfPlayer to new Version (9). I made a simple Application in Mathematica 9 and deployed into ...
2
votes
1answer
26 views

Replace error messages with zeros in a table

I'm working on a project of Nuclear physics and I'm passing results of a simulation program to mathematica via a txt file. I then read the values I need to read and plot them. The problem is that ...
2
votes
0answers
30 views

Show error messages from collapsed sections

I've got a fairly long notebook. I like to have most of the sections collapsed. If I evaluate the entire notebook I don't see errors in the collapsed sections unless I expand them. I did see that I ...