RosettaCodeData/Task/Higher-order-functions/Euler-Math-Toolbox/higher-order-functions.euler
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

5 lines
130 B
Text

>function f(x,a) := x^a-a^x
>function dof (f$:string,x) := f$(x,args());
>dof("f",1:5;2)
[ -1 0 1 0 -7 ]
>plot2d("f",1,5;2):