summaryrefslogtreecommitdiff
path: root/cesar/cp2/spoc/test/get_Approx1.sci
blob: 4ec86afc2ff882e310a1fd9ee1d9cc5ca1f84b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function [args_i, args_e, sinc_i, sinc_e, divs, ordos, pentes] = get_Approx1(rho,X0,N)
for i=-20:20
  if (i==0)
    [arg_i, arg_e, si, se, div, ordo,pente] = ApproxOrder2ParamMCoeff(rho,X0,N,21);
  else
    [arg_i, arg_e, si, se, div, ordo,pente] = ApproxOrder1ParamMCoeff(rho,X0,N,i);
  end
  args_i(i+21)=arg_i;
  args_e(i+21)=arg_e;
  sinc_i(i+21)=si;
  sinc_e(i+21)=se;
  divs(i+21) = div;
  ordos(i+21)=ordo;
  pentes(i+21)=pente;
end




endfunction