Demo entry 6682775

iteratif

   

Submitted by anonymous on Dec 11, 2017 at 02:32
Language: Matlab. Code size: 184 Bytes.

clear all;
a=57100;
m=ones(size(a));
erf=1;
n=0;
while erf>10e-5&&n<100
    y=57100/(0.52-0.97*m.^(-0.06));
    m1=y;
    erf=max(abs((m1-m)./m));
    m=m1;
    n=n+1;
end

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).