Questions tagged [evaluation]
Questions about how Mathematica evaluates expressions, tracing evaluation (Trace*), handling expressions in unevaluated form (Hold*, Unevaluated), nonstandard evaluation, etc.
1,590
questions
2
votes
1
answer
230
views
Why does FindInstance[x>0,x] give 27? [closed]
Why does FindInstance[x>0,x] give 27? I would think it would give 1… maybe 2 or some small positive decimal.
1
vote
3
answers
58
views
How to programmatically wrap an output expression in a function
When I execute:
Audio["ExampleData/rule30.wav"]
I get an Audio Object.
How can I programmatically wrap the output in another function (without ...
2
votes
2
answers
128
views
Force Mathematica to simplify a function to avoid infinities
I am doing some evaluations which return functions of three variables similar to the following:
...
2
votes
0
answers
49
views
Evaluation break in WolframScript
Astonishingly, I couldn't find this either by googling or tag search here.
CTRL-C completely closes WolframScript (on my Windows 10). But I just want to break the evaluation (if it takes too long). ...
0
votes
0
answers
52
views
How to list all the procedures Mathematica uses when doing some computation and how to control it?
If I compute:
Factor[x^3 + x - 2]
It will give me the expected result:
$(x-1) \left(x^2+x+2\right)$
But if I try the following:
...
2
votes
1
answer
168
views
How to get the output of evaluating in place and append the output to the place
I am trying to use MMA for some engineering calculations, and the text cell contains both descriptive text and mathematical formulas. The example is as follows:
...
9
votes
3
answers
1k
views
Why doesn't b = a; f[a_] := b; f[2] return 2?
As the title asks, why does
b = a;
f[a_] := b;
f[2]
evaluate to a rather than 2?
3
votes
1
answer
110
views
What does this statement about "Block" mean in the official documentation?
Initial values specified for x, y, ... are evaluated before x, y,... are cleared.
It's from the Details in The reference to Block. And I can't understand it.
When are the local variables cleared and ...
2
votes
3
answers
89
views
Clearing a list of variables: Problems trying to control the order-of-evaluation [duplicate]
I am having trouble controlling the order of evaluation of mathematica expressions.
What I would really like is a general solution, in the form of a pair of functions ...
0
votes
0
answers
48
views
Solve in solving equation system
I have the following problem:
I have a system of equations specifically consisting of 56 equations, with 34 coefficients to be determined, in simplified form:
...
6
votes
1
answer
139
views
Help in understanding the evaluation inside Plot
My colleague sent me this surprising example of code today (this is after stripping everything unrelated to the evaluation):
...
0
votes
0
answers
23
views
Keep list of user-definitions
Is there some easy way to keep track of user defined definitions. Or perhaps even better definitions made while some definitionRecordingFlag==True.
This is prompted ...
1
vote
0
answers
40
views
Avoiding ugly errors in Manipulate (and alike functions) on start up of Notebook [duplicate]
When there are Cells containing Manipulate this often leads to Errors in cells right at startup.
Say I write
willReceiveValue={1,2}
in one cell and in another
<...
0
votes
0
answers
66
views
Wolfram Cloud does not evaluate cells using Shift+Enter
When one clicks Shift+Enter on or evaluates a cell, it prevents you from typing/editing it, so it was thought
How can I prevent SHIFT-ENTER moving the editing cursor?
would stop this, but it did not....
5
votes
3
answers
157
views
Evaluation control of nested With, If and Integrate
Can you explain the behaviour of the following?
The first With outputs unevaluated If.
So in the second ...