Timeline for Compute and evaluate function of a function and keep the result a function
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 22, 2017 at 10:29 | comment | added | Albert Retey |
@riddleculous: You might want to wait a bit before accepting my answer, there are probably other interesting answers. Just in case you are not aware of it: #& is only a shortcut for Function[#] (which is again a special case for Function[x,x] ). If you look at the FullForm you will see that the two are internally the same thing.
|
|
Dec 22, 2017 at 10:24 | comment | added | riddleculous |
Thanks for the explanation about Function . Inside the module (good point!), one can also use the shorthand ac1[f_] := Evaluate[Convolve[f[tau], f[tau], tau, #]] & , but I didn't manage to get the correct behaviour when trying around. Calling Function makes the behaviour more obvious.
|
|
Dec 22, 2017 at 10:20 | vote | accept | riddleculous | ||
Dec 22, 2017 at 9:57 | history | answered | Albert Retey | CC BY-SA 3.0 |