/////////////////////////////////////////////////////////////////////////////////////////////////// // Use of numerical analysis functions in mathutils /////////////////////////////////////////////////////////////////////////////////////////////////// run("mathutils") //interpolation var fy = [0, 1, 4,10,50,25,12, 5, 3, 0] var fx = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] types = ["linear", "cubic", "akima", "loess", "neville", "newton"] functions = types.map(function(t) {return interpolate(fy,fx,t)}) plot_x = range (0,9,0.01) values = functions.map(function(f) {return get_values(f,plot_x)}) plots=plot(values,types,plot_x) //derivative for (var i=0; i