CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 05:07:53 GMT
content-type: text/html; charset=utf-8
content-encoding: gzip
cf-ray: 9651603dae72c179-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=a2e88282-072e-4517-88c4-15bea405670e; expires=Sun, 26 Jul 2026 05:07:52 GMT; domain=.stackexchange.com; path=/; secure; httponly
set-cookie: prov=a2e88282-072e-4517-88c4-15bea405670e; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=9ENF1oCYdSBQtP6SmM9PE9p6LH9cdwgZ6Ip4JU3Qaa0-1753506473-1.0.1.1-pW8IAtJPbD56iFeAzfQ41p31lm3lwbWNLXo.oCqD5G0a38WxzYOcdVYOR9h6Ls3Fm19qoDjg8su7tahVQocqenkKnKh_PWvSLLKJFnHb9J4; path=/; expires=Sat, 26-Jul-25 05:37:53 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=IMbuSkkxl3Cw1exnHd5StEeNM65gRGc2wALgVq3HSTU-1753506473024-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: 2376eb09-6ceb-4360-92b5-c7bbf50781e1
x-worker-origin-response-time: 421000000
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
154
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
82
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
- Why are police personnel of all ranks called officers?
- What does "Store Name" mean on the Tokyo-Narita Airport Bus timetable?
- When and why is fwait necessary when using the 8087 coprocessor?
- Write two very different programs with the same characters
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- Symbols for A.P. Morse's book in Set Theory
- Can a minor run a business by having an adult act on their behalf?
- Discrepancy in nftables counters
- Quadratic Hecke characters with certain given local components
- About security concerns using in find -exec vs interactively performing the same task
- Does SZNUD3160 really eliminate the need for diode?
- Why does the node Bounding Box suddenly produce a different result in version 4.5?
- Current integrator LTSpice simulation
- A question about as ..... as comparison
- Where did the name of Windows XP come from? Was it connected to the Cairo project?
- Is it decidable whether a CFL can be recognized by a linear CFG?
- Meaning of 芭蕉 in Tang age
- Access denied attempting to delete file on Windows Server
- Plot range in RegionPlot3D
- Why is time reversal not a natural part of the Galilean group?
- Are classified documents subject to a subpoena in discovery?
- I am looking for a French mathematician who contributed to complex analysis
- Break long equation: vertical alignment of indentation
- Automatic drawing of polygon around selected polygons in QGIS