I have
Table[{x1, 1, 2, 3}^i, {i, 0, 3}] /. x1 -> 1/2
But the following does not work, since x1 is not replaced with 1/2
Table[{x1, 1, 2, 3}^i, {i, 0, 3}] // Inverse /. x1 -> 1/2
Could anybody let me know why and how to fix it? Many thanks!
Look at TreeForm
to see how your expression is parsed.
TreeForm@Hold[Table[{x1, 1, 2, 3}^i, {i, 0, 3}] // Inverse /. x1 -> 1/2]
(source: yaroslavvb.com)
Everything after //
is taken to be function head that is applied with Postfix notation. So you need some parentheses
(Table[{x1, 1, 2, 3}^i, {i, 0, 3}] // Inverse) /. x1 -> 1/2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With