|
From: | Andy Buckle |
Subject: | Re: Evaluating a series |
Date: | Thu, 9 Aug 2012 13:46:53 +0100 |
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 basicallye.g.
> trying to repeat an addition operation of items with changing value.
sum(1./(1:4:1001) - 1./(3:4:1001))
?
- Jordi G. H.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |