Demo entry 6771789

python

   

Submitted by anonymous on Nov 20, 2018 at 17:01
Language: Python. Code size: 727 Bytes.

With n = 50   Solution of Equation with Gauss Seidel Iteration:

Times of Iterations: 100000
Maximum Error: 0.04411544497997966

X 1 = 1.0000000000000002    error = 2.220446049250313e-16
X 2 = 0.9999999999999997    error = 3.3306690738754696e-16
X 3 = 1.000000000000001    error = 1.1102230246251565e-15
X 4 = 0.9999999999999996    error = 4.440892098500626e-16
X 5 = 1.000000000000003    error = 3.1086244689504383e-15
... ...
X 46 = 0.9946578956150915    error = 0.005342104384908453
X 47 = 1.010339556960389    error = 0.010339556960389018
X 48 = 0.980699494088185    error = 0.01930050591181498
X 49 = 1.0330865786527283    error = 0.03308657865272835
X 50 = 0.9558845550200203    error = 0.04411544497997966

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).