help-octave
[Top][All Lists]
Advanced

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

Re: Help


From: Doug Stewart
Subject: Re: Help
Date: Sat, 18 Feb 2012 12:01:13 -0500



On Sat, Feb 18, 2012 at 10:40 AM, Appau Joseph <address@hidden> wrote:
How do I use octave to evaluate the following,  1^2 + 2^2 +3^2 +...+100^2


_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


there are many ways: this is one way

a=1:100;
b=a.^2;
c=sum(b)




--
DAS

https://linuxcounter.net/user/206392.html

reply via email to

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