Use the initial approximation $(p_0,q_0)=(-0.3,-1.3)$, and compute the next three approximations to the fixed point using
a) Fixed-point iteration and equations : $p_{k+1} = g_{1}(p_k,q_k)$ and $q_{k+1} = g_2(p_k,q_k)$
b) Seidel iteration using equations $p_{k+1}=g_1(p_k,q_k)$ and $q_{k+1} = g_2(p_{k+1},q_k)$
$$x=g_1(x,y) = \dfrac{y-x^3+3x^2+3x}{7} \text{ (cubic)}$$
$$y = g_2(x,y)=\dfrac{y^2+2y-x-2}{2} \text{ (parabola).}$$
So, the direct computations gave me: a)Fixed point iteration:
$ (p_0,q_0) = (-0.3,-1.3)$
$(p_1,q_1) = (-0.2684,-1.3175)$
$(p_2,q_2) = (-0.2694,-1.3161)$
$(p_3,q_3) = (-0.2696, -1.3153)$
b)Seidel iteration:
$ (p_0,q_0) = (-0.3,-1.3)$
$(p_1,q_1) = (-0.2719,-1.3191)$
$(p_2,q_2) = (-0.2704,-1.3139)$
$(p_3,q_3) = (-0.2694, -1.3160)$
I am wondering if there is a way to program it in MATLAB, so I could get more elegant solution.
I'm no pro at MATLAB, but I know some basics. You should be able to do it like this. First define a function, here I did it for you seidels iteration, because you didnt provide equations for the other one.
Then you can call the function to print out the values you want
I am truly sorry about the formatting, it is horrible. I dont know how to write code nicely into Math Stack