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
0answers
24 views

Error message: ArcTan called with 0 arguments; 1 or 2 arguments are expected [on hold]

sol = NDSolve[{y'[t] == E^t ArcTan[t], y[0] == 0}, y, {t, -100, 100}] Am I blind? What is wrong here?
1
vote
1answer
36 views

Generation of list of values for small gap among values

I need to run a loop as Table[expr,{i,imin,imax,di}] where I want di to be as small as order of ...
4
votes
1answer
102 views

How to check the option value?

Given that I have a function func as follow: To check the value of options, I using the step-by-step method If[] ...
2
votes
1answer
141 views

Problem with Label in a Do loop, “nolabel”

Can someone tell me why this code doesn't work and how to fix it ? Thanks. ...
7
votes
5answers
302 views

How to check the style and number of arguments like the built-in functions?

Given that I have a function sqrt[x] that I must check the style and number of argument x. I can do like this: ...
13
votes
2answers
332 views

Is FrameTicks broken in 10.1.0?

On my system, Mathematica 10.1.0 under Windows, none of these FrameTicks documentation examples work correctly: ...
0
votes
0answers
19 views
0
votes
0answers
41 views

Mathematica error code 0x00000171

I'm getting above error code with a Trap 132 indication when attempting an ArrayPlot of a complex 130000 x 2048 matrix. Using Mathematica 9.0.1 with Mac OS 10.10.3 ...
7
votes
3answers
199 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0 and persisting through 10.1.0 or later 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. ...
53
votes
2answers
2k views

What are the best practices / most common / idiomatic ways to report errors in Mathematica?

In particular, what are the best ways to report errors about incorrect arguments to a function? Checking for the correct arguments is relatively easy using patterns, but how to report an informative ...
9
votes
2answers
353 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 ...
4
votes
1answer
38 views

How to properly generate messages from LibraryLink function?

I'm currently using WolframLibraryData::Message to generate messages from a library function, like this: ...
2
votes
1answer
36 views

Indeterminant expression encountered in Summation

I have a function that I'm trying to find an explicit form for the coefficients in its power series expansion. On paper, it is a long calculation so I decided to write up the formula in mathematica. ...
0
votes
1answer
77 views

Integral evaluation error

I have the following integral that I wish to evaluate using Mathematica: ...
14
votes
2answers
329 views

Error “Throw::nocatch: Uncaught Throw[False] returned to top level” given each time I open a new Mathematica 10.1 session

From a few days now each time I open a new Mathematica session I get the small error messages window with the error ...
-1
votes
1answer
144 views

Strange bug involving a list, “Objects of unequal length” [closed]

sortedTally is a list generated from Tally sortedTally[[1]][[1]] is a list If I print: ...
14
votes
3answers
654 views

Take screenshot of the entire desktop using Mathematica

Is it possible to get a screenshot of the entire desktop directly in Mathematica? I am on Ubuntu running Mathematica 8. For some reason GUIScreenShot[] fails. But ...
0
votes
2answers
61 views

Function works only after printing variables inside [closed]

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: ...
1
vote
4answers
108 views

Drop row if sum of part of row is equal to zero

My problem is the following: Suppose I have a matrix A which looks the following: ...
4
votes
1answer
129 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 ...
0
votes
1answer
52 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
49 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 ...
5
votes
1answer
98 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 ...
2
votes
1answer
58 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
30 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
61 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
59 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
40 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
34 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
79 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
70 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
28 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: ...
11
votes
3answers
4k views

General::ivar is not a valid variable when plotting - what actually causes this and how to avoid it?

I was just evaluating a couple of expressions and started to get errors like this: ...
28
votes
4answers
3k views

Why does MatrixForm affect calculations?

This is a really newbie question, but it has me confused. Why does this code work without // MatrixForm and doesn't work with ...
0
votes
1answer
47 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
101 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
62 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 ...
4
votes
1answer
59 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 ...
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
119 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
77 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
193 views

Compile a MeijerG function [duplicate]

I am not very experienced with Compile, I tried to use it for a Meijer-G function ...
9
votes
1answer
208 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...
0
votes
0answers
36 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 ...
21
votes
4answers
3k views

Importing a large Excel file

I'm trying to import a simple Excel file containing 94,000 rows and 52 columns of various types, mostly Reals. It's a 38-MB file. I get this super helpful error ...
3
votes
1answer
261 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 ...
4
votes
1answer
172 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
112 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 ...