Fonction de Chybetchev


Algorithme

Cheby1 (x) = x

Cheby2 (x) = 2 * x * x - 1

Cheby3 (x) = 4 * x * x * x - 3 * x

Cheby4 (x) = 2 * x * Cheby3(x) - Cheby2(x)

Cheby5 (x) = 2 * x * Cheby4(x) - Cheby3(x)

Cheby6 (x) = 2 * x * Cheby5(x) - Cheby4(x)

Cheby7 (x) = 2 * x * Cheby6(x) - Cheby5(x)

Cheby8 (x) = 2 * x * Cheby7(x) - Cheby6(x)

Cheby9 (x) = 2 * x * Cheby8(x) - Cheby7(x)

Cheby10 (x) = 2 * x * Cheby9(x) - Cheby8(x)

Cheby11 (x) = 2 * x * Cheby10(x) - Cheby9(x)

La fonction est tracé suivant :

choose a function ChebyN

choose x0, y0

choose h

x = x0

y = y0

for i = 1 to max

xold = x

yold = y

x = xold - h * ChebyN(yold)

y = yold + h * ChebyN(xold)

plot (x,y)

next


[Image]