f=@(x,y)sum(z=x:y)^2-z*z' f(5,9)f(91,123)f(1,10)
Standard input is empty
f = @(x, y) sum (z = x:y) ^ 2 - z * z' ans = 970 ans = 12087152 ans = 2640
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!