help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1 i 2


From: slaythemall
Subject: Re: 1 i 2
Date: Wed, 22 Jun 2016 01:12:46 -0700 (PDT)

no to nie wiem. Ja bym dał coś takiego:
function [i, w] = zad_2()       
        suma = 0;
        n = 1;
        
        while (1)
                w = n * sqrt(n + 3) /(2^n)
                suma += w;
                
                if (suma < 4.8)
                        i = n
                        return;
                endif
                
                n += 1;
        endwhile
endfunction

ale głowy nie dam sobie uciąć



--
View this message in context: 
http://octave.1599824.n4.nabble.com/1-i-2-tp4677888p4677904.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]