Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


function r = computeit(f, g, v)
  r = f(g(v));
endfunction
 
computeit(@exp, @sin, pi/3)
computeit(@log, @cos, pi/6)