I am working with Maple 11 and 12 on an Intel Mac running Leopard, and I am having trouble with a very simple script that keeps telling "kernel connection lost"; see below.
> restart; with(CurveFitting);
> poly2 := proc (x, u) return PolynomialInterpolation(x, u, z) end proc;
proc(x, u) ... end;
> getArrays := proc (left, right) local x, u; x := [seq(h*i, i = left .. right)]; u := [seq(u[i], i = left .. right)]; return x, u end proc;
proc(left, right) ... end;
> x, u := getArrays(-2, 2);
[-2 h, -h, 0, h, 2 h], [u[-2], u[-1], u, u, u]
> poly2(x, u);
I have tried a wide range of data types, (vectors, arrays, sequences), but to no avail. I also checked the manuals and googled for this error, but found nothing concrete enough to be of use. Am I doing something silly ?
Thanks already for any possible pointer !