All Questions
Tagged with expression-construction replacement
7
questions
1
vote
2
answers
67
views
Replacements: using condition to restrict to parts that satisfy a Boolean expression
I need to replace all integers k in a list with {k} and tried:
EDITED: as a clarification: I mean all integer elements of a list, not all integers in the list, so in the following example, only 4 ...
2
votes
1
answer
43
views
Formula: setting parameters vs replacement, different results?
I have a question that may sound stupid and have an easy answer - but I currently do not see it.
I have defined a function of four variables, $f[a,b,c,d]=...$, in what I think is correct Mathematica ...
2
votes
0
answers
60
views
How to do an arbitrary expression growth in Mathematica?
I want to write a function that can be used to grow an expression from a seed or another existing expression based on part specification.
...
5
votes
6
answers
1k
views
Replace element of a matrix with condition
consider a matrix
$\left( \begin{array}{ccccc} 0 & 0 & 1 \\ 1 & 0 & 0 \\ 1 & 1 & 0
\\ \end{array}\right)$
How do I do a program that does these steps
1-Replace each ...
10
votes
3
answers
184
views
Graph that shows how symbols are used in an expression
I would like to make a graph to show how symbols build up an expression. For example, the matrix multiplication
$$
\left(
\begin{array}{ccc}
a & b & c \\
d & e & f \\
\end{array}
\...
0
votes
1
answer
66
views
Misunderstanding of Replace code
I am looking for the right way to replace $\delta \, \, \text{by} \, \, 0.05 \, \, \, \beta \, \, \, \text{by} \, \, \, 1.77 \, \, \, \text{and} \, \, \, n \, \, \, \text{by} \, \, \, 12$ in this ...
4
votes
1
answer
252
views
Adapting old Arrow expressions
I have an old notebook that uses the now obsolete Arrow package.
For example, I have an expression containing
...