[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: series
From: |
Allen.Windhorn |
Subject: |
RE: series |
Date: |
Wed, 14 Aug 2013 16:57:13 +0000 |
Juli,
> -----Original Message-----
> From: address@hidden [mailto:help-octave-
>
> Can you please assist with evaluating the following:
> 1-3+5-7+9-...+1001 using Octave
That's a variation on an old puzzle. You don't need Octave, you
can probably do it in your head if you think about how you can
combine terms together to simplify it. If you're required to use
Octave, think about splitting it into two different series, one
positive and the other negative. Then you can use Octave's
ability to make sequences of numbers and do it in one line. The
slow complicated way would be use a for-next loop.
Regards,
Allen
- series, Juli, 2013/08/13
- Re: series, Michael Goffioul, 2013/08/14
- RE: series,
Allen.Windhorn <=