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.
7
votes
3answers
926 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:
...
17
votes
4answers
740 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 ...
7
votes
2answers
323 views
Solving/Reducing equations in $\mathbb{Z}/p\mathbb{Z}$
I was trying to find all the numbers $n$ for which $2^n=n\mod 10^k$ using Mathematica.
My first try:
Reduce[2^n == n, n, Modulus -> 100]
However, I receive ...
17
votes
2answers
601 views
Mathematica Debuggability
One of the things that I really dislike about Mathematica is its lack of debuggability compared to many other programming languages. Some of the problems arises from the functional nature of ...
21
votes
1answer
271 views
which is better, using Assert[] or manual checks on arguments and other computations?
I never used Asserts in Mathematica, but trying to see what advantage they have over just argument check and additional definitions of the function to capture unwanted input.
For example, which one ...
10
votes
1answer
213 views
Check does not interrupt evaluation of the expression when a Message is emitted
On the surface, Check looks like a good method to use when you need to abort the evaluation of an expression whenever a Message ...
2
votes
1answer
596 views
How do I prevent NIntegrate::inumr errors within other functions?
I believe this question is best illustrated with a simple example. If I run
FunctionInterpolation[NIntegrate[a + b, {a, 0, 1}], {b, 0, 1}]
I get errors of the ...
27
votes
3answers
385 views
No warning when extrapolating with Plot
One of the most annoying "features" of Mathematica is that the Plot family does extrapolation on InterpolatingFunctions without ...
13
votes
1answer
92 views
Standard message definition construct
Why are the messages almost always defined like this (at least in packages):
If[Not@ValueQ[function::usage], function::usage = "Usage message"]
and not just like ...
10
votes
1answer
274 views
Finding a Specific Line in a Package
In a package I am developing, I accidentally left this line
Protect[
uncompleted prior to running the package. Mathematica produced this error message
...
9
votes
2answers
190 views
How to find a specific error message?
Is there a way to find an existing error message in the System` context, that is used for a certain case? I want to include a message in a custom function that ...
6
votes
4answers
93 views
How to catch complete error message information
If I evaluate this expression:
Module[{}, 1/0;0^0]; msg = $MessageList
I get:
...
6
votes
2answers
243 views
How do I make NotebookEvaluate work inside Button?
The following creates a button to select a notebook to run. When the button is pressed it seems that Mathematica finds the notebook but cannot evaluate it. The following error occurs
Could not ...
7
votes
1answer
188 views
What does MaxStepFraction do?
I find that with NDSolve[...] while solving a partial differential equation, changing the MaxStepFraction from ...
7
votes
2answers
388 views
Table function with Part[] call misbehaving, but only after initial startup of Mathematica
I am getting errors like:
Part::partd:
Part specification standardBasis[[1]] is longer than depth of object.
with the following Manipulate expression:
...
2
votes
0answers
74 views
StringMatchQ error messages printed to console while main notebook is sitting idle [duplicate]
Possible Duplicate:
Strange ::usage behavior in v9
I'm currently finishing up a Mathematica vector calculus package (MMA9.0 on Mac Os X), but have had a persistent problem that I haven't ...
5
votes
1answer
143 views
4
votes
1answer
523 views
FeynArts not working properly
So I have installed all FeynArts folders (from 3.5 to 3.7) with FeynCalc 8.0.1., and none of it is working properly :\
First I load the path to specific FeynArts package (3.5 for instance), then, by:
...
3
votes
0answers
88 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
1answer
286 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
307 views
Inconsistent initial and boundary conditions
I have a 4th order nonlinear PDE with the following BCs and IC:
...
0
votes
1answer
200 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 ...
