blob: 4ffe53138c6fd8178d1cd2d9705effe862f82f08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// example: 5.1
// linear and quadratic interpolation:
// f(x)=ln x;
xL=[2 2.2 2.6];
f=[.69315 .78846 .95551];
// 1) fp(2) with linear interpolation;
fp=linearinterpol(xL,f);
disp(fp);
|