z=180/pi;f=@(l)angle(sum(exp(i*l/z)))*z;disp(feval(f,[180,60,-60]))
Standard input is empty
28.877
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!