RosettaCodeData/Task/Higher-order-functions/Octave/higher-order-functions-2.octave

6 lines
98 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
function r = computeit2(f, g, v)
r = f(feval(g, v));
endfunction
computeit2(@exp, "sin", pi/3)