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

7 lines
116 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
function r = computeit(f, g, v)
r = f(g(v));
endfunction
computeit(@exp, @sin, pi/3)
computeit(@log, @cos, pi/6)