<

Question: Differences in putting the recursion results

Hi!

Do you know why the sequence of output is difference than the handing output?

restart;
a := 1.4;
b := 0.3;
x[0] := 1;
y[0] := 1;
<x[n + 1], y[n + 1]> = <b*y[n] - x[n]^2 + a, x[n]>;

 

f := (n, m) -> (-n^2 + b*m + a, n);
 

g := (k, n, m) -> (f@@k)(n, m);


seq([g(a, x[0], y[0])], a = 0 .. 3);
        [1, 1], [0.3, 1], [0.61, 1.3], [-0.2701, -1.99]

[g(0, x[0], y[0])], [g(1, x[0], y[0])], [g(2, x[0], y[0])], [g(3, x[0], y[0])];
        [1, 1], [0.7, 1], [1.21, 0.7], [0.1459, 1.21]

 

Please Wait...