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

1
vote
1answer
47 views

FindFit::nrlnum: error with FindFit

I am trying to write a code to fit actual data of the orbit of a star with Mathematica 8. First I tried to write a code to fit a mock orbit, using the Application with differential equations (the ...
1
vote
1answer
32 views

A While loop where the loop clause can receive problematic input

Consider the following highly artificial example: ...
0
votes
0answers
45 views

Two installations of MMA 10.0.1.0 differ in behavior

I'm seeking advice on how to track down what might cause the following difference in behavior. I have two independent installations of MMA 10.0.1.0, both on Mac OS X Mavericks on identical x86 Mac ...
0
votes
1answer
22 views

Error with numerical summation - how to specify “n choose r”?

I'm trying to do the following sum: NSum[((50000 - x) choose x)*(1/3^15)^x*((3^15 - x)/3^15)^(50000 - x), {x, 1, 4}] But I keep getting an error saying: ...
1
vote
0answers
73 views

Is there a minor bug in Neal Alexander's TopologicalSortAll[]?

There is an amazing answer to this question: All possible topological orderings of a graph By Neal Alexander. However, as user "dark blue" (I am not this user) notes: ...
1
vote
0answers
55 views

What does this Java error mean? Why is it raised?

I want to launch some kernels on a cluster that uses SGE. The server's operating system is Linux Cent-OS. According to Mathematica documentation, I've added these commands inside my code: ...
4
votes
1answer
115 views

How to use Message with an error string without predefining it first?

I need a very simple error reporting using Message. But I do not want to pre-define each error message separately as shown What are the best practices / most common / idiomatic ways to report errors ...
2
votes
1answer
50 views

Breaking out of NDSolve

I am solving a coupled set of differential equations with NDSolve for 6 unknown functions of time. At a certain point in time, the system hits a singular point where the potential governing the ...
4
votes
1answer
34 views

The specified setting for the option FEFloatIterator cannot be used

I am currently trying to get a numerical simulation running where one variable is iterated over many orders of magnitude. As the calculation takes pretty long, I would like to display a ...
1
vote
1answer
56 views

For loop with MapIndexed and If [closed]

I have a for loop that uses MapIndexed and If to build a a list called avald1. The problem ...
1
vote
0answers
30 views

Capturing error message information

Error messages returned from SendMessage occasionally have useful information in them. For example: ...
3
votes
2answers
86 views

Interpolation function error: Interpolation::femimq and Interpolation::fememtlq

In Mathematica 10 the following command ...
0
votes
0answers
13 views

Encountering a Tag times Protected error, but cannot find the source [duplicate]

I am very new to using mathematica, and I have seen these errors frequently. Usually I can find a solution to my issues by stumbling around, but this is my first time defining a function like sp[t_], ...
1
vote
1answer
64 views

FindRoot over a domain, but give domain boundary if no root exists

I call r = x /. FindRoot[f[x] == 0, {x, 0, -5, 5}] f[x] is always monotonic, but sometimes it doesn't have a root in the ...
0
votes
0answers
40 views

SetDelayed::write is Protected error on Linux not PC

I have 2 computers, a PC and an Ubuntu computer both with Mathematica 10. I am running the exact file with the exact support files on both computers, but just on the Ubuntu I get the following error ...
7
votes
2answers
74 views

Detect Messages within an expression without losing the return value?

I know that Check[expr,failexpr] is a mechanism to catch messages. The problem with it is that if a message is generated within ...
5
votes
2answers
76 views

Error when implementing StartProcess[] in loops (Do, While, Table)

I'm using Mathematica to control another program (Surface Evolver) through the terminal (ie using StartProcess[]; and ...
5
votes
1answer
82 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 ...
7
votes
2answers
133 views

Catching error in middle of evaluation of compiled function

I have programmed and Compileed a complicated numerical function. The function has singularities (i.e. are infinite) at certain input numerical values. I need to ...
5
votes
1answer
133 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: ...
3
votes
1answer
123 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 ...
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
33 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 ...
-1
votes
1answer
24 views

Iterator bounds error when defining function [closed]

It's been a while since I've done any multi-line functions in Mathematica, so maybe I'm just missing something. I've created the following function, and I immediately get an Iterator bounds error when ...
7
votes
2answers
209 views

Interpolating an Antiderivative

I'd like to be able to make InterpolatingFunctions for antiderivatives of functions that can't be integrated symbolically. However, the following code returns several error messages: ...
3
votes
0answers
57 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): ...
2
votes
1answer
57 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 ...
4
votes
1answer
92 views

CUDALink Error: A CUDALink kernel timed out?

I'm following the CUDALink tutorial [ http://reference.wolfram.com/language/CUDALink/tutorial/Introduction.html ] and everything is going fine until I get to the part that calls CUDADot on the ...
1
vote
1answer
80 views

How to suppress a warning message

If I change $MinPrecision before running ListPlot[{{1, 2}}], there will be a warning in Mathematica 10. But there is no warning ...
10
votes
3answers
98 views

How to limit number of user-defined messages issued per evaluation

I have written code such that if it runs into a particular function, a warning message is issued. However, it is common for the program to call this function several times in a single evaluation, but ...
2
votes
0answers
74 views

Two problems with NDSolve when using Method -> Projection

I tried to solve a system first order differential equations together with a constraint equation. I use the Method -> Projection to check if the constraint holds ...
5
votes
4answers
120 views

Passing a variable messages list to Quiet

I'm trying to build a Verbose option into some code but I'm having trouble passing to a Quiet statement a variable list of which messages I want to suppress. My ...
5
votes
2answers
88 views

Automatically detect largest interval over which NDSolve can find a solution

Question: Consider the following numerical resolution: NDSolve[eqn, {x1[t], x2[t], y[t]}, {t, tmin, tmax} where eqn, ...
2
votes
0answers
76 views

Maximizing Large Multivariable Function over Region with Parameter Constraints

Brand new Mathematica user here. I have a complicated function to maximize, and thought I would try software like Mathematica instead of taking derivatives by hand. I found some Mathematica ...
8
votes
1answer
245 views

Why is Dataset upset by division by zero?

Consider this example: ds = Dataset@Transpose[<|"a" -> {1, 2, 3, 4, 3, 2, 1}, "b" -> {6, 5, 4, 3, 2, 1, 0}|>, AllowedHeads -> All] Now say I ...
0
votes
1answer
56 views

Restarting Mathematica causes an animation to fail to run [duplicate]

I've tried animating two different sets of 3D plots. Interestingly, one plot will always work, regardless of whether I restart Mathematica, yet another plot will only work in its current Mathematica ...
2
votes
1answer
91 views

a mysterious error in multiple symbolical integration

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

How to handle infeasible points in FindRoot?

I am calling FindRoot[f[x,y],{{x,xInit,xMin,xMax},{y,yInit,yMin,yMax}}] where for some points {x,y}, ...
3
votes
1answer
142 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 ...
5
votes
3answers
162 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0. persist as of 10.0.2 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 ...
2
votes
4answers
210 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
0answers
76 views

Export Notebook causes an INTERNAL SELF-TEST ERROR: Files2|c|1713 message

On my machine (Windows 8.1) and M10 the following two lines, that must be run on an already saved notebook, ...
2
votes
1answer
113 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: ...
1
vote
1answer
67 views

Warning and Errors during Compile

I defined a compiled function cf = Compile[{{x, _Integer}, {n, _Integer}}, z = (n^x); Binomial[n, #]* StirlingS2[x, #] *(#!)/z & /@ Range[x]]; and I ...
0
votes
1answer
50 views

Assigning a given value if a function returns an error [duplicate]

This question has to do with error handling, I guess. I am using Brent's Method in order to numerically find the root of a function. This is just an example of what I am doing: ...
0
votes
0answers
75 views

Error message LinkObject::linkd when calling TextRecognize

I am getting the message LinkObject::linkd: "Unable to communicate with closed link LinkObject["E:\Program Files\Wolfram ...
0
votes
0answers
67 views

Geometric Transformation not working - degenerate points?

I've successfully used FindGeometricTransformation to project the simplex triangle onto the x-y plane: ...
1
vote
2answers
59 views

Print argument of function that exceeds $RecursionLimit

Is there a way to print the argument of a function which results in a $RecursionLimit::reclim error? As an example, cosider the code ...
0
votes
2answers
85 views

Update: Interpolation error message? [closed]

I have the following data that needs to be analyzed : data = ToExpression@Import["http://pastebin.com/raw.php?i=8XKGYvSy", "Data"]; I have 6 sets of coordinates ...
1
vote
1answer
150 views

Error message: Coordinate index 0 is out of range for the enclosing GraphicsComplex

I am unable understand following error message: Coordinate index 0 is out of range for the enclosing GraphicsComplex. How to fix it? Attached data here: pts and polygons. See also end of question. ...