I would like to ask, if it is possible to create a anonymous function directly from a return value after using the diff function? Without copy the text from the console and add it manually to a anonymous function.
Eg.
xy @(x)=diff(x^2,x);
and using afterwards as:
xy(3)
and so on.
You can use a
symfun
symbolic function:which returns