Given a pure function, e.g. f=Sin[#]&
, it is possible to plot it with introducing an arbitrary local variable, e.g.,
Plot[f[x],{x,0,1}]
However, the introduction of a variable x
seems unnecessary. Is it possible to plot this without specifying a name for the variable? If not, is there a good reason why this functionality doesn't exist?
InterpolatingFunction
. $\endgroup$Integrate[]
needs a dummy variable... $\endgroup$myPlot[f_, r_] := Plot[f[First@r], r]; myPlot[f, {x, 0, 1}]
$\endgroup$