Demo entry 6361862

1

   

Submitted by anonymous on May 05, 2017 at 15:37
Language: Matlab. Code size: 240 Bytes.

s=0;
s1=s;
s2=s;
sum1=single(s);
sum2=single(s);
for i= 1:10000
    j1=single(1/i^4);
     s1=s1+(1/i^4);
   sum1=sum1+j1;
end
for i= 10000:-1:1
    j2=single(1/i^4);
    s2=s2+(1/i^4);
   sum2=sum2+j2;
end
sum1
sum2
s1
s2

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).