summaryrefslogtreecommitdiff
path: root/50/DEPENDENCIES/NDDinterpol.sci
blob: 5b49ebc9cf1793cea401711b87bddc7e1e9ac124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function P1=NDDinterpol (x0,x1,f0,f1)
    x=poly(0,"x");
    f01=(f1-f0)/(x1-x0);
    P1=f0+(x-x0)*f01;
endfunction