# Tagged Questions

Questions about Mathematica's rule-based replacement functionality, including functions such as Rule (->), Replace, ReplaceAll (/.) and ReplaceRepeated (//.).

419 views

### Random character change in a random place

I would like to ask for help in a Random Replace of character. For example: ORANGE and change 1 character randomly (random place and random character from ORANGE) in it into any character of ORANGE, ...
49 views

### Replacing elements in a list if contains X (string)

I want to replace T1 with T2 if the list contains X (It's a string with something more) or else return unevaluated. Input:...
36 views

### How to replace a hole mathematical expression? [closed]

I have the following function: Input: f=-a n^2/v^2 +v/n I want to Replace v/n by v_new ...
92 views

### Getting mathematica to factor out constants and apply euler's identity to a table

I'm doing some quantum mechanics homework that I'm going to eventually generalize to higher spin states, so the solutions are going to need to be decently independent of the dimensions of the table ...
146 views

### Generalization of a rule to N arguments

I am trying to apply a series expansion on a function x[t1,t2,...tn], with an expansion parameter a. For ...
167 views

### A replacement question

I have: {{θ -> 0}, {θ -> (2 π)/ 3}, {θ -> π}, {θ -> (4 π)/3}} I would like to create a list of points $(\cos\theta,\sin\theta)$ using each of the ...
64 views

### Type error before replacement rule is applied

When I type a <> "0" /. {a -> "1"} I get the error ...
101 views

74 views

### Replace All using a list

I have a more complicated case however a basic example is; ...