Questions tagged [evaluation]
Questions about how Mathematica evaluates expressions, tracing evaluation (Trace*), handling expressions in unevaluated form (Hold*, Unevaluated), nonstandard evaluation, etc.
1,637 questions
1
vote
1
answer
277
views
Force certain operations to evaluate last
I have an integral of a term which first needs some massaging, e.g. (EDIT: Made the integral in such a way that it cannot be pulled out)
...
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
75
views
How can I run cleanup code automatically at the end of an evaluation (without wrapping the code)?
I would like to invisibly open a notebook, return the notebook object, use it in subsequent intermediate evaluations within the active overall evaluation, and then close the notebook object at the end ...
0
votes
0
answers
99
views
Plot shows expected curve, but expression cannot be evaluated
I have the following expression in Mathematica:
...
7
votes
1
answer
308
views
Prevent equation involving units from evaluating to True
If I evaluate the expression below, output is True as expected. However, is there a neat way to get an intermediate result as shown below without fully evaluating ...
1
vote
4
answers
255
views
`With` with auto-generated local variables
The strange goal
I want to do something like this
...
51
votes
6
answers
5k
views
How to create symbols from strings and set values for them?
I am trying to convert a list of string names into symbols, which will then be used to store data. I have 24 files (where the name of each file is a member of the list mentioned above) that I need to ...
3
votes
3
answers
267
views
How to make c[n_, x_, y_] := ToExpression["p" <> ToString[n]] = {x, y} work?
I am trying to do the following:
c[n_, x_, y_] := ToExpression["p" <> ToString[n]] = {x, y}
That is: Evaluating ...
2
votes
2
answers
283
views
Unwanted reevaluation in Manipulate with RandomPointConfiguration
Here is a simple illustration of a problem I am encountering. I want to use RandomPointConfiguration inside Manipulate, but it ...
2
votes
1
answer
451
views
RandomPoint does not return with many region intersections
I am trying to generate random points on an n-dimensional unit sphere that satisfy a number of linear inequalities (a point $v \in \mathbb{S}^N$ has to satisfy $v \cdot x \geq v \cdot x_k$ for all $...
6
votes
3
answers
201
views
Associations in replacement rules variable
I have a large number of replacement rules where the right hand side (RHS) is always the same. To avoid repetition, I separated the two sides to add the same RHS to all of them.
This is a minimal ...
4
votes
1
answer
124
views
Evaluating series with functions as coefficients results in Power::indet
Mathematica seems to have a problem evaluating a series in which the coefficients are functions. Here is an example.
...
14
votes
1
answer
418
views
Strange behaviour of Unevaluated
I don't really understand why we get different results below
x=10;
(* return 1 + Unevaluated[x] *)
Plus[1, Unevaluated[x]]
(* return 11 *)
Plus[Unevaluated[x], 1]
...
3
votes
2
answers
207
views
Using Trace with TraceDepth
Regarding TraceDepth with TraceDepth->3,it
seems that {{{fib[1]}}} is also 3 level deep, ...
4
votes
1
answer
114
views