help-octave
[Top][All Lists]
Advanced

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

RE: Evaluate the following series:


From: Ted Harding
Subject: RE: Evaluate the following series:
Date: Sun, 12 Aug 2012 08:22:21 +0100 (BST)

Sorry, typos in my reply!

On 12-Aug-2012 07:12:28 Ted Harding wrote:
> On 12-Aug-2012 06:45:43 address@hidden wrote:
>> 1^2+2^2+3^2+...+100^2.
>> 
>> Could this be correct, I'm getting sum=50005000?
>> Sent from my BlackBerry® wireless device
> 
> 50005000 is correct for 1 + 2 + 3 + ... + (100^2), i.e. sum((1:(100^2)),
50005000 is correct for 1 + 2 + 3 + ... + (100^2), i.e. sum(1:(100^2)),

> but not for 1^2 + 2^2 + 3^2 + ... + 100^2, which is 338350.
> 
> You evaluated sum((1:(100^2)) instead of sum((1:100)^2).
You evaluated sum(1:(100^2)) instead of sum((1:100)^2).

> Ted.
> 
> 
> -------------------------------------------------
> E-Mail: (Ted Harding) <address@hidden>
> Date: 12-Aug-2012  Time: 08:12:25
> This message was sent by XFMail
> -------------------------------------------------
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

-------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Date: 12-Aug-2012  Time: 08:22:17
This message was sent by XFMail
-------------------------------------------------


reply via email to

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