Question: i wrote C programming. for the following set of nonlinear equations by the Gauss-Seidel method. but it gives me an error. please help with that.

i wrote C programming. for the following set of nonlinear equations by the Gauss-Seidel method. but it gives me an error. please help with that. thanks

27 x + ex cos y 0.12 z
=
3
0.2 x2 + 37 y + 3 x z
=
6
x2 0.2 y sin x + 29 z
=
4
(2)

Start with an initial guess of x = y = z = 1.

#include int main() { double x, y, z; int i,n;

x=y=z=1.0;

printf("Enter # of iteration = "); scanf("%d", &n);

for (i=0;i

printf("x = %lf, y= %lf, z=%lf ", x,y,z); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!