Code covered by the BSD License  

Highlights from
Numerical Methods Using MATLAB, 3e

image thumbnail

Numerical Methods Using MATLAB, 3e

by

 

20 Aug 2002 (Updated )

Companion Software

z=tp(A,B,x,M)
function z=tp(A,B,x,M)

z=A(1);

for j=1:M
   z=z+A(j+1)*cos(j*x)+B(j+1)*sin(j*x);
end

Contact us