Let's say I did diff(x^2, x); which will give me 2x, and imagine that 2x is %o1 (output 1), how can I plug in a value for x into the function without having to retype the function. This is a basic example but if the function is huge, it would be very convenient to know this.

Any input would be greatly appreciated!

Thanks in advance!