[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Doubt octave usage to calculate
From: |
Andreas Weber |
Subject: |
Re: Doubt octave usage to calculate |
Date: |
Sun, 28 May 2017 16:41:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.3.0 |
Am 28.05.2017 um 16:08 schrieb Doug Stewart:
> On Sun, May 28, 2017 at 9:17 AM, qdoqwj <address@hidden
> <mailto:address@hidden>> wrote:
>
> Calculation of ln (2) using numerical series:
> 100
> Y5= ∑= 1/(2n + 1)*(2n+2)
> n=0
> try this
> Y5=0;
> for n=0:100
> Y5=Y5+ 1/((2*n+1)*(2*n+2));
> endfor
> Y5
why not
n=0:100
sum(1./((2*n+2).*(2*n+1)))
-- Andy