[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:07:43 -0700 (PDT) |
Dla większej też nie działa dobrze. więc będzie coś takiego
function [i] = zad_2()
suma = sqrt(3)/2
if (suma < 4.8)
i = 1;
return;
endif
n = 2
while (1)
suma += n * sqrt(n + 3) /(2^n)
if (suma < 4.8)
i = n
return;
endif
n += 1;
endwhile
endfunction
--
View this message in context:
http://octave.1599824.n4.nabble.com/1-i-2-tp4677888p4677900.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: 1 i 2, slaythemall, 2016/06/22
- Re: 1 i 2, slaythemall, 2016/06/22
- Message not available
- Message not available
- Re: 1 i 2, slaythemall, 2016/06/22
- Re: 1 i 2, slaythemall, 2016/06/22
- Re: 1 i 2,
slaythemall <=
- Re: 1 i 2, slaythemall, 2016/06/22
- Re: 1 i 2, slaythemall, 2016/06/22
- Re: 1 i 2, slaythemall, 2016/06/22
- Re: 1 i 2, slaythemall, 2016/06/22
- Message not available
- Re: 1 i 2, slaythemall, 2016/06/22