Questions tagged [convergence]

303 questions
-2
votes
1 answer

How to calculate the error in fsolve python like resnorm in python?

I need to calculate the error in each iteration at solving a system of equation non-linear with fsolve in python, like resnorm of fsolve in MATLAB. Someone can help me if it's possible in python?
every1
  • 1
  • 1
-2
votes
1 answer

Computing and determining the convergence rate

Write a MATLAB code to compute and determine the convergence rate of : (exp(h)-(1+h+1/2*h^2))/h ‍‍‍‍‍‍ ‍‍‍‍‍‍ with h=1/2, 1/2^2,..., 1/2^10 My code was: h0=(0.5)^i; TOL=10^(-8); N=10; i=1; flag=0; table=zeros(30,1); table(1)=h0 while i < N …
LiLi
  • 1
-2
votes
1 answer

For loop, syntax C error?

Is there anything wrong in these "for" loops? About syntax..? It compiles. The results start to increase while the program running, without any physical sense. i and j indexes are right. These loops are part of a long code but after debugging it…
1 2 3
20
21