Ingvars

10 Reputation

One Badge

1 years, 173 days
Lancaster University

MaplePrimes Activity


These are replies submitted by Ingvars

@acer 

Thanks, using the code as you suggested above worked:

P := proc(r) 
    if not r::numeric then 
        return 'procname'(r); 
    end if; 
    return CurveFitting:-ArrayInterpolation(Column(data, 1), Column(data, 15)^~2, r, method = spline); 
end proc:

I have attached the data file below (column 1 is x, any other is y). I would definitely like to know how to optimize P, since integrating it is quite slow.

data.csv.txt

Page 1 of 1