Tagged Questions
2
votes
1answer
93 views
How to transform an expression using algebraical instead of pattern rules [duplicate]
I would like to transform rules algebraically. A very simple example would be: -
k^2 - 2 k x + x^2 /. {2*k -> 1}
This transforms to: -
$$k^2-2 k x+x^2$$
...
7
votes
6answers
761 views
How do I replace a variable in a polynomial?
How do I substitue z^2->x in the following polynomial z^4+z^2+4?
z^4+z^2+4 /. z^2->x
...