help-octave
[Top][All Lists]
Advanced

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

Re: Evaluating a series


From: Søren Hauberg
Subject: Re: Evaluating a series
Date: Thu, 9 Aug 2012 09:30:02 +0200

On Aug 9, 2012, at 9: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

You can get the positive part of the sequence by doing something like

  1 ./ (1:4:1001)

summing that will give you part of your result. You can do the same for the 
negative part and subtract that from the positive part.

Søren

reply via email to

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