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

0
votes
2answers
58 views

Function works only after printing variables inside [on hold]

For the input: pickTwoParts[{a, b, c}], the right output is: {{a, a b, a c, b, b c, c}, {b c, c, b, a c, a, a b}}. I am getting that output, but only after uncommenting the lines: ...
0
votes
0answers
28 views

Errormessage Set::setps [closed]

I want to plot some data with ErrorBars. The following code generates the desired image: ...
0
votes
1answer
49 views

NDSolve::bcsol?

I'm writing a code to numerically solve a differential equation. It has to repeat the process several times since there is a variable involved which is unknown, and the equation is fit to some ...
1
vote
1answer
47 views

NMinimize error: Nearest::neard:

I have this function GuessError, here's a plot assuming a single variable x, Plot[GuessError[10^x, etc..], {x, 8, 12}] , being etc some more variables which are ...
2
votes
1answer
50 views

Why isn't Table iterator value inserted in failed NIntegrate arguments?

Consider this simplest example: Table[{z, NIntegrate[f[x], {x, 0, z}]}, {z, {1}}] Here f is not defined, so ...
1
vote
0answers
28 views

Understanding HoldSequence and ReleaseHoldSequence in Error Handling

I was playing with GeneralUtilities`PrintDefinitions in V10.1, and find some of native Mathematica functions using ...
0
votes
1answer
56 views

NIntegrate producing SetDelayed::write message [closed]

I used NIntegrate to calculate an integral with the final limit as a variable, which later will be listed in a table, ...
2
votes
1answer
55 views

How can I correct error message that appears each time I launch Mathematica?

Each time I launch Mathematica I get the following error message : The specified setting for the option Magnification cannot be used. I have gone to the option inspector and have confirmed that the ...
0
votes
1answer
37 views

Using Check[] on multiple statements

I am using a loop to run run multiple fits. If a fit fails, I don't want it to either appear in my data or to affect later fits so I am using the Check[] function to catch if any errors occurred (I'm ...
0
votes
1answer
32 views

aborting at a message, but still save data

This may be an easy question, but I can't find it anywhere. I have a code which solves linear equations in a do loop (possibly compiled) using LinearSolve. To save the results I use Reap and Sow. It ...
2
votes
1answer
75 views

Why this error?

f[x_] := Piecewise[{{1, -0.5 <= x <= 0.5}}, 0]; ProbabilityDistribution[ Integrate[f[a], {a, x - 0.5, x + 0.5}], {x, -2, 2}] output: "Unable to prove that ...
7
votes
0answers
65 views

Enigmatic message about MaxBend

Referring to the method I proposed for Problem with ParametricPlot Mathematica 10.0.2 throws an enigmatic error message: ...
0
votes
0answers
23 views

Is there any way to get more info on an error message?

Many times I receive messages but can't find any documentation on what it means. For instance today I got this error: ...
5
votes
1answer
93 views

Compilation of `Total` with CompensatedSummation

I sometimes obtain an unexpected error when trying to call a compiled version of Total with compensated summation turned on. More specifically I define ...
1
vote
2answers
43 views
0
votes
1answer
44 views

How to switch on error messages in mathematica 10?

I have mathematica 10 and 8 on different computers. Version 8 always shows me the error message about what goes wrong while I don't see any error message in version 10. I find it quite inconvenient as ...
0
votes
2answers
97 views

NonlinearModelFit errors

I have read through other forum posts and have seen a few things that I thought would help but I am still having issues. I'm trying to fit some calibration data and am at first getting the error ...
1
vote
1answer
57 views

How to do predicate logic in Mathematica

I'm trying to formalize and analyze the following reasoning: All equilateral triangles are isosceles triangles. Some triangles are not equilateral triangles. Therefore some triangles are not ...
2
votes
1answer
46 views

Why do messages only appear first time I evaluate my compiled function?

I declare my compiled function: ...
0
votes
1answer
41 views

Why does this cause an error? [closed]

In[73]:= f[x_] := Save["C:\\Users\\user\\Desktop\\file", x <> x] f["###"] During evaluation of In[73]:= Save::sym: Argument ...
0
votes
2answers
111 views

Why won't this graph? [closed]

I'm trying to sketch level curve for z=k for the specified values of k={-2,-1,2} of z= 4x^2 - 4x + y^2 + 2y So I changed ...
1
vote
2answers
66 views

Maximum likelihood estimation based on frequency table

I have a frequency table of grades, I'm trying to estimate the distribution as a truncated normal distribution (a grade below 65 is a failing grade and doesn't count). Since I don't have the actual ...
2
votes
1answer
183 views

Compile a MeijerG function [duplicate]

I am not very experienced with Compile, I tried to use it for a Meijer-G function ...
0
votes
0answers
34 views

Possible bug in shallow representations of expressions in messages

I got the following message in Mathematica 10.0.2: I do not have questions about the message itself, but rather about its representation. The program was maninulating with mathematical expressions ...
9
votes
1answer
206 views

Can a System symbol spontaneously leak into a Global namespace?

During the development of a program to process bioinformatic data, I have encountered a peculiar shadow warning: Global...
1
vote
1answer
106 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
37 views

A While loop where the loop clause can receive problematic input

Consider the following highly artificial example: ...
0
votes
0answers
51 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
36 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
81 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
96 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: ...
5
votes
1answer
128 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
92 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
64 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
76 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
48 views

Capturing error message information

Error messages returned from SendMessage occasionally have useful information in them. For example: ...
3
votes
2answers
157 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_], ...
2
votes
1answer
84 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
53 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 ...
9
votes
2answers
87 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 ...
7
votes
2answers
107 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
86 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
170 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
195 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
133 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
34 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 ...
4
votes
1answer
57 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
30 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 ...
8
votes
2answers
308 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: ...