function t5 = ch5(x) % ch5 - calculate T5(x)using recurrence relations tm = 1; tn = x; for i = 0:4 tp = 2*x*tn - tm; tm = tn; tn = tp; end t5 = tp; end