Questions tagged [message-coding]
Questions about coding the generation of Messages and about the Message subsystem itself.
115 questions
2
votes
1
answer
145
views
Receiving messages quietly
I recently learned about the possibilities of EvaluationData, and would like to analyse for example
the behavior of NIntegrate.
...
0
votes
0
answers
80
views
How to make an UpValue about Message for Protected symbol?
I would like to intercept certain messages, like the following
...
5
votes
1
answer
159
views
How can I find which messages have been turned off?
After using Off[message] to disable a message, how can I find those messages for which that has been changed, globally.
I would prefer not to have to intercept this ...
4
votes
1
answer
100
views
Reducing the length of long expressions inserted in Message
It looks like WRI is quietly changing the truncation of long expressions inserted in Message between versions.
For example, version 14.0 gives
...
0
votes
1
answer
90
views
General::tag weird behavior
Is there anyone here who can explain this strange behavior? Consider the following code:
...
3
votes
3
answers
226
views
How to express Error Message as 'Output Cell'?
I got a random error message.
expr = N[Pi, a]
expr = Sin[x,
The error message does not appear in the 'Output Cell'.
...
1
vote
3
answers
306
views
Problem with NonlinearModelFit in the case of ODE
I am asking for your help for fitting a nonlinear ODE to data which are unknown up to a multiplicative constant k. So the constant k appears both in the data, and in the model, where it ...
90
votes
6
answers
6k
views
How to abort on any message generated?
Mathematica is a bit unusual as a programming language because it never stops on messages, regardless of whether the message is an error, a warning or just an informative message. It simply prints the ...
2
votes
0
answers
122
views
Can I get the error message to be printed only once?
When an error occurs, most of the messages are output once.
However, sometimes a message is output multiple times.
Plot3D[x + y, {x, -1, 1}, {y, 1, 1}]
In this ...
0
votes
2
answers
68
views
How to preserve the state of messages across a block?
Is there a way to inquire whether a given message is switched On or Off without modifying the ...
0
votes
0
answers
71
views
Can one force Print[] statements within a Dynamic[] to appear in the Notebook? If so, should one ever do that?
For a simple demostration of the behavior, note that the print statements in this expression appear in the Messages window: ...
-1
votes
1
answer
140
views
How to make a button to delete a message output cell?
I got an error message about the following inputs.
Sin[x,y]
N[Pi, a]
There are two things I want.
(1) Creating a button to delete all message output cells
(2) ...
1
vote
0
answers
70
views
Redirect Messages
The command
nb = CreateDocument[{}]
opens an empty notebook. What I want to do is to redirect messages as generated by Mathematica so that they appear in this empty ...
1
vote
0
answers
96
views
A cryptic message when converting a Graph to Graphics
In Mathematica 13.3 (Windows 11) I do
Graph[{1, 2}, 1 \[UndirectedEdge] 2]
then right-click on the result and choose "Convert To Graphics" from the menu ...
0
votes
2
answers
178
views
How to find codewords from constraint equations? [closed]
I have edited this question to include more information about what algorithm I wish to use etc.
Say if I have a linear binary code with parity check matrix
$$H = \begin{bmatrix}
0 & 1 & 1 &...