CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 11:41:47 GMT
content-type: text/html; charset=utf-8
content-encoding: gzip
cf-ray: 966c595dab0225e0-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=40d47083-63f3-4ea8-9d7b-21294dd75235; expires=Wed, 29 Jul 2026 11:41:47 GMT; domain=.stackexchange.com; path=/; secure; httponly
set-cookie: prov=40d47083-63f3-4ea8-9d7b-21294dd75235; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=BuAP8JQoJFCr0XfT5LeKnONIeJlRcypzgGnDpVQVf6o-1753789307-1.0.1.1-cnoNuxt6oh.Ud69J6MV_Hgy5HQAsqyA77h9A20m8EaMGn7sFvhURyPfl4E0ukN6708LPGxh7hZmAC99qsNi8KrnAbUvGnqJT5Ji0.TW9hdo; path=/; expires=Tue, 29-Jul-25 12:11:47 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=kdhrw2u.X95i_E_SHTZm0kxOJI4ma08ZkvTdGnXn1O8-1753789307565-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: cc8889ef-68d9-4f66-9b57-b499bfcb5fb3
x-worker-origin-response-time: 1031000000
x-dns-prefetch-control: off
server: cloudflare
Newest 'replacement' Questions - Mathematica Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [replacement]
The replacement tag has no summary.
1,704 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
96
views
Repeated substitute shortened with "Map"
I have an expression e[x,y,z] and like to see all results when picking all independent variables from a fixed set of constants ...
2
votes
2
answers
103
views
How can I reduce the degree of a polynomial in two variables by substitution?
This is similar to the how-to-replace-variable-with-power question, but here it involves two variables with different power combinations.
This quesion arises from paper forward kinematics of the 6-6 ...
2
votes
3
answers
155
views
Removing unmatched elements from nested list after ReplaceAll
I'm doing some heavy symbolic calculations and for preliminary simple tests I need to replace all coefficients except some choosings, e.g.:
...
0
votes
2
answers
100
views
Why does a replacement rule fail for a custom defined function but works for a generic symbol?
I'm pretty new to Mathematica and I have a question about how to deal with replacement rules in presence of function definitions.
Basically I want to implement a mean/covariance calculator, in the ...
5
votes
1
answer
244
views
Understanding difference between {{{a}}} /. {x_} :> q[x] and {{{a}}} /. List -> q [closed]
Following Shifrin's "Mathematica Programming: an advanced introduction", pp. 93-94,
I entered
{{{a}}} /. {x_} :> q[x]
and I got, as expected by the ...
1
vote
2
answers
95
views
multivariate chain rule with Replace[] [closed]
f'[x] /. f -> (f[g[#]] &)
adopts the chain rule. Now I need df(r,$\theta$)/dr in x and y coordinates, hence transforming from polar to Cartesian coordinates,...
2
votes
2
answers
109
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 ...
1
vote
1
answer
97
views
Why Cannot I Apply the Replace Rule Here?
I want to replace
$p_\_\sum_{i=1}^{m_\_}Log[x[i]]^{b_\_} x[i]^{a_\_}$ with $p*T[a,b,m]$, but it doesn't work. Can anyone give me a help? Thanks in advance!
Codes:
...
1
vote
1
answer
178
views
Replacement is not working in Table
What is exactly happening here?
Table[{(x^2 + y), (x^2 + y) /. x -> 2}, {x, 0, 3}]
As the output I am getting:
...
3
votes
4
answers
992
views
How to only replace x^1 not x^n
Is there a better way to replace a variable, not powers of it, than first to replace all unwanted terms by dummy terms and replacing them back later?
Input: ...
9
votes
6
answers
583
views
Pure function + Apply + ReplaceAll
I've been finding myself using the following construction as of late:
ReleaseHold[Hold[s #^2 & /@ Range[s, 5]] /. s -> 2]
which is the lazy version that ...
1
vote
1
answer
113
views
substituting functions into polynomials
I've seen posts on changing functions inside a derivative expression such as this but my problem is a little different. I want to substitute a function given symbolically, which doesn't seem to be ...
4
votes
0
answers
93
views
Why can't you get a numerical value with a replacement rule? [duplicate]
N[π] outputs 3.14159, but N[x]/.x->π outputs π.
What'...
1
vote
1
answer
83
views
force evaluation [closed]
I can't figure out how to get MMA to evaluate a dot product inside a module:
...
0
votes
2
answers
143
views
Taking complex conjugates via $i\to -i$ [closed]
I am taking the complex conjugate of the hydrogen wavefunctions (which have variables in it), thus I do so as follows:
psi/. I-> -I
This worked for some of the ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
list-manipulation × 295
pattern-matching × 257
rule × 199
simplifying-expressions × 105
functions × 88
matrix × 76
evaluation × 68
equation-solving × 58
string-manipulation × 58
symbolic × 56
performance-tuning × 38
hold × 34
plotting × 28
syntax × 26
associations × 25
formatting × 25
conditional × 23
polynomials × 23
scoping × 20
assignment × 19
more related tags
Hot Network Questions
- What is causing parts of my mesh to be shaded as smooth despite being outside the auto smoothing threshold?
- Do a linearly sloped electric field and uniformly increasing magnetic field satisfy Maxwell's Equations? An apparent paradox
- How can my dwarves keep humans from reverse engineering their technology?
- Is the final part of an RNAV approach essentially a visual approach?
- How to identify process' serving 127.0.0.53:53 and 127.0.0.54:53?
- Why not use the "age" tool for encrypted backups?
- The puzzle of chess pieces beating one another in “rock—paper—scissors” way
- Time Machine backup disk not writeable any longer
- Why do we name and separate invisible bands even though the EM spectrum is continuous?
- Efficient extraction of first/only key in a dictionary
- Khovanskii's theorem in nilpotent groups?
- Is there any way to make lines in \rule have round corners?
- How to analytically sample from the conditional distribution of a t-statistic under normal data-generating process?
- Can I combine 2 car reservations on adjacent dates with Hertz?
- I struggle to draft without editing
- Would saying I want to go into industry on a statement of purpose negatively affect PhD admissions?
- "One can" in technical writing--good, bad, indifferent?
- Finite projective plane with trivial automorphism group
- "I met a monk and philosopher." How many people did I meet?
- What is this under cabinet lamp style? Are they easily convertible to LED?
- Seven-dimensional cross product
- Should I regularly reapply thermal paste?
- Can ffmpeg record screen on wayland?
- What happens if a player throws a barrel of caltrops at a wall?