help-octave
[Top][All Lists]
Advanced

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

Re: Evaluating a series


From: Jordi Gutiérrez Hermoso
Subject: Re: Evaluating a series
Date: Thu, 9 Aug 2012 08:38:12 -0400

On 9 August 2012 08:26, Nicholas Jankowski <address@hidden> wrote:
> On Thu, Aug 9, 2012 at 3:22 AM,  <address@hidden> wrote:
>> Please assist me to do this:
>> Evaluate the series
>>
>> 1-1/3+1/5-1/7+1/9-...+1/1001
>>
>
> While there may be more elegant ways to do this, you're basically
> trying to repeat an addition operation of items with changing value.

e.g.

    sum(1./(1:4:1001) - 1./(3:4:1001))

?

- Jordi G. H.


reply via email to

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