New answers tagged expression-manipulation
0
votes
Replacement of a variable only for a part of an expression
You may either use ReplacePart (close to what @Alrubaie proposed)
expr = a^2 + f[a];
ReplacePart[expr, 2 -> f[c]]
(* a^2 + f[c] *)
or map the replacement ...
0
votes
Replacement of a variable only for a part of an expression
You just need ReplacePart
Where ReplacePart[Function/Expression , Location which part to replace]
...
4
votes
Accepted
A complicated derivative problem
You have a precedence problem.
Look at "tutorial/OperatorInputForms" in the help. You will find that "/." has a higher precedence than "//". Therefore, what you evaluate ...
0
votes
3
votes
Accepted
CellObject[Number] to its content
NotebookRead gives the cell expression (see the first example in the docs for CellObject); ...
2
votes
Parsing an expression for coefficients and more
Another way, as the comment @Henrik Schumacher said:
...
2
votes
4
votes
Accepted
Top 50 recent answers are included
Related Tags
expression-manipulation × 692simplifying-expressions × 127
replacement × 63
symbolic × 53
pattern-matching × 43
algebraic-manipulation × 42
list-manipulation × 40
function-construction × 39
functions × 34
equation-solving × 27
evaluation × 26
polynomials × 23
calculus-and-analysis × 21
output-formatting × 20
hold × 19
syntax × 16
plotting × 15
matrix × 15
special-functions × 15
rule × 15
expression-construction × 15
performance-tuning × 14
string-manipulation × 14
series-expansion × 13
complex × 12