7 lines
116 B
Text
7 lines
116 B
Text
|
|
function r = computeit(f, g, v)
|
||
|
|
r = f(g(v));
|
||
|
|
endfunction
|
||
|
|
|
||
|
|
computeit(@exp, @sin, pi/3)
|
||
|
|
computeit(@log, @cos, pi/6)
|